From f62004c120fb84dcfee554fe9470bc18c6dde091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=89=E9=BB=98=E3=81=AE=E9=87=91?= <110812055+chenmozhijin@users.noreply.github.com> Date: Sat, 17 Aug 2024 17:03:42 +0800 Subject: [PATCH] feat: update workflows --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b4d7b75..5de70c4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,8 +105,12 @@ jobs: elif ${{ matrix.os == 'macos-latest' }} then icon_filename="logo.icns" - fi - 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 + if [[ ${{ matrix.arch }} == 'x64' ]]; then + target_arch="x86_64" + elif [[ ${{ matrix.arch }} == 'arm64' ]]; then + target_arch="arm64" + fi + pyinstaller --onedir --contents-directory . --clean --windowed --name LDDC --specpath dist/spec --distpath dist/dist --workpath dist/build --icon $(pwd)/res/img/icon/$icon_filename --target-arch $target_arch LDDC.py - name: create dmg if: ${{ matrix.os == 'macos-latest' }}