mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 19:49:11 +08:00
improve release.py
This commit is contained in:
parent
815b157043
commit
299f361997
@ -2,6 +2,7 @@
|
||||
|
||||
2023/12/18
|
||||
* 修复lldb获取变量的时候返回为空值的问(感谢智明提供补丁)
|
||||
* 修复打包release资源路径不正常的问题(感谢智明提供补丁)
|
||||
|
||||
2023/12/16
|
||||
* 修复stm32编译警告。
|
||||
|
@ -4,6 +4,7 @@ import platform
|
||||
import shutil
|
||||
import json
|
||||
import collections
|
||||
import fnmatch
|
||||
|
||||
|
||||
def join_path(root, subdir):
|
||||
@ -11,7 +12,7 @@ def join_path(root, subdir):
|
||||
|
||||
|
||||
OS_NAME = platform.system()
|
||||
PRJ_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
PRJ_DIR = os.getcwd();
|
||||
OUTPUT_DIR = join_path(PRJ_DIR, 'release')
|
||||
BIN_DIR = join_path(PRJ_DIR, 'bin')
|
||||
|
||||
@ -73,6 +74,8 @@ def release():
|
||||
res_root = to_file_system_coding(assets['outputDir'])
|
||||
assets_root = join_path(PRJ_DIR, res_root + '/assets')
|
||||
|
||||
exeName = '';
|
||||
if 'appExeName' in CONFIG :
|
||||
exeName = CONFIG['appExeName']
|
||||
if exeName == '':
|
||||
exeName = 'demo'
|
||||
|
Loading…
Reference in New Issue
Block a user