Skip to content

Commit

Permalink
CI: don't move macos folder and fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
itsHenry35 committed Sep 24, 2023
1 parent 8660daa commit 04980f6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
run: |
pyinstaller --noconfirm --onefile --console --icon "D:/a/ledu/ledu/ledu.ico" --add-data "D:/a/ledu/ledu/bin/aria2c_win.exe;bin/" "D:/a/ledu/ledu/main.py"
SHORT_COMMIT_ID=${GITHUB_SHA::7}
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
if ($env:GITHUB_EVENT_NAME -eq "pull_request") {
FILENAME=ledu_download_win64_pr_$SHORT_COMMIT_ID.exe
else
else {
FILENAME=ledu_download_win64_$SHORT_COMMIT_ID.exe
fi
}
ren D:\a\ledu\ledu\dist\main.exe D:\a\ledu\ledu\dist\$FILENAME
- name: Upload
Expand Down Expand Up @@ -109,11 +109,9 @@ jobs:
FILENAME=ledu_download_macos_$SHORT_COMMIT_ID
fi
mv /Users/runner/work/ledu/ledu/dist/main /Users/runner/work/ledu/ledu/dist/$FILENAME
mv /Users/runner/work/ledu/ledu/dist/ /Users/runner/work/ledu/ledu/$FILENAME/
cd /Users/runner/work/ledu/ledu/$FILENAME/ && zip -r -X /Users/runner/work/ledu/ledu/$FILENAME.zip .
- name: Upload
uses: actions/upload-artifact@v3
with:
name: "MacOs-build"
path: "/Users/runner/work/ledu/ledu/$FILENAME/"
path: "/Users/runner/work/ledu/ledu/dist/"

0 comments on commit 04980f6

Please sign in to comment.