123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import os
- SDK_NOTIFY_URL = "gamesdk.yyxxgame.com:9001/api/update_gcp_resource_msg/run"
- SDK_SP_NOTIFY_URL = "gamesdk.yyxxgame.com:9001/api/update_sp_resource_msg/run"
- SDK_NOTIFY_TEST_URL = "testgamesdk.yyxxgame.com/api/update_gcp_resource_msg/run"
- SDK_SP_NOTIFY_TEST_URL = "testgamesdk.yyxxgame.com/api/update_sp_resource_msg/run"
- # 本地输出目录,正式打包机需改为"/opt/new_packing_tool/output"
- OUT_PUT_DIR = "/Users/kaiweicai/Documents/Project/PackKit/YYXXPackKit/output"
- SP_OUT_PUT_DIR = "/Users/kaiweicai/Documents/Project/PackKit/YYXXPackKit/sp_output"
- # 打包日志输出目录,正式打包机需改为"/opt/package_log"
- SDK_LOG = "/Users/kaiweicai/Documents/Project/PackKit/YYXXPackKit/package_log"
- IS_USE_AAPT2 = True
- IS_USE_APK_V2_SIGN = False
- # 本地java目录,正式打包机需改为对应绝对路径
- KEY_TOOL_PATH = "/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home/bin/keytool"
- JAR_SIGNER_TOOL_PATH = "/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home/bin/jarsigner"
- def get_notify_url():
- if isTestEnvironment:
- return SDK_NOTIFY_TEST_URL
- else:
- return SDK_NOTIFY_URL
- def get_sp_notify_url():
- if isTestEnvironment:
- return SDK_SP_NOTIFY_TEST_URL
- else:
- return SDK_SP_NOTIFY_URL
- def get_out_put_dir():
- return OUT_PUT_DIR
- def get_local_ip():
- ip = os.popen("/sbin/ifconfig | grep 'inet addr' | awk '{print $2}'").read()
- ip = ip[ip.find(':') + 1:ip.find('\n')]
- return ip
- def isTestEnvironment():
- '''
- if get_local_ip() == "10.255.3.8":
- return True
- else:
- return False
- '''
- return True
|