2022-12-29 17:11:44 +08:00
|
|
|
# -------------------------------
|
|
|
|
# Difficult Rocket
|
|
|
|
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
|
|
|
|
# All rights reserved
|
|
|
|
# -------------------------------
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
2023-01-01 10:58:10 +08:00
|
|
|
import rtoml
|
2022-12-29 17:11:44 +08:00
|
|
|
|
2022-12-29 17:30:04 +08:00
|
|
|
sys.path.append(os.path.abspath(os.curdir))
|
2022-12-30 11:30:41 +08:00
|
|
|
if '-env' not in sys.argv:
|
2022-12-30 11:40:03 +08:00
|
|
|
print(sys.version)
|
|
|
|
print(os.getenv('env:GITHUB_SHA'))
|
2023-01-01 10:58:10 +08:00
|
|
|
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'))
|
2022-12-29 17:11:44 +08:00
|
|
|
|
2022-12-30 10:59:44 +08:00
|
|
|
if os.path.abspath(os.curdir) in sys.path:
|
|
|
|
from Difficult_Rocket import DR_runtime
|
2022-12-29 17:30:04 +08:00
|
|
|
|
2022-12-30 10:59:44 +08:00
|
|
|
print(f'DR_version={DR_runtime.DR_version}')
|
2022-12-30 11:21:43 +08:00
|
|
|
print(f'DR_language={DR_runtime.language}')
|
2022-12-30 11:18:14 +08:00
|
|
|
# os.system(f'echo "DR_version={DR_runtime.DR_version}" >> $GITHUB_OUTPUT')
|
2022-12-29 17:26:39 +08:00
|
|
|
|