mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
improve release scripts
This commit is contained in:
parent
273b11f5eb
commit
d0f11e5283
@ -1,5 +1,8 @@
|
||||
# 最新动态
|
||||
|
||||
2021/07/05
|
||||
* 完善release脚本(感谢朝泽提供补丁)
|
||||
|
||||
2021/07/02
|
||||
* 修复延迟动画刷新的问题(感谢智明提供补丁)
|
||||
* 修复agge的ras初始化的值不正常的问题(感谢智明提供补丁)
|
||||
|
@ -98,16 +98,32 @@ def copyFiles(src_root_dir, src, dst_root_dir, dst, ignore_files=[]):
|
||||
print('!!! copyFiles src NOT EXISTS: ' + s)
|
||||
|
||||
|
||||
def copySharedLib(src, dst):
|
||||
if not os.path.exists(src):
|
||||
print('copy shared lib: ' + src + ' is not exists.')
|
||||
else:
|
||||
files = os.listdir(src)
|
||||
for file in files:
|
||||
srcFilename = joinPath(src, file)
|
||||
dstFilename = joinPath(dst, file)
|
||||
if os.path.isdir(srcFilename):
|
||||
if not os.path.exists(dstFilename):
|
||||
os.makedirs(dstFilename)
|
||||
copySharedLib(srcFilename, dstFilename)
|
||||
else:
|
||||
ext = '.' + getShareLibExt()
|
||||
if file.endswith(ext):
|
||||
print('copy shared lib: ' + srcFilename + ' ==> ' + dstFilename)
|
||||
shutil.copy(srcFilename, dst)
|
||||
os.chmod(dstFilename, 0o755)
|
||||
|
||||
|
||||
def copyExe():
|
||||
output_bin_dir = joinPath(OUTPUT_DIR, 'bin')
|
||||
copyFile(BIN_DIR, EXE_NAME, output_bin_dir, EXE_NAME)
|
||||
os.chmod(joinPath(output_bin_dir, EXE_NAME), 0o755)
|
||||
copySharedLib(BIN_DIR, output_bin_dir)
|
||||
|
||||
sharelibs = glob.glob(BIN_DIR + "/*."+getShareLibExt());
|
||||
for filename in sharelibs:
|
||||
basename = os.path.basename(filename)
|
||||
copyFile(BIN_DIR, basename, output_bin_dir, basename)
|
||||
os.chmod(joinPath(output_bin_dir, basename), 0o755)
|
||||
os.chmod(joinPath(output_bin_dir, EXE_NAME), 0o755)
|
||||
|
||||
def copyAssets():
|
||||
copyFiles(ASSETS_DIR, '', OUTPUT_DIR, 'assets/')
|
||||
|
Loading…
Reference in New Issue
Block a user