Py2exe-GUI/README.md

129 lines
5.3 KiB
Markdown
Raw Permalink Normal View History

2024-01-16 17:49:45 +08:00
<p align="center">
<img alt="Py2exe-GUI Logo" src="https://raw.githubusercontent.com/muziing/Py2exe-GUI/main/docs/source/images/py2exe-gui_logo_big.png">
</p>
2022-09-03 19:41:26 +08:00
2024-01-16 17:49:45 +08:00
<h2 align="center">Python GUI packaging tool</h2>
<p align="center">
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/muziing/Py2exe-GUI">
<img alt="Python Version" src="https://img.shields.io/pypi/pyversions/py2exe-gui">
<a href="https://pypi.org/project/py2exe-gui/"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/py2exe-gui"></a>
<a href="https://pypi.org/project/py2exe-gui/"><img alt="PyPI Downloads" src="https://img.shields.io/pypi/dm/py2exe-gui.svg?label=PyPI%20downloads"></a>
2023-12-20 18:27:44 +08:00
</p>
<p align="center">
<a href="https://doc.qt.io/qtforpython/index.html"><img alt="PySide Version" src="https://img.shields.io/badge/PySide-6.6-blue"></a>
2023-12-20 18:27:44 +08:00
<a href="https://github.com/astral-sh/ruff"><img alt="Ruff" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json"></a>
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
<a href="https://mypy-lang.org/"><img alt="Checked with mypy" src="https://img.shields.io/badge/mypy-checked-blue"></a>
</p>
2022-09-05 21:28:57 +08:00
<p align="center">
English | <a href="README_zh.md">简体中文</a>
</p>
## Introduction
2022-09-05 21:28:57 +08:00
2024-01-01 11:23:27 +08:00
Py2exe-GUI is an assist tool based on [PySide6](https://doc.qt.io/qtforpython/index.html), designed to provide a
complete yet easy-to-use GUI for [PyInstaller](https://pyinstaller.org/).
2024-01-04 21:54:28 +08:00
![Screenshot](https://raw.githubusercontent.com/muziing/Py2exe-GUI/main/docs/source/images/Py2exe-GUI_v0.3.1_mainwindow_screenshot_en.png)
2024-01-01 11:23:27 +08:00
2024-01-04 21:54:28 +08:00
![Screenshot](https://raw.githubusercontent.com/muziing/Py2exe-GUI/main/docs/source/images/Py2exe-GUI_v0.2.0_screenshot.png)
2022-09-03 19:41:26 +08:00
It has the following features:
2022-09-03 19:41:26 +08:00
2024-01-01 11:23:27 +08:00
- Fully graphical interface, easy to use.
- All options of PyInstaller will be supported.
2024-01-16 17:49:45 +08:00
- You can invoke any local Python interpreter with its corresponding environment, eliminating the need to reinstall it in each interpreter environment to be packaged.
2022-12-10 21:04:42 +08:00
- Cross-platform, supports Windows, Linux and macOS.
2024-01-01 11:23:27 +08:00
## How to install
2024-01-01 11:23:27 +08:00
> Note: Py2exe-GUI is still in the early stages of development, and the distributions provided are *beta versions*.
> Installation methods may change frequently, so be sure to check these instructions often.
### Option A: Install with `pip`
First, install PyInstaller in the Python interpreter environment which to be packaged:
```shell
2024-01-01 11:23:27 +08:00
pip install pyinstaller # Must be installed in your project environment
```
Then install Py2exe-GUI with `pip`:
```shell
2024-01-01 11:23:27 +08:00
pip install py2exe-gui # Can be installed into any environment
```
Run:
```shell
py2exe-gui
```
You can run py2exe-gui as a package if running it as a script doesn't work:
```shell
python -m py2exe_gui # `_`, not `-`
```
### Option B: Run through source code
2022-09-03 19:41:26 +08:00
2024-01-16 17:49:45 +08:00
For those who like to try it out or are in desperate need of the latest bug fixes, you can run it through the repository source code:
2022-09-03 19:41:26 +08:00
2024-01-01 11:23:27 +08:00
1. Download the [latest main branching source code](https://codeload.github.com/muziing/Py2exe-GUI/zip/refs/heads/main).
2024-01-01 11:23:27 +08:00
2. Unzip it and go to the directory. Launch a terminal to create and activate the virtual environment:
2024-01-01 11:23:27 +08:00
```shell
python -m venv venv # create a virtual environment (Windows)
.\venv\Scripts\activate.ps1 # and activate it (Windows, PowerShell)
```
2024-01-01 11:23:27 +08:00
```shell
python3 -m venv venv # create a virtual environment (Linux/macOS)
source venv/bin/activate # and activate it (Linux/macOS)
```
2024-01-01 11:23:27 +08:00
3. Install dependencies and run the program.
2022-09-03 19:41:26 +08:00
2024-01-01 11:23:27 +08:00
```shell
pip install -r requirements.txt
python ./src/Py2exe-GUI.py
```
2024-01-01 11:23:27 +08:00
## Contributing
Py2exe-GUI is a free and open source software and anyone is welcome to contribute to its development.
2024-01-16 17:49:45 +08:00
If you encounter any problems while using it (including bugs, typos, etc.), or if you have suggestions for new features, you can open an [issue](https://github.com/muziing/Py2exe-GUI/issues/new).
2024-01-01 11:23:27 +08:00
2024-01-16 17:49:45 +08:00
If you have the willingness and ability to contribute code, please read the [contribution guidance](.github/CONTRIBUTING.md) for more details.
## License
2024-01-04 21:54:28 +08:00
![GPLv3](https://raw.githubusercontent.com/muziing/Py2exe-GUI/main/docs/source/images/gplv3-127x51.png)
2024-01-01 11:23:27 +08:00
Py2exe-GUI is licensed under the GPLv3 open source license, see the [LICENSE](LICENSE) file for details.
2024-01-16 17:49:45 +08:00
There is one exception: if your project uses Py2exe-GUI only as a packaging tool, and your final distribution does not contain Py2exe-GUI's source code or binaries, then your project is not restricted by the GPLv3 restrictions and can still be distributed as closed-source commercial software.
2024-01-01 11:23:27 +08:00
```text
Py2exe-GUI
2024-01-01 11:23:27 +08:00
Copyright (C) 2022-2024 muzing
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
```