Skip to content

Commit c67c156

Browse files
authored
Do not lock default setting value of syncthing daemon executable path in bundle (#242)
Do not lock executable path at the application bundle location. Fixes #228
1 parent 902f327 commit c67c156

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

.github/workflows/build-syncthing-macos.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,29 @@ jobs:
1717
build-debug:
1818
name: Build debug
1919
if: github.event_name == 'push' && github.ref != 'refs/heads/release' # Debug not necessary on release branch (develop is intermediate branch)
20-
runs-on: macos-latest
20+
runs-on: macos-13
2121
steps:
2222
- uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
2525

2626
- name: Build debug target
27-
run: |
28-
make debug
27+
run: make debug
28+
29+
- name: Prepare debug build for artifact
30+
run: make debug-dist
31+
32+
- name: Archive artifacts
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: syncthing-macos-debug
36+
path: Build/Products/Debug/dist
2937

3038
build-release:
3139
name: Build release
3240
if: github.event_name == 'push' && github.ref == 'refs/heads/release'
3341
environment: signing
34-
runs-on: macos-latest
42+
runs-on: macos-13
3543
steps:
3644
- uses: actions/checkout@v4
3745
with:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ all: debug
22
debug:
33
xcodebuild -workspace "syncthing.xcworkspace" -derivedDataPath $(PWD) -configuration Debug -scheme Pods-syncthing
44
xcodebuild -workspace "syncthing.xcworkspace" -derivedDataPath $(PWD) -configuration Debug -scheme syncthing
5+
debug-dist:
6+
mkdir -p Build/Products/Debug/dist
7+
cp -r Build/Products/Debug/Syncthing.app Build/Products/Debug/dist
58
debug-dmg:
69
xcodebuild -workspace "syncthing.xcworkspace" -derivedDataPath $(PWD) -configuration Debug -scheme Pods-syncthing
710
xcodebuild -workspace "syncthing.xcworkspace" -derivedDataPath $(PWD) -configuration Debug -scheme syncthing-dmg

cmd/update-release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from urllib.request import urlopen
1515
from string import Template
1616

17-
distVersion = 1
17+
distVersion = 2
1818
latest_url = "https://api.github.com/repos/syncthing/syncthing/releases/latest"
1919
infoPlist = 'syncthing/Info.plist'
2020
infoPlistTmpl = 'syncthing/Info.plist.tmpl'

syncthing/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<key>CFBundlePackageType</key>
2020
<string>APPL</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>1.29.2-1</string>
22+
<string>1.29.2-2</string>
2323
<key>CFBundleVersion</key>
24-
<string>102900201</string>
24+
<string>102900202</string>
2525
<key>LSApplicationCategoryType</key>
2626
<string>public.app-category.utilities</string>
2727
<key>LSMinimumSystemVersion</key>

syncthing/STApplication.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ - (void)applicationLoadConfiguration {
7676
_executable = [NSString stringWithFormat:@"%@/%@",
7777
[[NSBundle mainBundle] resourcePath],
7878
@"syncthing/syncthing"];
79-
[defaults setValue:_executable forKey:@"Executable"];
8079
}
8180

8281
_syncthing.URI = [defaults stringForKey:@"URI"];
@@ -203,7 +202,7 @@ - (void)refreshDevices {
203202
self.toggleAllDevicesItem.title = @"Pause All Devices";
204203
[[self statusMonitor] setCurrentStatus:SyncthingStatusIdle];
205204
}
206-
205+
207206
self.devicesPaused = allPaused;
208207
}
209208

0 commit comments

Comments
 (0)