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
|
2023/12/18
|
||||||
* 修复lldb获取变量的时候返回为空值的问(感谢智明提供补丁)
|
* 修复lldb获取变量的时候返回为空值的问(感谢智明提供补丁)
|
||||||
|
* 修复打包release资源路径不正常的问题(感谢智明提供补丁)
|
||||||
|
|
||||||
2023/12/16
|
2023/12/16
|
||||||
* 修复stm32编译警告。
|
* 修复stm32编译警告。
|
||||||
|
@ -4,6 +4,7 @@ import platform
|
|||||||
import shutil
|
import shutil
|
||||||
import json
|
import json
|
||||||
import collections
|
import collections
|
||||||
|
import fnmatch
|
||||||
|
|
||||||
|
|
||||||
def join_path(root, subdir):
|
def join_path(root, subdir):
|
||||||
@ -11,7 +12,7 @@ def join_path(root, subdir):
|
|||||||
|
|
||||||
|
|
||||||
OS_NAME = platform.system()
|
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')
|
OUTPUT_DIR = join_path(PRJ_DIR, 'release')
|
||||||
BIN_DIR = join_path(PRJ_DIR, 'bin')
|
BIN_DIR = join_path(PRJ_DIR, 'bin')
|
||||||
|
|
||||||
@ -73,7 +74,9 @@ def release():
|
|||||||
res_root = to_file_system_coding(assets['outputDir'])
|
res_root = to_file_system_coding(assets['outputDir'])
|
||||||
assets_root = join_path(PRJ_DIR, res_root + '/assets')
|
assets_root = join_path(PRJ_DIR, res_root + '/assets')
|
||||||
|
|
||||||
exeName = CONFIG['appExeName']
|
exeName = '';
|
||||||
|
if 'appExeName' in CONFIG :
|
||||||
|
exeName = CONFIG['appExeName']
|
||||||
if exeName == '':
|
if exeName == '':
|
||||||
exeName = 'demo'
|
exeName = 'demo'
|
||||||
exeName = exeName + '.exe' if OS_NAME == 'Windows' else exeName
|
exeName = exeName + '.exe' if OS_NAME == 'Windows' else exeName
|
||||||
|
Loading…
Reference in New Issue
Block a user