Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Apr 13, 2024
1 parent 69bede2 commit 627203a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ jobs:
# product-version: ${{ steps.info.outputs.version }}
# copyright: ${{ steps.info.outputs.copyright }}

# windows-icon-from-ico: "resource/img/icon/logo.png"
# windows-icon-from-ico: "res/img/icon/logo.png"
# mingw64: true

# macos-app-icon: "resource/img/icon/logo.png"
# macos-app-icon: "res/img/icon/logo.png"
# macos-app-version: ${{ steps.info.outputs.version }}
# macos-create-app-bundle: true

Expand All @@ -103,14 +103,14 @@ jobs:
then
icon_filename="logo.icns"
fi
pyinstaller --onedir --paths resource --contents-directory . --clean --windowed --name LDDC --specpath dist/spec --distpath dist/dist --workpath dist/build --icon $(pwd)/resource/img/icon/$icon_filename LDDC.py
pyinstaller --onedir --contents-directory . --clean --windowed --name LDDC --specpath dist/spec --distpath dist/dist --workpath dist/build --icon $(pwd)/res/img/icon/$icon_filename LDDC.py
- name: create dmg
if: ${{ matrix.os == 'macos-latest' }}
run: |
create-dmg \
--volname "LDDC" \
--volicon "resource/img/icon/logo.icns" \
--volicon "res/img/icon/logo.icns" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
Expand All @@ -131,7 +131,7 @@ jobs:
mkdir -p deb/usr/bin
mkdir -p deb/usr/share/applications
mkdir -p deb/usr/share/icons/
cp -r ../resource/img/icon/logo.ico deb/usr/share/icons/LDDC.ico
cp -r ../res/img/icon/logo.ico deb/usr/share/icons/LDDC.ico
cp -RT dist/LDDC deb/usr/lib/LDDC
chmod +x deb/usr/lib/LDDC/LDDC
ln -s ../lib/LDDC/LDDC deb/usr/bin/LDDC
Expand Down

0 comments on commit 627203a

Please sign in to comment.