improve release.py

This commit is contained in:
lixianjing 2023-12-18 17:41:46 +08:00
parent 815b157043
commit 299f361997
2 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,7 @@
2023/12/18
* 修复lldb获取变量的时候返回为空值的问(感谢智明提供补丁)
* 修复打包release资源路径不正常的问题(感谢智明提供补丁)
2023/12/16
* 修复stm32编译警告。

View File

@ -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,7 +74,9 @@ def release():
res_root = to_file_system_coding(assets['outputDir'])
assets_root = join_path(PRJ_DIR, res_root + '/assets')
exeName = CONFIG['appExeName']
exeName = '';
if 'appExeName' in CONFIG :
exeName = CONFIG['appExeName']
if exeName == '':
exeName = 'demo'
exeName = exeName + '.exe' if OS_NAME == 'Windows' else exeName