Skip to content

Commit 3e65dc1

Browse files
committed
Version 0.1.13
新功能: - 初步加入 Python 解释器选择下拉框,但还未实现用户添加与编辑功能; - 完善运行时信息相关功能,添加“是否位于PyInstaller捆绑冻结环境中”; - 增加运行时中文环境则使用中文翻译版PyInstaller功能 修复: - 修复英文版 PyInstaller 选项数据文件的错误; 重构与其他代码优化: - 运行时信息移至 `Constants` 包中的全局变量; - 主界面中央控件改用继承方式,更好地组织 Win/Mac 特有功能控件; - 改用 `QtFileOpen` 打开已编译资源中的文本文件; - 重命名已编译资源文件名称,体现其特殊身份;
1 parent 97d47ef commit 3e65dc1

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "py2exe-gui"
3-
version = "0.1.12"
3+
version = "0.1.13"
44
description = "GUI for PyInstaller, based on PySide6"
55
keywords = ["PyInstaller", "GUI", "PySide6"]
66
authors = ["muzing <muzi2001@foxmail.com>"]

src/py2exe_gui/Constants/app_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AppConstant:
1919
"""
2020

2121
NAME = "Py2exe-GUI"
22-
VERSION = "0.1.12"
22+
VERSION = "0.1.13"
2323
AUTHORS = ["muzing <muzi2001@foxmail.com>"]
2424
LICENSE = "GPL-3.0-or-later"
2525
HOME_PAGE = APP_URLs["HOME_PAGE"]

src/py2exe_gui/Core/packaging.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ def set_pyinstaller_args(self, arg: tuple[PyinstallerArgs, str]) -> None:
4444
self._add_pyinstaller_args()
4545
self._set_subprocess_working_dir()
4646

47-
def set_pyinstaller(self, python_path):
47+
def set_python_path(self, python_path):
48+
"""
49+
:param python_path: Python 可执行文件路径
50+
"""
51+
4852
self.subprocess.set_program(python_path)
4953

5054
def _add_pyinstaller_args(self) -> None:

src/py2exe_gui/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def _connect_pyenv_change(self):
6363
处理用户通过选择不同的 Python 解释器时的响应
6464
"""
6565

66-
self.packager.set_pyinstaller(self.center_widget.pyenv_combobox.currentData())
66+
self.packager.set_python_path(self.center_widget.pyenv_combobox.currentData())
6767
self.center_widget.pyenv_combobox.currentIndexChanged.connect(
68-
lambda: self.packager.set_pyinstaller(
68+
lambda: self.packager.set_python_path(
6969
self.center_widget.pyenv_combobox.currentData()
7070
)
7171
)

0 commit comments

Comments
 (0)