38 Commits

Author SHA1 Message Date
5c3c00e18b but do quote "$@" in java call to allow filenames with spaces to work. 2021-10-10 23:45:36 -05:00
ca3dec0ae1 don't quote @JAR_PATH@ as this prevents ~ from being escaped 2021-10-10 23:42:49 -05:00
fc4d7f1f43 Use --file-selector instead of --prompt 2021-10-07 20:05:09 -05:00
1fac9b9378 If --prompt is passed in as argument then summon a yad file input. 2021-10-07 19:58:36 -05:00
835e5db92f Replace maven wrapper with makefile install 2021-05-30 19:21:09 -05:00
816b95afb6 Shade piecannon app jar. 2021-05-30 19:09:41 -05:00
4e1156d4bc when testing servers, don't propagate exceptions but do note them 2020-12-17 02:50:28 -06:00
e4ea50ac66 remove unused imports 2020-12-17 02:47:10 -06:00
33491e3904 if WebDAV request returns error code, throw exception 2020-12-17 02:46:01 -06:00
be5b64789a whitespace 2020-12-13 22:17:42 -06:00
b894978f92 readme: expand on currently supported server types 2020-12-13 22:17:01 -06:00
ef252f5a19 ok, NOW add WebDavServer... 2020-12-13 22:06:59 -06:00
6ed87b738f lib: Add WebDav server type, make this the default server type (since it's relatively simple, standardized, and requires the least configuration). 2020-12-13 22:03:18 -06:00
c0cb1b4f2e lib: add GoFile server type. Note this isn't as useful as a direct file upload because GoFile forces clients to visit a page before accessing the file, meaning e.g. the file won't embed in a chat service.
Also included is "ByteSourceUploadable" which wraps a Guava ByteSource as a jodd-http Uploadable, so that we can implement multipart-upload services as appropriate.
2020-12-13 21:04:03 -06:00
0ffe462710 desktop: add --test command to test all defined servers 2020-12-13 07:32:54 -06:00
cf920c57c6 lib: add FtpServer type 2020-12-13 06:26:04 -06:00
77cf4f5820 desktop/piecannon: capture output of mvn command so we can display it to the user, capture error code so we can pass it upstream
(cherry picked from commit 2f7761bac7fddf857bb31b6db94147e0496153dd)
2020-12-13 06:20:57 -06:00
0d29b03dce remove unused imports 2020-12-13 04:18:51 -06:00
35d3de2d89 fdroid: build in release mode (directly building the app will default to debug mode) 2020-11-01 15:32:13 -06:00
06ea090670 android: add F-Droid metadata file and fdroidserver package to guix environment 2020-11-01 15:11:46 -06:00
7a6e97a774 SftpServer: quick fix for spaces in filename 2020-10-30 07:22:56 -05:00
84e14a890f Pie Cannon can send anything, although some server types may have restrictions. But for now it's just plain sftp/ftp/http and we can push anything through that. 2020-10-30 07:09:08 -05:00
da39586c4d big change: move the json loading and random server selection to main PieCannon class (so that it has a reason to live :)) and implement loading the json file in the android app.
I deliberated between re-using the json file in the android app and using a sqlite database or some such thing, given that a UI for editing these will have to be implemented at some point. I figure the json file is more config than data, and probably should be as consistent as possible between platforms.

For now at least this makes the app usable for me, without having to hard-code my server credentials.
2020-10-30 06:52:53 -05:00
432cfa4d21 Add license (GPLv3) 2020-10-30 05:26:54 -05:00
1cb6cbf183 more readme 2020-10-30 05:22:58 -05:00
580c9ff963 pom: do not build android module unless ANDROID_HOME is present 2020-10-30 05:15:04 -05:00
4be9bd83bf android: implement better mechanism for generating filename from file uri, using jodd to map mime type to extension and using the file's extension if it has one (sometimes it does not)
note that blindly trusting the name/extension of the file has security ramifications if you don't know what you are doing (and even if the extension is correct, e.g. if you upload a php file to a php enabled server). It is expected you know what you are doing since you have full control of the server.
2020-10-30 04:55:17 -05:00
51a2b89af1 android: add test server stub class. There aren't any credentials here yet, you'll have to add them yourself 2020-10-29 03:58:31 -05:00
54e87049b3 android: actually implement a working(ish) file upload activity. 2020-10-29 03:56:54 -05:00
c4dc20d070 lib: remove unnecessary methods in PieCannon 2020-10-29 01:40:33 -05:00
c226691762 desktop: remove unused import 2020-10-26 09:07:45 -05:00
4f7d6c1230 android: add stub activity for receiving file submissions 2020-10-26 09:07:01 -05:00
2575c152eb Add script for activating a guix environment for building piecannon repository. 2020-10-26 09:06:15 -05:00
ed63571105 add parent pom 2020-10-25 07:57:18 -05:00
3a2f8489db add stub android app, for now this does nothing but it -does- compile successfully (not sure if it actually runs) 2020-10-25 07:56:43 -05:00
90d7d93166 more robust wrapper script 2020-10-22 13:35:45 -05:00
569e174b78 commit initial version of PieCannon library and desktop app.
Documentation is sparse right now, I'm working on getting the desktop and android apps working first.
2020-10-22 04:01:33 -05:00
8790054c64 first commit 2020-10-22 03:58:08 -05:00