From 11ea87de16a2573d4173578107f39c4a4aeb2b97 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 20 Feb 2026 21:15:20 +0100 Subject: [PATCH 1/4] chore: remove compile.sh script and update README to reflect new build commands --- README.md | 3 ++- compile.sh | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100755 compile.sh diff --git a/README.md b/README.md index 4b181a5..86c3ead 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ The project supports **macOS on Apple Silicon (M1)** and Intel. Python 3.12+ is or `pipenv run python offload/gui.py` - **Build the .app bundle** (macOS): Uses py2app; produces a native arm64 app on Apple Silicon: ```bash - ./compile.sh + make zip # build .app and create dist/Offload.zip + make all # build, zip, copy to website assets and /Applications ``` Or manually: `pipenv run python setup.py py2app`. The built app is in `dist/Offload.app`. diff --git a/compile.sh b/compile.sh deleted file mode 100755 index c571640..0000000 --- a/compile.sh +++ /dev/null @@ -1,12 +0,0 @@ -# Remove old files -rm -rf dist build - -# Compile app -pipenv run python setup.py py2app - -# Zip and copy app to website -zip -r dist/Offload.zip dist/Offload.app -cp dist/Offload.zip ../offload_website/assets/files/Offload.zip - -# Copy to Applications folder -yes | cp -rf dist/Offload.app /Applications/Offload.app From 9201f6445883280e65dd5b9c7efef180e62affe1 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 20 Feb 2026 21:15:46 +0100 Subject: [PATCH 2/4] ci: add build-release-asset action --- .github/workflows/build-release-asset.yml | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build-release-asset.yml diff --git a/.github/workflows/build-release-asset.yml b/.github/workflows/build-release-asset.yml new file mode 100644 index 0000000..5968f53 --- /dev/null +++ b/.github/workflows/build-release-asset.yml @@ -0,0 +1,39 @@ +# Build the Offload .app, zip it, and attach to the release when one is published. +name: Build and attach release asset + +on: + release: + types: [published] + +jobs: + build-macos: + runs-on: macos-latest + steps: + - name: Checkout release tag + uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install pipenv and py2app + run: pip install pipenv py2app + + - name: Install dependencies + run: pipenv install + env: + PIPENV_VENV_IN_PROJECT: 1 + + - name: Build and zip app + run: pipenv run make zip + + - name: Upload zip to release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.event.release.tag_name }} + files: dist/Offload.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5c2dba3f63993ac538762fb06b3e3f5c602225f2 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 20 Feb 2026 21:16:12 +0100 Subject: [PATCH 3/4] chore: remove comment --- .github/workflows/build-release-asset.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-release-asset.yml b/.github/workflows/build-release-asset.yml index 5968f53..3dc8219 100644 --- a/.github/workflows/build-release-asset.yml +++ b/.github/workflows/build-release-asset.yml @@ -1,4 +1,3 @@ -# Build the Offload .app, zip it, and attach to the release when one is published. name: Build and attach release asset on: From e4c6d14a69e7915e623779261a44eabd19f42a45 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 20 Feb 2026 21:19:07 +0100 Subject: [PATCH 4/4] ci: add write permissions for contents in build-release-asset workflow --- .github/workflows/build-release-asset.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-release-asset.yml b/.github/workflows/build-release-asset.yml index 3dc8219..4a055e6 100644 --- a/.github/workflows/build-release-asset.yml +++ b/.github/workflows/build-release-asset.yml @@ -7,6 +7,8 @@ on: jobs: build-macos: runs-on: macos-latest + permissions: + contents: write steps: - name: Checkout release tag uses: actions/checkout@v4