com.emoticon.diy.znfav.launcher.free 配置信息

This commit is contained in:
luojian 2025-08-01 10:12:59 +08:00
parent 2a5812d404
commit 6c774a4a4d
8 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,9 @@
{
"repo_url": "http://192.168.0.200:3000/Faxing/Lawnchair.git",
"repo_branch": "touka-dev-3.0",
"repo_commit": "",
"package_name": "com.emoticon.diy.znfav.launcher.free",
"game_type": "unity_native",
"version_display_name": "1.0.4",
"version_code": 4
}

18
main.py
View File

@ -1,4 +1,6 @@
import os
import argparse
import sys
from scripts.build import run
from scripts.context import Context
@ -6,7 +8,21 @@ from utils import SystemUtils
from utils.logger_utils import init
if __name__ == '__main__':
context = Context.from_json(open("build_config.json", "r").read())
parser = argparse.ArgumentParser(description='构建脚本')
parser.add_argument('--config', type=str, help='配置文件', default='build_config.json')
args = parser.parse_args()
config_path = args.config
if not config_path.endswith('.json'):
config_path += '.json'
print(config_path)
if not os.path.exists(config_path):
print(f"输入的配置文件不存在 {config_path}")
sys.exit(0)
context = Context.from_json(open(config_path, "r").read())
if SystemUtils.is_windows():
context.project_original_path = context.project_original_path.replace("/", os.sep)

View File

@ -0,0 +1,5 @@
@echo off
set HTTP_PROXY=http://127.0.0.1:7897
set HTTPS_PROXY=http://127.0.0.1:7897
python main.py --config com.emoticon.diy.znfav.launcher.free.json
pause