compat DR status rework
This commit is contained in:
parent
833ac81c08
commit
316d3d5f15
14
.github/workflows/get_info.py
vendored
14
.github/workflows/get_info.py
vendored
@ -10,7 +10,7 @@ import rtoml
|
||||
|
||||
sys.path.append(os.path.abspath(os.curdir))
|
||||
|
||||
from Difficult_Rocket.runtime import DR_runtime
|
||||
from Difficult_Rocket import DR_status
|
||||
|
||||
args = ['-env', '-github-dev']
|
||||
|
||||
@ -26,13 +26,9 @@ if sys.argv == [__file__]: # 没有输入参数,直接输出默认信息并
|
||||
|
||||
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)
|
||||
print(f'$env:DR_version = "{DR_status.DR_version}"', file=env_file)
|
||||
print(f'$env:Build_version = "{DR_status.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}')
|
||||
print(f'DR_version={DR_status.DR_version}')
|
||||
print(f'Build_version={DR_status.Build_version}')
|
||||
|
Loading…
Reference in New Issue
Block a user