Skip to content

Commit

Permalink
CI: upload .app for macos in debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
itsHenry35 committed Sep 29, 2024
1 parent ae18c60 commit cbb3b54
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,15 @@ jobs:
- name: Build and compress the artifact
run: |
pyinstaller --noconfirm --onefile --console --icon "/Users/runner/work/ledu/ledu/ledu.ico" --add-data "/Users/runner/work/ledu/ledu/bin/aria2c_darwin_x64:bin/" --add-data "/Users/runner/work/ledu/ledu/bin/aria2_darwin.conf:bin/" "/Users/runner/work/ledu/ledu/main.py"
pyinstaller --noconfirm --onefile --console --icon "ledu.ico" --add-data "bin/aria2c_darwin_arm64:bin/" --add-data "bin/aria2_darwin.conf:bin/" "main.py"
SHORT_COMMIT_ID=${GITHUB_SHA::7}
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
FILENAME=ledu_download_macos_pr_$SHORT_COMMIT_ID
else
FILENAME=ledu_download_macos_$SHORT_COMMIT_ID
fi
mv /Users/runner/work/ledu/ledu/dist/main /Users/runner/work/ledu/ledu/dist/$FILENAME
rm dist/main
mv dist/main.app/ dist/$FILENAME.app/
- name: Upload
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -145,7 +146,8 @@ jobs:
else
FILENAME=ledu_download_macos_$SHORT_COMMIT_ID
fi
mv /Users/runner/work/ledu/ledu/dist/main /Users/runner/work/ledu/ledu/dist/$FILENAME
rm dist/main
mv dist/main.app/ dist/$FILENAME.app/
- name: Upload
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit cbb3b54

Please sign in to comment.