From d3e85340b72f41ffec3f2319cf89cb57ee53099d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sun, 22 May 2022 19:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=8D=A2=E8=A1=8C=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7=E6=9B=BF=E6=8D=A2=E4=B8=BAWindows=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8413de6..f9d2060 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,11 +40,11 @@ jobs: # 使用pyinstaller构建 - name: Build pypvz with pyinstaller run: | - pyinstaller -F main.py \ - -n pypvz-with-python${{ matrix.python_version }}-pyinstaller-x64.exe \ - --distpath ./out \ - --noconsole \ - --add-data="resources;./resources" \ + pyinstaller -F main.py ` + -n pypvz-with-python${{ matrix.python_version }}-pyinstaller-x64.exe ` + --distpath ./out ` + --noconsole ` + --add-data="resources;./resources" ` -i ./pypvz.ico - name: Release the version built by pyinstaller @@ -63,19 +63,19 @@ jobs: - name: Build pypvz with Nuitka run: | - echo y | python -m nuitka --standalone \ - --onefile \ - --show-progress \ - --show-memory \ - --output-dir=out \ - --windows-icon-from-ico=pypvz.ico \ - --include-data-dir=resources=resources \ - --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libogg-0.dll=libogg-0.dll \ - --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libopus-0.dll=libopus-0.dll \ - --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libopusfile-0.dll=libopusfile-0.dll \ - --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libvorbisfile-3.dll=libvorbisfile-3.dll \ - --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libvorbis-0.dll=libvorbis-0.dll \ - --windows-disable-console \ + echo y | python -m nuitka --standalone ` + --onefile ` + --show-progress ` + --show-memory ` + --output-dir=out ` + --windows-icon-from-ico=pypvz.ico ` + --include-data-dir=resources=resources ` + --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libogg-0.dll=libogg-0.dll ` + --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libopus-0.dll=libopus-0.dll ` + --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libopusfile-0.dll=libopusfile-0.dll ` + --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libvorbisfile-3.dll=libvorbisfile-3.dll ` + --include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libvorbis-0.dll=libvorbis-0.dll ` + --windows-disable-console ` main.py mv ./out/main.exe ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-msvc-x64.exe