Files
MAX_CARLINK_A270S/MXC_A27-PCB4.5-270T/lib/awtk/awtk/scripts/release.py
2025-01-21 16:49:37 +08:00

25 lines
468 B
Python

import os
import sys
import release_common as common
if len(sys.argv) < 2:
print("Usage: python " + sys.argv[0] + ' exe [assets root] [bin root]')
print(" Ex: python " + sys.argv[0] + ' demoui.exe')
sys.exit(0)
CWD = os.getcwd()
bin_root = CWD
assets_root = CWD
exe_name = sys.argv[1]
if len(sys.argv) > 2:
assets_root = sys.argv[2]
if len(sys.argv) > 3:
bin_root = sys.argv[3]
common.init(exe_name, assets_root, bin_root)
common.release()