Fix action

This commit is contained in:
shenjack 2024-01-20 14:28:14 +08:00
parent 89b7b81314
commit 8385df0cd5
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
import os import os
import sys import sys
import tomlkit import tomli_w
import io import io
@ -35,7 +35,7 @@ if sys.argv == [__file__]: # 没有输入参数,直接输出默认信息并
config_file = tools.load_file("./config/main.toml") config_file = tools.load_file("./config/main.toml")
config_file["window"]["width"] = 1024 config_file["window"]["width"] = 1024
config_file["window"]["height"] = 768 config_file["window"]["height"] = 768
tomlkit.dump(config_file, open("./config/main.toml", "w")) tomli_w.dump(config_file, open("./config/main.toml", "wb"))
elif os.path.abspath(os.curdir) in sys.path and "-github" in sys.argv: elif os.path.abspath(os.curdir) in sys.path and "-github" in sys.argv:
print(f"DR_version={DR_status.DR_version}") print(f"DR_version={DR_status.DR_version}")

View File

@ -8,7 +8,7 @@ fonts_folder = "assets/fonts"
[window] [window]
style = "None" style = "None"
width = 1003 width = 1003
height = 632 height = 715
visible = true visible = true
gui_scale = 1 gui_scale = 1
caption = "Difficult Rocket v{DR_version}" caption = "Difficult Rocket v{DR_version}"