shenjack
e16a286fe3
suppport macos Update nuitka.yml Update nuitka.yml Update nuitka.yml Update nuitka.yml some manage no need to test Update nuitka.yml Update post_compile.py Update post_compile.py ruaaaa Update post_compile.py 离谱 aaaaa Update nuitka.yml my bad Update nuitka.yml Update nuitka.yml Update nuitka.yml 我不理解 ????????? action崩了啊,那没事了 啊啊啊啊 恢复啦? 酱紫改? Update nuitka.yml Update nuitka.yml 草,为啥 Update nuitka.yml Update nuitka.yml Update nuitka.yml Update nuitka.yml 这样的路径? woshishabi Update nuitka.yml Update nuitka.yml Update nuitka.yml Update post_build.py Update nuitka.yml Update nuitka.yml Update nuitka.yml aaaaaa Update nuitka.yml Update nuitka.yml Update setup.py Update nuitka.yml Update nuitka.yml Update post_compile.py Update post_compile.py Update post_compile.py Update post_compile.py Update post_compile.py Update post_compile.py Update post_compile.py Update post_compile.py try copy aaaaaa Update nuitka.yml Update nuitka.yml Update nuitka.yml like this? Update post_compile.py Update post_compile.py Update post_compile.py Update post_compile.py Update post_compile.py Update post_compile.py 这么改? Update post_compile.py Update nuitka.yml Update nuitka.yml
42 lines
1.5 KiB
Python
42 lines
1.5 KiB
Python
# -------------------------------
|
|
# Difficult Rocket
|
|
# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com
|
|
# All rights reserved
|
|
# -------------------------------
|
|
|
|
import os
|
|
import sys
|
|
import rtoml
|
|
|
|
sys.path.append(os.path.abspath(os.curdir))
|
|
|
|
from Difficult_Rocket import DR_runtime
|
|
|
|
args = ['-env', '-github-dev']
|
|
|
|
# print(sys.argv)
|
|
|
|
|
|
|
|
if sys.argv == [__file__]: # 没有输入参数,直接输出默认信息并输出
|
|
print(sys.version)
|
|
from Difficult_Rocket.utils import tools
|
|
# 重置窗口信息
|
|
config_file = tools.load_file('./configs/main.toml')
|
|
config_file['window']['width'] = 1024
|
|
config_file['window']['height'] = 768
|
|
rtoml.dump(config_file, open('./configs/main.toml', 'w'))
|
|
|
|
elif os.path.abspath(os.curdir) in sys.path and '-env' in sys.argv:
|
|
with open('./.github/workflows/env.ps1', encoding='utf-8', mode='w') as env_file:
|
|
print(f'$env:DR_version = "{DR_runtime.DR_version}"', file=env_file)
|
|
print(f'$env:DR_language = "{DR_runtime.language}"', file=env_file)
|
|
print(f'$env:DR_long_version = "{DR_runtime.DR_long_version}"', file=env_file)
|
|
print(f'$env:Build_version = "{DR_runtime.Build_version}"', file=env_file)
|
|
|
|
elif os.path.abspath(os.curdir) in sys.path and '-github' in sys.argv:
|
|
print(f'DR_version={DR_runtime.DR_version}')
|
|
print(f'DR_language={DR_runtime.language}')
|
|
print(f'DR_long_version={DR_runtime.DR_long_version}')
|
|
print(f'Build_version={DR_runtime.Build_version}')
|