Skip to content

Commit

Permalink
Release V1.0a5
Browse files Browse the repository at this point in the history
  • Loading branch information
GT-ZhangAcer committed Jun 18, 2021
1 parent 0f4a4f3 commit 67e3e82
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions qpt/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,14 @@ def make(self):
# 复制Debug所需文件
if self.with_debug:
debug_dir = os.path.join(os.path.split(qpt.__file__)[0], "ext/launcher_debug")
shutil.copytree(debug_dir, dst=self.debug_path, dirs_exist_ok=True)
shutil.copytree(self.module_path, dst=self.debug_path, dirs_exist_ok=True)
try:
shutil.copytree(debug_dir, dst=self.debug_path, dirs_exist_ok=True)
shutil.copytree(self.module_path, dst=self.debug_path, dirs_exist_ok=True)
except TypeError:
shutil.copytree(debug_dir, dst=self.debug_path)
shutil.copytree(self.module_path, dst=self.debug_path)
Logging.debug("打包策略将对Python3.7版本进行支持")

# 生成Debug标识符
unlock_file_path = os.path.join(self.debug_path, "configs/unlock.cache")
with open(unlock_file_path, "w", encoding="utf-8") as unlock_file:
Expand All @@ -165,7 +171,10 @@ def make(self):

# 复制Release启动器文件
launcher_dir = os.path.join(os.path.split(qpt.__file__)[0], "ext/launcher")
shutil.copytree(launcher_dir, dst=self.module_path, dirs_exist_ok=True)
try:
shutil.copytree(launcher_dir, dst=self.module_path, dirs_exist_ok=True)
except TypeError:
shutil.copytree(launcher_dir, dst=self.module_path)
os.rename(os.path.join(self.module_path, "compatibility_mode.cmd"),
os.path.join(self.module_path, "使用兼容模式运行.cmd"))
os.rename(os.path.join(self.module_path, "main.exe"),
Expand Down
2 changes: 1 addition & 1 deletion qpt/modules/qpt_kernel_dependency.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
qpt==1.0a4
qpt==1.0a5
pyqt5==5.15.4
pyqt5-Qt5==5.15.2
pyqt5-sip==12.9.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# python setup.py sdist bdist_wheel
setup(
name='QPT',
version='1.0a4',
version='1.0a5',
packages=find_packages(),
url='https://github.com/GT-ZhangAcer/QPT',
license='LGPL',
Expand Down

0 comments on commit 67e3e82

Please sign in to comment.