diff --git a/com.emoticon.diy.znfav.launcher.free.json b/com.emoticon.diy.znfav.launcher.free.json new file mode 100644 index 0000000..69e9fae --- /dev/null +++ b/com.emoticon.diy.znfav.launcher.free.json @@ -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 +} \ No newline at end of file diff --git a/game_config/com.emoticon.diy.znfav.launcher.free/com.emoticon.diy.znfav.launcher.free_GooglePlay.zip b/game_config/com.emoticon.diy.znfav.launcher.free/com.emoticon.diy.znfav.launcher.free_GooglePlay.zip new file mode 100644 index 0000000..600c466 Binary files /dev/null and b/game_config/com.emoticon.diy.znfav.launcher.free/com.emoticon.diy.znfav.launcher.free_GooglePlay.zip differ diff --git a/game_config/com.emoticon.diy.znfav.launcher.free/drawable-xxhdpi.zip b/game_config/com.emoticon.diy.znfav.launcher.free/drawable-xxhdpi.zip new file mode 100644 index 0000000..f782ebe Binary files /dev/null and b/game_config/com.emoticon.diy.znfav.launcher.free/drawable-xxhdpi.zip differ diff --git a/game_config/com.emoticon.diy.znfav.launcher.free/emoticondiy.keystore b/game_config/com.emoticon.diy.znfav.launcher.free/emoticondiy.keystore new file mode 100644 index 0000000..6b11a54 Binary files /dev/null and b/game_config/com.emoticon.diy.znfav.launcher.free/emoticondiy.keystore differ diff --git a/game_config/com.emoticon.diy.znfav.launcher.free/icon.zip b/game_config/com.emoticon.diy.znfav.launcher.free/icon.zip new file mode 100644 index 0000000..2173b9c Binary files /dev/null and b/game_config/com.emoticon.diy.znfav.launcher.free/icon.zip differ diff --git a/game_config/com.emoticon.diy.znfav.launcher.free/unityLibrary.zip b/game_config/com.emoticon.diy.znfav.launcher.free/unityLibrary.zip new file mode 100644 index 0000000..7485371 Binary files /dev/null and b/game_config/com.emoticon.diy.znfav.launcher.free/unityLibrary.zip differ diff --git a/main.py b/main.py index 9773aba..51f6177 100644 --- a/main.py +++ b/main.py @@ -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) diff --git a/run_script_com.emoticon.diy.znfav.launcher.free.bat b/run_script_com.emoticon.diy.znfav.launcher.free.bat new file mode 100644 index 0000000..0f02202 --- /dev/null +++ b/run_script_com.emoticon.diy.znfav.launcher.free.bat @@ -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 \ No newline at end of file