Commits
Chih-Hsuan Yen authored 79cc2990857
1 + | diff --git syncthing/STApplication.m syncthing/STApplication.m |
2 + | index ad04c5c..7d13769 100644 |
3 + | --- syncthing/STApplication.m |
4 + | +++ syncthing/STApplication.m |
5 + | |
6 + | |
7 + | NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; |
8 + | |
9 + | - _executable = [defaults stringForKey:@"Executable"]; |
10 + | + _executable = @"__PREFIX__/bin/syncthing"; |
11 + | if (!_executable) { |
12 + | // We store the executable in ~/Library/Application Support/Syncthing-macOS/syncthing by default |
13 + | _executable = [[self applicationSupportDirectoryFor:@"Syncthing-macOS"] stringByAppendingPathComponent:@"syncthing"]; |
14 + | diff --git syncthing/Scripts/syncthing-resource.sh syncthing/Scripts/syncthing-resource.sh |
15 + | index 8c53732..d91eb1b 100755 |
16 + | --- syncthing/Scripts/syncthing-resource.sh |
17 + | +++ syncthing/Scripts/syncthing-resource.sh |
18 + | |
19 + | #!/bin/bash |
20 + | + |
21 + | +exit 0 |
22 + | + |
23 + | set -euo pipefail |
24 + | |
25 + | # Download and unpack syncthing into ${PRODUCT_NAME}.app/Contents/Resources |