From 8385df0cd5490946a729881e910996a6b830bedf Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 20 Jan 2024 14:28:14 +0800 Subject: [PATCH] Fix action --- .github/workflows/get_info.py | 4 ++-- config/main.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/get_info.py b/.github/workflows/get_info.py index 8f8b171..962706c 100644 --- a/.github/workflows/get_info.py +++ b/.github/workflows/get_info.py @@ -6,7 +6,7 @@ import os import sys -import tomlkit +import tomli_w import io @@ -35,7 +35,7 @@ if sys.argv == [__file__]: # 没有输入参数,直接输出默认信息并 config_file = tools.load_file("./config/main.toml") config_file["window"]["width"] = 1024 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: print(f"DR_version={DR_status.DR_version}") diff --git a/config/main.toml b/config/main.toml index e8496bc..e472de7 100644 --- a/config/main.toml +++ b/config/main.toml @@ -8,7 +8,7 @@ fonts_folder = "assets/fonts" [window] style = "None" width = 1003 -height = 632 +height = 715 visible = true gui_scale = 1 caption = "Difficult Rocket v{DR_version}"