Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
attempt at using pyinstaller to create a macos executable
i dont expect this to work first try, but it'd be cool if it did!
  • Loading branch information
Vhou-Atroph committed Mar 6, 2024
1 parent a1e5401 commit da15fa2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,34 @@ jobs:
name: wheels
path: dist

macos-exe:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
target: [x86_64]
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Build executable
run: |
pip install pyinstaller
cargo build --release
mv ./target/release/tt_damage_calculator.dll tt_damage_calculator.pyd
mv ./target/release/tt_damage_calculator.pyd ./src/tt_damage_calculator
pyinstaller "Toontown Damage Calculator.spec"
cp -R ./src/tt_damage_calculator/assets ./dist/assets
cp -R ./LICENSE ./dist
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: mac64-executable
path: dist

macos-wheel:
runs-on: macos-latest
strategy:
Expand Down

0 comments on commit da15fa2

Please sign in to comment.