Compare commits

...

3 Commits

Author SHA1 Message Date
bb547ec49c
add remove other icon on other platform 2023-12-13 13:12:25 +08:00
d85a173d00
merge version to allow nuitka build 2023-12-13 13:05:59 +08:00
0f38287bbc
use lndl in github action build 2023-12-13 13:05:09 +08:00
4 changed files with 12 additions and 3 deletions

View File

@ -86,7 +86,7 @@ jobs:
- name: Build by nuitka
shell: pwsh
run: |
python nuitka_build.py --github
python -m lndl_nuitka . -y
# 集成的构建脚本 好耶!
# 获取短 sha

View File

@ -74,7 +74,7 @@ jobs:
- name: Build by nuitka
shell: pwsh
run: |
python nuitka_build.py --github
python -m lndl_nuitka . -y
# 集成的构建脚本 好耶!
# 编译 dr_rs

View File

@ -8,7 +8,7 @@ from pathlib import Path
from Difficult_Rocket.api.types import Options, Version
sdk_version = Version("0.9.0.0-alpha.0") # SDK 版本
sdk_version = Version("0.9.0.0") # SDK 版本
build_version = Version("2.2.0.0") # 编译文件版本(与游戏本体无关)
api_version = Version("0.1.1.0") # API 版本
__version__ = sdk_version

View File

@ -55,6 +55,15 @@ def gen_pyglet_no_follow_import() -> list:
def main(config: raw_config_type) -> nuitka_config_type:
print("debug", config)
config = config["cli"]
if platform.system() == "Darwin":
config.pop("windows-icon-from-ico")
config.pop("linux-icon")
elif platform.system() == "Linux":
config.pop("windows-icon-from-ico")
config.pop("macos-app-icon")
elif platform.system() == "Windows":
config.pop("linux-icon")
config.pop("macos-app-icon")
config["file-version"] = str(build_version)
config["product-version"] = str(sdk_version)