feataaaaaaa
This commit is contained in:
parent
7095aac89e
commit
6bd1f2c2f0
4
.github/workflows/get_info.py
vendored
4
.github/workflows/get_info.py
vendored
@ -25,14 +25,14 @@ if sys.argv == [__file__]: # 没有输入参数,直接输出默认信息并
|
|||||||
config_file['window']['height'] = 768
|
config_file['window']['height'] = 768
|
||||||
rtoml.dump(config_file, open('./configs/main.toml', 'w'))
|
rtoml.dump(config_file, open('./configs/main.toml', 'w'))
|
||||||
|
|
||||||
elif os.path.abspath(os.curdir) in sys.path and sys.argv[1] == '-env':
|
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:
|
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_version = "{DR_runtime.DR_version}"', file=env_file)
|
||||||
print(f'$env:DR_language = "{DR_runtime.language}"', 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:DR_long_version = "{DR_runtime.DR_long_version}"', file=env_file)
|
||||||
print(f'$env:Build_version = "{DR_runtime.Build_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 sys.argv[1] == '-github-env':
|
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_version={DR_runtime.DR_version}')
|
||||||
print(f'DR_language={DR_runtime.language}')
|
print(f'DR_language={DR_runtime.language}')
|
||||||
|
2
.github/workflows/nuitka.yml
vendored
2
.github/workflows/nuitka.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
|||||||
id: DR_info
|
id: DR_info
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$infos = python .github/workflows/get_info.py -github-env
|
$infos = python .github/workflows/get_info.py -github
|
||||||
Write-Output $infos >> $env:GITHUB_ENV
|
Write-Output $infos >> $env:GITHUB_ENV
|
||||||
python .github/workflows/get_info.py
|
python .github/workflows/get_info.py
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user