Skip to content

Commit

Permalink
Version 0.1.13
Browse files Browse the repository at this point in the history
新功能:
- 初步加入 Python 解释器选择下拉框,但还未实现用户添加与编辑功能;
- 完善运行时信息相关功能,添加“是否位于PyInstaller捆绑冻结环境中”;
- 增加运行时中文环境则使用中文翻译版PyInstaller功能

修复:
- 修复英文版 PyInstaller 选项数据文件的错误;

重构与其他代码优化:
- 运行时信息移至 `Constants` 包中的全局变量;
- 主界面中央控件改用继承方式,更好地组织 Win/Mac 特有功能控件;
- 改用 `QtFileOpen` 打开已编译资源中的文本文件;
- 重命名已编译资源文件名称,体现其特殊身份;
  • Loading branch information
muziing committed Dec 18, 2023
1 parent 97d47ef commit 3e65dc1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "py2exe-gui"
version = "0.1.12"
version = "0.1.13"
description = "GUI for PyInstaller, based on PySide6"
keywords = ["PyInstaller", "GUI", "PySide6"]
authors = ["muzing <muzi2001@foxmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion src/py2exe_gui/Constants/app_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AppConstant:
"""

NAME = "Py2exe-GUI"
VERSION = "0.1.12"
VERSION = "0.1.13"
AUTHORS = ["muzing <muzi2001@foxmail.com>"]
LICENSE = "GPL-3.0-or-later"
HOME_PAGE = APP_URLs["HOME_PAGE"]
6 changes: 5 additions & 1 deletion src/py2exe_gui/Core/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def set_pyinstaller_args(self, arg: tuple[PyinstallerArgs, str]) -> None:
self._add_pyinstaller_args()
self._set_subprocess_working_dir()

def set_pyinstaller(self, python_path):
def set_python_path(self, python_path):
"""
:param python_path: Python 可执行文件路径
"""

self.subprocess.set_program(python_path)

def _add_pyinstaller_args(self) -> None:
Expand Down
4 changes: 2 additions & 2 deletions src/py2exe_gui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def _connect_pyenv_change(self):
处理用户通过选择不同的 Python 解释器时的响应
"""

self.packager.set_pyinstaller(self.center_widget.pyenv_combobox.currentData())
self.packager.set_python_path(self.center_widget.pyenv_combobox.currentData())
self.center_widget.pyenv_combobox.currentIndexChanged.connect(
lambda: self.packager.set_pyinstaller(
lambda: self.packager.set_python_path(
self.center_widget.pyenv_combobox.currentData()
)
)
Expand Down

0 comments on commit 3e65dc1

Please sign in to comment.