2019-11-06 11:39:42 +08:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import release_common as common
|
|
|
|
|
|
|
|
|
|
|
|
if len(sys.argv) < 2:
|
2019-11-06 14:30:43 +08:00
|
|
|
print("Usage: python " + sys.argv[0] + ' exe [assets root] [bin root]')
|
2019-11-06 11:39:42 +08:00
|
|
|
print(" Ex: python " + sys.argv[0] + ' demoui.exe')
|
|
|
|
sys.exit(0)
|
|
|
|
|
2019-11-06 14:30:43 +08:00
|
|
|
CWD = os.getcwd()
|
|
|
|
bin_root = CWD
|
|
|
|
assets_root = CWD
|
|
|
|
|
|
|
|
exe_name = sys.argv[1]
|
|
|
|
|
|
|
|
if len(sys.argv) > 2:
|
2019-11-06 14:47:58 +08:00
|
|
|
assets_root = sys.argv[2]
|
2019-11-06 14:30:43 +08:00
|
|
|
|
|
|
|
if len(sys.argv) > 3:
|
2019-11-06 14:47:58 +08:00
|
|
|
bin_root = sys.argv[3]
|
2019-11-06 14:30:43 +08:00
|
|
|
|
|
|
|
common.init(exe_name, assets_root, bin_root)
|
2019-11-06 11:39:42 +08:00
|
|
|
common.release()
|