diff --git a/.github/workflows/nuitka.yml b/.github/workflows/nuitka.yml index 177ef99..8f24234 100644 --- a/.github/workflows/nuitka.yml +++ b/.github/workflows/nuitka.yml @@ -57,14 +57,15 @@ jobs: if: runner.os == 'Windows' shell: powershell run: | - $arg = "--standalone --assume-yes-for-download --output-dir=build " - $arg += "--msvc=latest --clang --lto=no " - $arg += "--nofollow-import-to=objprint,numpy,pillow,cffi,PIL,pyglet " - $arg += "--include-data-dir=./libs/pyglet=./pyglet " - $arg += "--include-data-dir=./libs/fonts=./libs/fonts " - $arg += "--include-data-dir=./textures=./textures " - $arg += "--include-data-dir=./configs=./configs" - python -m nuitka $arg DR.py + action_build.ps1 +# $arg = "--standalone --assume-yes-for-download " +# $arg += "--msvc=latest --clang --lto=no --output-dir=build " +# $arg += "--nofollow-import-to=objprint,numpy,pillow,cffi,PIL,pyglet " +# $arg += "--include-data-dir=./libs/pyglet=./pyglet " +# $arg += "--include-data-dir=./libs/fonts=./libs/fonts " +# $arg += "--include-data-dir=./textures=./textures " +# $arg += "--include-data-dir=./configs=./configs " +# python -m nuitka $arg DR.py - name: Build on MacOS / Linux if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }} @@ -89,6 +90,4 @@ jobs: # with: # name: ${{ runner.os }} Build # path: | -# build/*.exe -# build/*.bin -# build/*.app/**/* \ No newline at end of file +# build/*.zip \ No newline at end of file diff --git a/action_build.ps1 b/action_build.ps1 new file mode 100644 index 0000000..1fbb2d3 --- /dev/null +++ b/action_build.ps1 @@ -0,0 +1 @@ +python -m nuitka --standalone --assume-yes-for-download --msvc=latest --clang --lto=no --output-dir=build --nofollow-import-to=objprint,numpy,pillow,cffi,PIL,pyglet --include-data-dir=./libs/pyglet=./pyglet --include-data-dir=./libs/fonts=./libs/fonts --include-data-dir=./textures=./textures --include-data-dir=./configs=./configs DR.py \ No newline at end of file diff --git a/nuitka2-complie.ps1 b/nuitka2-complie.ps1 deleted file mode 100644 index a3ec2a8..0000000 --- a/nuitka2-complie.ps1 +++ /dev/null @@ -1,11 +0,0 @@ -$start_time = Get-Uptime -Write-Output $start_time -python3.8.exe -m nuitka --jobs=24 --mingw64 --lto=no --show-memory --show-progress --output-dir=build/nuitka1 --include-data-dir=./configs=./configs --include-data-dir=./libs/fonts=./libs/fonts --include-data-dir=./textures=./textures --include-data-dir=./libs/pyglet=./pyglet --enable-plugin=numpy --nofollow-import-to=objprint,numpy,pillow,cffi,PIL,pyglet --standalone $args .\DR.py -$end_time = Get-Uptime -$out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds -Write-Output $end_time.TotalSeconds $start_time.TotalSeconds $out s -Write-Output $start_time $end_time -Write-Output "--jobs=24 --mingw64 --lto=no and $args" -# --include-data-dir=./libs/pyglet=./pyglet -# --run -# --disable-ccache