更新编译命令

This commit is contained in:
shenjack 2023-03-22 00:30:42 +08:00
parent 18d4a3e127
commit 9cbd160f04

View File

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