131
This commit is contained in:
parent
de158e62a8
commit
4a6f3a3144
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
# ---> Lua
|
||||
/gamebuild
|
||||
gamebuild
|
||||
# Compiled Lua sources
|
||||
luac.out
|
||||
|
||||
|
@ -2,12 +2,12 @@ from tools import *
|
||||
|
||||
# 设置工作文件夹为 translate
|
||||
os.chdir("translate")
|
||||
WEBLATE_PATH = "/home/ws3917/PS-Outertale/weblate"
|
||||
WEBLATE_PATH = "/home/ws3917/Code/Weblate"
|
||||
|
||||
# 【导出部分】只有第一次或原文有更新的时候需要跑一次,正常情况下不需要
|
||||
# 将原文带文本的lua文件复制到text文件夹 - 【注意】只有第一次和版本升级时需要运行!
|
||||
# 如果text/en_US文件夹已经有文件,就千万千万不要再执行了(否则原文会被替换成半英半中的混合体)
|
||||
initialize_files_lua()
|
||||
# initialize_files_lua()
|
||||
for lua_file in src_text_path.glob("*.lua"):
|
||||
# 根据lua生成英文文本json
|
||||
export_translation_json(lua_file, f"strings/{lua_file.stem}/en_US.json")
|
||||
|
@ -2,7 +2,7 @@ from tools import *
|
||||
|
||||
# 设置工作文件夹为 translate
|
||||
os.chdir("translate")
|
||||
WEBLATE_PATH = "/home/ws3917/PS-Outertale/weblate"
|
||||
WEBLATE_PATH = "/home/ws3917/Code/Weblate"
|
||||
# 【导入部分】正常翻译时例行维护游戏翻译、导入、测试
|
||||
# 拉取weblate仓库更改
|
||||
os.system(f"cd {WEBLATE_PATH} && git pull")
|
||||
@ -29,6 +29,4 @@ for lua_file in src_text_path.glob("*.lua"):
|
||||
# 打包游戏
|
||||
os.chdir("..")
|
||||
# 记得定期改版本号
|
||||
os.system(
|
||||
f"7z a -tzip 'translate/gamebuild/Petrichor-V1-{datetime.today()}.love' ./ -xr!translate"
|
||||
)
|
||||
os.system(f"7z a -tzip 'translate/gamebuild/Petrichor-V1.love' ./ -xr!translate")
|
||||
|
Loading…
x
Reference in New Issue
Block a user