2022-11-18 23:57:03 +08:00
|
|
|
$start_time = Get-Uptime
|
2022-11-20 20:25:46 +08:00
|
|
|
Write-Output $start_time
|
2023-01-02 19:22:22 +08:00
|
|
|
|
|
|
|
$arg = @()
|
|
|
|
# 输出配置
|
|
|
|
$arg += @("--standalone")
|
|
|
|
$arg += @("--output-dir=build/nuitka")
|
|
|
|
$arg += @("--company-name=tool-shenjack-workshop")
|
|
|
|
$arg += @("--product-name=Difficult-Rocket")
|
2023-01-03 16:28:50 +08:00
|
|
|
$arg += @("--product-version=0.6.4.1")
|
|
|
|
$arg += @("--file-version=0.0.1.0")
|
2023-01-02 19:22:22 +08:00
|
|
|
$arg += @("--file-description=Difficult-Rocket!")
|
2023-01-03 15:34:06 +08:00
|
|
|
$arg += @("--windows-icon-from-ico=textures/icon.png")
|
|
|
|
$arg += @("--macos-app-icon=textures/icon.png")
|
2023-01-02 19:22:22 +08:00
|
|
|
# 编译器配置
|
|
|
|
$arg += @("--mingw64")
|
|
|
|
$arg += @("--clang")
|
|
|
|
$arg += @("--lto=no")
|
|
|
|
# 包配置
|
|
|
|
$arg += @("--nofollow-import-to=objprint,pillow,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")
|
|
|
|
# 编译配置
|
|
|
|
$arg += @("--jobs=24")
|
|
|
|
$arg += @("--show-memory")
|
|
|
|
$arg += @("--show-progress")
|
|
|
|
$arg += @("--assume-yes-for-download")
|
|
|
|
python3.8.exe -m nuitka $arg $args DR.py
|
|
|
|
|
2022-11-18 23:57:03 +08:00
|
|
|
$end_time = Get-Uptime
|
|
|
|
$out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds
|
2022-11-22 11:43:46 +08:00
|
|
|
Write-Output $end_time.TotalSeconds $start_time.TotalSeconds $out s
|
2022-11-20 20:25:46 +08:00
|
|
|
Write-Output $start_time $end_time
|
2022-11-23 07:30:51 +08:00
|
|
|
Write-Output "--jobs=24 --clang --mingw64 --lto=no and ($args)"
|
2022-11-18 23:57:03 +08:00
|
|
|
# --include-data-dir=./libs/pyglet=./pyglet
|
|
|
|
# --run
|
|
|
|
# --disable-ccache
|