From 9cbd160f04aa19c20b33bfb2bbe89812bfeb4f70 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 22 Mar 2023 00:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BC=96=E8=AF=91=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuitka-win.ps1 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nuitka-win.ps1 b/nuitka-win.ps1 index 7f38441..8ab04e1 100644 --- a/nuitka-win.ps1 +++ b/nuitka-win.ps1 @@ -10,12 +10,12 @@ if (-Not (Test-Path -Path "./.github/workflows/env.ps1")) ./.github/workflows/env.ps1 -cd libs -cd Difficult_Rocket_rs -cd src +Set-Location libs +Set-Location Difficult_Rocket_rs +Set-Location src python3.8 setup.py build python post_build.py -cd ../../.. +Set-Location ../../.. $arg = @() # 输出配置 @@ -32,7 +32,8 @@ $arg += @("--windows-icon-from-ico=textures/icon.png") $arg += @("--msvc=latest") $arg += @("--clang") $arg += @("--lto=no") -$arg += @("--nofollow-import-to=libs.Difficult_Rocket_rs") +# 包配置 +$arg += @("--nofollow-import-to=objprint,pillow,PIL,pyglet") # 数据配置 $arg += @("--include-data-dir=./libs/pyglet=./libs/pyglet") $arg += @("--include-data-dir=./libs/fonts=./libs/fonts") @@ -48,7 +49,7 @@ $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 "--clang --lto=no and $args" +Write-Output "--clang --msvc=latest --lto=no and $args" Copy-Item .\libs\pyglet\ .\build\nuitka-win\DR.dist -Recurse # --include-data-dir=./libs/pyglet=./pyglet # --run