fix: did fix?

This commit is contained in:
shenjack 2022-12-29 11:50:24 +08:00
parent d01503cca5
commit b9e405bc7d
3 changed files with 11 additions and 22 deletions

View File

@ -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/**/*
# build/*.zip

1
action_build.ps1 Normal file
View File

@ -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

View File

@ -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