Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build-release-asset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and attach release asset

on:
release:
types: [published]

jobs:
build-macos:
runs-on: macos-latest
permissions:
contents: write
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 }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
12 changes: 0 additions & 12 deletions compile.sh

This file was deleted.