Compare commits
No commits in common. "8ac9d29d06a411fa462a67164a0151720de580cf" and "29bc3ef8bc9a2c62867678a316792867bd0cc1ba" have entirely different histories.
8ac9d29d06
...
29bc3ef8bc
4
.github/workflows/nuitka.yml
vendored
4
.github/workflows/nuitka.yml
vendored
@ -86,7 +86,7 @@ jobs:
|
|||||||
- name: Build by nuitka
|
- name: Build by nuitka
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
python -m lndl_nuitka . -y -github
|
python -m lndl_nuitka . -y
|
||||||
# 集成的构建脚本 好耶!
|
# 集成的构建脚本 好耶!
|
||||||
|
|
||||||
# 获取短 sha
|
# 获取短 sha
|
||||||
@ -105,4 +105,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Difficult-Rocket_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}-Build.${{github.run_number}}+${{env.short_sha}}.zip
|
name: Difficult-Rocket_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}-Build.${{github.run_number}}+${{env.short_sha}}.zip
|
||||||
path: |
|
path: |
|
||||||
build/DR.dist
|
build/github/DR.dist
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -74,7 +74,7 @@ jobs:
|
|||||||
- name: Build by nuitka
|
- name: Build by nuitka
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
python -m lndl_nuitka . -y -github
|
python -m lndl_nuitka . -y
|
||||||
# 集成的构建脚本 好耶!
|
# 集成的构建脚本 好耶!
|
||||||
|
|
||||||
# 编译 dr_rs
|
# 编译 dr_rs
|
||||||
@ -94,7 +94,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: DR_full_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}
|
name: DR_full_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}
|
||||||
path: |
|
path: |
|
||||||
build/DR.dist
|
build/github/DR.dist
|
||||||
mods/dr_game
|
mods/dr_game
|
||||||
|
|
||||||
Zip-All:
|
Zip-All:
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
# All rights reserved
|
# All rights reserved
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
|
|
||||||
import sys
|
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
from Difficult_Rocket import sdk_version, build_version
|
from Difficult_Rocket import sdk_version, build_version
|
||||||
@ -53,10 +52,8 @@ def gen_pyglet_no_follow_import() -> list:
|
|||||||
return no_follow_import
|
return no_follow_import
|
||||||
|
|
||||||
|
|
||||||
is_github = "-github" in sys.argv
|
|
||||||
|
|
||||||
|
|
||||||
def main(config: raw_config_type) -> nuitka_config_type:
|
def main(config: raw_config_type) -> nuitka_config_type:
|
||||||
|
print("debug", config)
|
||||||
config = config["cli"]
|
config = config["cli"]
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
config.pop("windows-icon-from-ico")
|
config.pop("windows-icon-from-ico")
|
||||||
@ -73,9 +70,7 @@ def main(config: raw_config_type) -> nuitka_config_type:
|
|||||||
config["macos-app-version"] = str(sdk_version)
|
config["macos-app-version"] = str(sdk_version)
|
||||||
|
|
||||||
config["nofollow-import-to"] += gen_pyglet_no_follow_import()
|
config["nofollow-import-to"] += gen_pyglet_no_follow_import()
|
||||||
if is_github:
|
config["output-dir"] = "./build/nuitka-" + platform.system().lower()
|
||||||
config["output-dir"] = "./build"
|
|
||||||
else:
|
|
||||||
config["output-dir"] = "./build/nuitka-" + platform.system().lower()
|
|
||||||
|
|
||||||
|
print("done", config)
|
||||||
return config
|
return config
|
||||||
|
Loading…
Reference in New Issue
Block a user