File tree Expand file tree Collapse file tree 5 files changed +28
-7
lines changed
Expand file tree Collapse file tree 5 files changed +28
-7
lines changed Original file line number Diff line number Diff line change 11.DS_Store
2- venv
2+ cmd / update-release / venv *
33* .xcodeproj /xcuserdata
44* .xcodeproj /project.xcworkspace
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ release:
1414release-dmg :
1515 xcodebuild -workspace " syncthing.xcworkspace" -derivedDataPath $(PWD ) -configuration Release -scheme Pods-syncthing
1616 xcodebuild -workspace " syncthing.xcworkspace" -derivedDataPath $(PWD ) -configuration Release -scheme syncthing-dmg
17- release- update :
18- source ./venv/bin/activate && ./ cmd/update-release.py
17+ update-release :
18+ $( MAKE ) -C cmd/update-release run
1919clean :
2020 rm -Rf Build Index Logs ModuleCache.noindex info.plist
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ See also the Apple Developer documentation at <https://developer.apple.com/docum
263263
264264## Release management
265265
266- Activate the Python virtual environment with ` semver ` module installed. E.g ` source venv/bin/activate ` .
266+ Run ` make update-release ` from the toplevel Makefile to bundle latest Syncthing from GitHub .
267267
268268To update the bundled syncthing the ` make release-update ` must be run from the main folder which does
269269basicly these steps automatically:
Original file line number Diff line number Diff line change 1+ VENV_PATH =$(shell python3 -c "import sys; print(f'venv{sys.version_info.major}{sys.version_info.minor}') ")
2+
3+ # Define the path to the Python executable within the virtual environment
4+ PYTHON_EXEC = $(VENV_PATH ) /bin/python
5+
6+ # Define the Python script to run
7+ SCRIPT_NAME = update-release.py
8+
9+ run : $(VENV_PATH )
10+ $(PYTHON_EXEC ) $(SCRIPT_NAME )
11+
12+ clean :
13+ rm -rf $(VENV_PATH )
14+
15+ $(VENV_PATH ) :
16+ python3 -m venv create $(VENV_PATH )
17+ $(PYTHON_EXEC ) -m pip install --upgrade pip
18+ $(PYTHON_EXEC ) -m pip install semver
19+
20+ .PHONY : run clean
Original file line number Diff line number Diff line change 77# 4. Update the syncthing/Scripts/syncthing-resource.sh
88#
99###
10+ import os
1011import sys
1112import json
1213import semver
1617
1718distVersion = 1
1819latest_url = "https://api.github.com/repos/syncthing/syncthing/releases/latest"
19- infoPlist = 'syncthing/Info.plist'
20- infoPlistTmpl = 'syncthing/Info.plist.tmpl'
21- syncthingResourceScript = "syncthing/Scripts/syncthing-resource.sh"
20+ infoPlist = '../../ syncthing/Info.plist'
21+ infoPlistTmpl = '../../ syncthing/Info.plist.tmpl'
22+ syncthingResourceScript = "../../ syncthing/Scripts/syncthing-resource.sh"
2223
2324###
2425# Download latest tag from github
You can’t perform that action at this time.
0 commit comments