Skip to content

Commit a22dc48

Browse files
committed
* 拷贝config文件和压缩文件夹
1 parent 8adf19d commit a22dc48

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
### 更新日志
22

3-
#### JadeV2.0.8 - 2023-09-21
4-
* 解决加密狗重复登录的bug
3+
#### JadeV2.0.9 - 2023-11-20
4+
* 拷贝config文件和压缩文件夹
55
---
66

7+
78
<details onclose>
89
<summary>查看更多更新日志</summary>
910

11+
#### JadeV2.0.8 - 2023-09-21
12+
* 解决加密狗重复登录的bug
13+
---
14+
1015
#### JadeV2.0.7 - 2023-07-19
1116
* 解决打包一个完成的包,exclude_files不生效的bug
1217
---

jade/jade_packing.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,17 @@ def zip_lib_package(args):
10131013
if os.path.exists(os.path.join(install_path,args.app_name)):
10141014
shutil.copy(os.path.join(install_path,args.app_name),os.path.join("Output/{}".format(args.app_name)))
10151015

1016+
def zip_package(args):
1017+
install_path = "releases/{}/{}/".format(args.name + "V" + args.app_version, getOperationSystem())
1018+
CreateSavePath(os.path.join(install_path,"config"))
1019+
shutil.copy(os.path.join("config","config.ini"),os.path.join(install_path,"config"))
1020+
output_path = CreateSavePath("Output")
1021+
if getOperationSystem() == "Windows":
1022+
zip_file(install_path,"Output/{}-win32.zip".format(args.name + "V" + args.app_version))
1023+
elif getOperationSystem() == "":
1024+
zip_file(install_path,"Output/{}-liunx.zip".format(args.name + "V" + args.app_version))
1025+
1026+
10161027
if __name__ == '__main__':
10171028
import argparse
10181029

0 commit comments

Comments
 (0)