diff --git syncthing/STApplication.m syncthing/STApplication.m index ad04c5c..7d13769 100644 --- syncthing/STApplication.m +++ syncthing/STApplication.m @@ -62,7 +62,7 @@ - (void)applicationLoadConfiguration { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - _executable = [defaults stringForKey:@"Executable"]; + _executable = @"__PREFIX__/bin/syncthing"; if (!_executable) { // We store the executable in ~/Library/Application Support/Syncthing-macOS/syncthing by default _executable = [[self applicationSupportDirectoryFor:@"Syncthing-macOS"] stringByAppendingPathComponent:@"syncthing"]; diff --git syncthing/Scripts/syncthing-resource.sh syncthing/Scripts/syncthing-resource.sh index 8c53732..d91eb1b 100755 --- syncthing/Scripts/syncthing-resource.sh +++ syncthing/Scripts/syncthing-resource.sh @@ -1,4 +1,7 @@ #!/bin/bash + +exit 0 + set -euo pipefail # Download and unpack syncthing into ${PRODUCT_NAME}.app/Contents/Resources