Commit Graph

653 Commits

Author SHA1 Message Date
Zack Scholl 7ac7e5d56d reduce complexity 2019-09-20 09:54:10 -07:00
Zack Scholl cfbd65be31 reduce complexity 2019-09-20 09:47:47 -07:00
Zack Scholl 07c20e2cde reduce complexity 2019-09-20 09:45:42 -07:00
Zack Scholl 24abf4fdd8 reduce complexity 2019-09-20 09:43:16 -07:00
Zack Scholl 768ad9b739 reduce complexity 2019-09-20 09:41:58 -07:00
Zack Scholl 6202d0d932 reduce complexity 2019-09-20 09:32:32 -07:00
Zack Scholl 049a4aaffc reduce complexity 2019-09-20 09:27:59 -07:00
Zack Scholl 1fe8ccf3ab reduce complexity 2019-09-20 09:24:10 -07:00
Zack Scholl 9fb54a3952 reduce complexity 2019-09-20 09:20:50 -07:00
Micheal Quinn 932f037b17
Moving the new script back into place. I think the merge conflict is resolved now. 2019-09-10 07:31:13 -05:00
Micheal Quinn fe4e9c357a
Upping version of croc in the installer script. 2019-09-10 07:30:31 -05:00
Micheal Quinn c0f7c3c250
Merge branch 'master' of https://github.com/schollz/croc into install_script_rewrite 2019-09-10 07:29:24 -05:00
Micheal Quinn f01165e9f4
Trying to get out of this merge confilct 2019-09-10 07:29:17 -05:00
Micheal Quinn 5fbb787a84
Adding in message and exit for cygwin. 2019-09-10 07:20:39 -05:00
Zack Scholl 5ad631e7b6 add more tests 2019-09-08 06:12:16 -07:00
Zack Scholl cc728a1138 fix minor bug 2019-09-08 06:07:53 -07:00
Zack Scholl b979607c42 fix 2019-09-08 05:56:57 -07:00
Zack Scholl f89dd01e87 add more tests 2019-09-08 05:53:30 -07:00
Zack Scholl 22f6a13a9f add more tests 2019-09-07 10:31:18 -07:00
Zack Scholl a82dd2f284 improve tests 2019-09-07 10:06:41 -07:00
Zack Scholl 33aa006c26 fix spelling 2019-09-07 09:49:08 -07:00
Zack Scholl 31c1a37b38 fix linting 2019-09-07 09:46:04 -07:00
Zack Scholl 0277abe5d4 gofmt -s -w 2019-09-07 09:41:24 -07:00
Zack Scholl 9a70ea90d1 bump 6.1.3 2019-09-07 07:41:03 -07:00
Zack bc6803eeef
use single reader (#155)
* dunno

* close file after finished

* fix debugging statements

* use single reader

* update deps
2019-09-07 07:34:05 -07:00
Zack Scholl de7a29470b bump 6.1.2 2019-08-27 17:11:58 -07:00
Zack Scholl 4150feddf0 skip checking each file each time 2019-08-27 09:51:37 -07:00
Micheal Quinn 97f65bf51d
Adding in stdout of checksum check if the check fails 2019-08-23 11:50:40 -05:00
Micheal Quinn 07a2abd808
Adding in a banner...because all the cool kids are doing it. 2019-08-23 11:05:57 -05:00
Micheal Quinn 7a6c4db5f9
Moving new file to default.txt. Removed todo (will be recreated in the pull request to come) 2019-08-21 22:47:51 -05:00
Micheal Quinn e3e7ada3e6
Updating todo 2019-08-15 20:50:33 -05:00
Micheal Quinn 105357bcbf
Updating todo 2019-08-15 20:49:30 -05:00
Micheal Quinn d6d96e487f
fixing returncode for download_file 2019-08-15 20:48:46 -05:00
Micheal Quinn d3207e6190
First pass of upping rcodes for some of the functions that may have tool return codes clash. Also changing some logic for determine_os and determine_arch to make it a little more better 2019-08-15 20:06:04 -05:00
Quinn 51e77ba0c4
Update rewrite_todo.md 2019-08-14 17:07:43 -05:00
Quinn f3efbb34af
Update rewrite_todo.md 2019-08-14 17:04:21 -05:00
Quinn 9e9f43c352
Update rewrite_todo.md 2019-08-13 23:16:46 -05:00
Quinn 27bc2e8c8a
Update rewrite_todo.md 2019-08-13 23:09:13 -05:00
Quinn 559807f97d
Forgot to update the function name for cygwin 2019-08-13 22:51:06 -05:00
Quinn a31bc56c23
More Cygwin updates
Forgot to update the install logic case statement in main
2019-08-13 22:45:59 -05:00
Quinn a9caea4d64
More WIndwos (cygwin) updates
Add install_file_cygwin function to support this case
2019-08-13 22:41:48 -05:00
Quinn ec09a990af
Adding croc_dl_ext update
For when we are on a Windows/CYGWIN host
2019-08-13 22:34:40 -05:00
Micheal Quinn a72172d11e
Adding update to checksum check function to always filter the checksum file based on downloaded file. Adding CYGWIN croc_os switch for windows support (needs more testing) 2019-08-13 22:28:26 -05:00
Quinn 081e267a19
check off bsds 2019-08-12 21:15:38 -05:00
Quinn d429e09e95
quick todo file 2019-08-12 21:15:06 -05:00
Micheal Quinn 588dfe6c00
Removing cleanup logic. rm -rf in a script terrifies me. The script attempts to place it into the temp dir, so we will let the OS clean it up. 2019-08-12 14:40:46 -05:00
Micheal Quinn e2e48d9e84
Adding in fix for macOS (Darwin) not having an install case. Uses the same logic from install_file_freebsd 2019-08-12 11:04:50 -05:00
Micheal Quinn b8d1d11b68
Changing PREFIX to INSTALL_PREFIX to avoid clashing with possibly set environment variables. Adding logic to handle if we are on termux on android (adapted from previous croc install script). Adding an info message for what prefix was set to. Adding in armv71 support (need to add more or make this a generic case to catch more arm devices). 2019-08-12 10:53:09 -05:00
Micheal Quinn 34743118de
script header cleanup 2019-08-12 09:16:24 -05:00
Micheal Quinn 9c6f01ca91
swapping getopt (which apparently is not good to use) for getopts in an attempt to make it more cross-platform without having to break out the logic based on OS...again... 2019-08-11 17:07:43 -05:00
Micheal Quinn d39266a36d
wrangling another batch of wild global vars that should be local vars 2019-08-11 16:35:51 -05:00
Micheal Quinn bf15c4c424
Adding help message formatting. Adding in sudo check. Caught and fixed some global variables that should be local. 2019-08-11 16:00:56 -05:00
Micheal Quinn 2c2920eb9c
Adding description information. Added print message function for fancy colors in the output. 2019-08-11 15:33:42 -05:00
Micheal Quinn e7d6d096a8
Adding in root check to install commands with fallback to sudo. Splitting install logic out based on host OS 2019-08-11 13:01:00 -05:00
Micheal Quinn b0ac5024a4
Adding a function to handle creation of temp dir. Polished the checksum check function to handle more cases/OSes 2019-08-11 12:31:19 -05:00
Micheal Quinn 9530952eb6
Adding install function and cleanup function 2019-08-10 21:45:53 -05:00
Micheal Quinn eaf448ddac
Adding install function and logic 2019-08-10 21:08:04 -05:00
Micheal Quinn c82dda45d9
Adding in extract file logic. 2019-08-10 18:26:06 -05:00
Micheal Quinn 7a684e7266
moving the rewrite into the proper location 2019-08-10 17:57:37 -05:00
Micheal Quinn d5a8d07d1c
Fixing the macos shasum call to fit into the checksum check 2019-08-02 14:37:56 -05:00
Micheal Quinn 2c27d7aabd
reverting line 147 2019-08-01 13:02:44 -05:00
Micheal Quinn f8d60c0011
Adding in some fixes for FreeBSD (tested in a FreeNAS jail 'FreeBSD 11.2-STABLE') as well as a fix for the checksum logic not correctly comparing the checksums. This still needs testing on a MacOS host 2019-08-01 12:55:05 -05:00
Zack Scholl e1e722fc5b bump 6.1.1 2019-07-20 10:01:10 -06:00
Zack Scholl 88b4001dd7 bug fix: create directories for empty files 2019-07-20 08:55:54 -07:00
Zack Scholl 2735c42a9d send empty files 2019-07-19 17:46:02 -07:00
Zack Scholl 83db5bdc68 Merge branch 'master' of https://github.com/schollz/croc 2019-07-19 17:42:22 -07:00
Zack Scholl fe1329c909 handle if the file is zero bytes 2019-07-19 17:39:25 -07:00
Zack Scholl 336f314854 bump 6.1.0 2019-07-18 07:22:38 -06:00
Zack Scholl edc97915bd don't keep debug 2019-07-18 06:17:15 -07:00
Zack Scholl 256e0c51fa add save file for receiver 2019-07-18 06:13:11 -07:00
Zack Scholl 7fcf45cece remove unused code 2019-07-18 06:06:56 -07:00
Zack Scholl 6a8bdccb66 add receiver config 2019-07-17 18:16:50 -06:00
Zack Scholl 252e96a670 simplify toggling 2019-07-17 18:06:52 -06:00
Zack Scholl 97d18e1fbf toggling parameters 2019-07-17 17:26:42 -06:00
Zack Scholl 54fb8aec9d how to check if flag is set? 2019-07-17 17:23:50 -06:00
Zack Scholl 1d7976a61a save send remember 2019-07-17 16:19:32 -06:00
Zack Scholl f18c2eae7e add get config dir 2019-07-17 15:55:43 -06:00
Zack Scholl 68ddbe7f14 small change 2019-07-17 14:33:02 -06:00
Zack Scholl 8b178881cf display relay in UI if not using default
Fixes #143
2019-07-17 14:12:48 -06:00
Zack Scholl 9968bbf824 addressing issue #141
the local relay is not being used and then the connection is refused but it still hangs
in that case is that the sender should give up, prompting the user to try again
2019-07-17 13:04:03 -06:00
Zack Scholl 928ee1f496 bump 6.0.12 2019-07-14 20:33:47 -06:00
Zack Scholl f6cafd76fd Merge branch 'master' of github.com:schollz/croc 2019-07-14 19:31:53 -07:00
Zack Scholl fe231fa67a remove machineid from deps 2019-07-14 19:31:44 -07:00
Zack Scholl 57564314b0 bump 6.0.11 2019-07-06 10:17:37 -06:00
Zack Scholl ba00eda176 bump 6.0.10 2019-06-20 07:10:37 -07:00
Zack Scholl 1d744f1b4a bump version 2019-06-17 13:28:56 -06:00
Zack Scholl f35c5b88b6 bump 2019-06-11 10:05:34 -06:00
Zack Scholl 2e2700988b update deps 2019-06-04 09:31:24 -06:00
Zack Scholl 15034cc6d2 bump version 2019-05-27 08:01:37 -07:00
Zack Scholl 1975745d5f remove after test 2019-05-12 13:10:17 -06:00
Zack Scholl 6b288356b9 remove big file after testing 2019-05-12 13:09:10 -06:00
Zack Scholl 59b6558ce9 bump 2019-05-12 09:31:22 -06:00
Zack Scholl 8bdc71a06c version bump 2019-05-12 08:55:42 -06:00
Zack Scholl c45d3c01e5 bump version 2019-05-10 07:16:00 -06:00
Zack Scholl 30f1233f74 fix tests 2019-05-09 23:02:35 -06:00
Zack Scholl f91d52bead update version 2019-05-09 22:59:33 -06:00
Zack Scholl 0388e07689 remove flushing 2019-05-08 21:33:30 +00:00
Zack Scholl 257607a26f use my logger instead of seelog 2019-05-08 21:03:54 +00:00
Zack Scholl 8d3b240563 check room nil before closing 2019-05-06 14:56:17 -07:00
Zack Scholl ba96be5024 update hash 2019-05-03 21:19:39 -06:00
Zack Scholl bd9c7b5ae9 include hash 2019-05-03 21:19:04 -06:00
Zack Scholl cb69e49283 include hash in version 2019-05-03 20:15:29 -07:00
Zack Scholl a6512975ff fix debug statement 2019-05-03 13:55:17 -07:00
Zack 1f3d30c78e
Use relay as backup to find local ports (#127) 2019-05-03 13:51:27 -07:00
Zack Scholl fef1c3ca3b use imohash 2019-05-03 07:35:27 -07:00
Zack Scholl 9f9b93cf47 share chunk ranges instead of chunks Fixes #125 2019-05-03 07:30:35 -07:00
Zack Scholl 7d91f8200c better cleaning of empty rooms 2019-05-02 20:57:55 -07:00
Zack Scholl 1802ebcd00 use imohash 2019-05-02 20:53:02 -07:00
Zack Scholl ee38e7243e more debug 2019-05-02 20:51:13 -07:00
Zack Scholl da09151db2 more debug 2019-05-02 20:48:21 -07:00
Zack Scholl 63f4553e4b more debug 2019-05-02 20:47:41 -07:00
Zack Scholl 8beaf65007 more debug 2019-05-02 20:45:21 -07:00
Zack Scholl 5e8ef27b85 more debug 2019-05-02 20:44:25 -07:00
Zack Scholl 09575a0c88 more debug 2019-05-02 20:43:39 -07:00
Zack Scholl aeb30ef187 use xxhash 2019-05-02 20:36:49 -07:00
Zack Scholl 711690a0f2 use imohash as default as its faster 2019-05-02 20:28:31 -07:00
Zack Scholl 3e6a554532 get local IP 2019-05-02 17:14:24 -07:00
Zack Scholl 38e7cae977 document purged error 2019-05-02 17:12:19 -07:00
Zack Scholl 6f5225ac91 purge errors on successful transfer 2019-05-02 17:11:01 -07:00
Zack Scholl b7c817a04a update default.txt 2019-05-02 16:45:37 -07:00
Zack Scholl dccaff32cf default stdout 2019-05-02 16:37:43 -07:00
Zack Scholl 2515cfa31e update version 2019-05-02 13:31:48 -07:00
Zack Scholl 78e4ee2b68 update version 2019-05-02 13:28:28 -07:00
Zack Scholl 2f4e5cdec4 update versoin 2019-05-02 13:25:03 -07:00
Zack Scholl 37b29aebce update version 2019-05-02 13:23:23 -07:00
Zack Scholl 9e61f38707 add go generate code for updating version 2019-05-02 13:14:09 -07:00
Zack Scholl 7377f536fc update ui and readme 2019-05-02 12:08:23 -07:00
Zack Scholl 462fad8d8e modify discover parameters 2019-05-02 11:50:01 -07:00
Zack Scholl 9cf4050913 no limit to sender discoveries 2019-05-02 11:47:19 -07:00
Zack Scholl aae63876d6 use local port 2019-05-02 11:45:42 -07:00
Zack Scholl 7af57b3390 slightly larger bar 2019-05-02 11:44:54 -07:00
Zack Scholl 2e5f33c081 print out securing 2019-05-02 11:44:10 -07:00
Zack Scholl 95c2b0f48a Don't throw error if cannot connect to server 2019-05-02 11:41:03 -07:00
Zack Scholl abc5e3f6c0 move install script 2019-05-02 11:31:26 -07:00
Zack Scholl 2b42c5365c don't show ui each time 2019-05-01 17:52:37 -06:00
Zack Scholl 67f69c892d use external ip in ui 2019-05-01 17:49:49 -06:00
Zack Scholl 359dc4549b share public ip as info 2019-05-01 17:44:09 -06:00
Zack Scholl b109b419de save the extenral ip 2019-05-01 17:27:49 -06:00
Zack Scholl 7162e5e45b collect ipaddr from connecting to tcp 2019-05-01 17:10:02 -06:00
Zack Scholl 494b224db0 fix 2019-05-01 13:49:58 -06:00
Zack Scholl 868051bc2a update ports 2019-05-01 13:48:09 -06:00
Zack Scholl ecfdb2d440 stdout should erase file 2019-05-01 13:09:47 -06:00
Zack Scholl eceddb364e reduce number of default ports 2019-05-01 12:32:00 -06:00
Zack Scholl 4a27806ffe allow local 2019-05-01 12:30:58 -06:00
Zack Scholl b55af54b10 change message 2019-05-01 12:20:02 -06:00
Zack Scholl e1745757ac change message 2019-05-01 12:17:53 -06:00
Zack Scholl be1c1d6206 change message 2019-05-01 12:16:47 -06:00
Zack Scholl 655ffdb4c0 delete room on errors 2019-05-01 12:11:20 -06:00
Zack Scholl 9f6936e1ff small fix 2019-05-01 12:08:24 -06:00
Zack Scholl 48819a9e03 disable local 2019-05-01 11:59:12 -06:00