Skip to content

Commit

Permalink
Merge pull request #16 from chrisxiao/support-apple-silicon
Browse files Browse the repository at this point in the history
release new 0.6.0
  • Loading branch information
chrisxiao authored Nov 19, 2023
2 parents 77abe1e + 4e6a79b commit f2a8a32
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/macos-13-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build MacOS 13 Application

on:
workflow_dispatch:
release:
types: [published]

permissions:
contents: write

jobs:
build:
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-build.txt
- name: Build
run: |
rm -rf build
rm -rf dist
python -c "import platform;print(platform.mac_ver())"
python -c "import sys;print(sys.version)"
python setup.py py2app
- name: Create Zip Package
run: |
zip -r ./dist/TrojanA-app-macos-13.zip ./dist/TrojanA.app
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TrojanA-app-macos-13
path: ./dist/TrojanA-app-macos-13.zip
- name: Upload Release File
if: ${{ github.event_name == 'release'}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
run: |
gh release upload "$TAG_NAME" ./dist/TrojanA-app-macos-13.zip
47 changes: 47 additions & 0 deletions .github/workflows/macos-13-arm-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build MacOS 13 Application on Apple Silicon

on:
workflow_dispatch:
release:
types: [published]

permissions:
contents: write

jobs:
build:
runs-on: macos-13-xl

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-build.txt
- name: Build
run: |
rm -rf build
rm -rf dist
python -c "import platform;print(platform.mac_ver())"
python -c "import sys;print(sys.version)"
python setup.py py2app
- name: Create Zip Package
run: |
zip -r ./dist/TrojanA-app-macos-13-arm.zip ./dist/TrojanA.app
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TrojanA-app-macos-13-arm
path: ./dist/TrojanA-app-macos-13-arm.zip
- name: Upload Release File
if: ${{ github.event_name == 'release'}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
run: |
gh release upload "$TAG_NAME" ./dist/TrojanA-app-macos-13-arm.zip
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'argv_emulation': True,
'iconfile': 'icon.icns',
'plist': {
'CFBundleShortVersionString': '0.5.0',
'CFBundleShortVersionString': '0.6.0',
'LSUIElement': True,
},
'packages': ['rumps'],
Expand Down

0 comments on commit f2a8a32

Please sign in to comment.