mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 10:38:47 +08:00
improve release scripts
This commit is contained in:
parent
aec2d1bf67
commit
c52ebbbef6
@ -47,7 +47,7 @@ python scripts/release.py [exe name]
|
||||
python scripts/release.py demoui.exe
|
||||
```
|
||||
|
||||
也可在其它项目中使用,
|
||||
也可在其它项目中使用。
|
||||
|
||||
用法:
|
||||
|
||||
@ -57,6 +57,8 @@ python ../awtk/scripts/release.py [exe name]
|
||||
|
||||
示例:
|
||||
|
||||
> 比如当前项目为awtk-mvvm-c-hello。
|
||||
|
||||
```
|
||||
python ../awtk/scripts/release.py awtk_mvvm_app.exe
|
||||
```
|
||||
|
@ -15,11 +15,10 @@ assets_root = CWD
|
||||
exe_name = sys.argv[1]
|
||||
|
||||
if len(sys.argv) > 2:
|
||||
assets_root = sys.argv[2]
|
||||
assets_root = sys.argv[2]
|
||||
|
||||
if len(sys.argv) > 3:
|
||||
bin_root = sys.argv[3]
|
||||
bin_root = sys.argv[3]
|
||||
|
||||
common.init(exe_name, assets_root, bin_root)
|
||||
common.release()
|
||||
|
||||
|
@ -23,7 +23,7 @@ def init(exe, assets_root, bin_root):
|
||||
BIN_DIR = joinPath(bin_root, 'bin')
|
||||
OUTPUT_DIR = joinPath(CWD, 'release')
|
||||
ASSETS_DIR = joinPath(assets_root, 'assets')
|
||||
|
||||
|
||||
if not os.path.exists(BIN_DIR):
|
||||
BIN_DIR = joinPath(bin_root, 'build/bin')
|
||||
|
||||
@ -38,12 +38,12 @@ def init(exe, assets_root, bin_root):
|
||||
if os.path.exists(OUTPUT_DIR):
|
||||
shutil.rmtree(OUTPUT_DIR)
|
||||
|
||||
print('==================================================');
|
||||
print('==================================================')
|
||||
print('EXE_NAME:' + EXE_NAME)
|
||||
print('ASSETS_DIR:' + ASSETS_DIR)
|
||||
print('OUTPUT_DIR:' + OUTPUT_DIR)
|
||||
print('BIN_DIR:' + BIN_DIR)
|
||||
print('==================================================');
|
||||
print('==================================================')
|
||||
|
||||
|
||||
def joinPath(root, subdir):
|
||||
|
Loading…
Reference in New Issue
Block a user