Update build command for fbs
This commit is contained in:
parent
256a5abfed
commit
f010279bb4
57
README.md
57
README.md
@ -4,37 +4,44 @@ Yet another Tetris clone, with Qt5 on Python 3
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Installation
|
## Downloads
|
||||||
* Download:
|
|
||||||
* [Linux](https://github.com/adrienmalin/TETRIS2000/releases/download/V0.3.1/TETRIS2000.tar.gz) (78.3 MB)
|
* [Linux archive](https://github.com/adrienmalin/TETRIS2000/releases/download/V0.3.1_fbs/TETRIS2000.tar.gz) (78.3 MB)
|
||||||
* [Windows](https://github.com/adrienmalin/TETRIS2000/releases/download/V0.3.1/TETRIS2000.zip) (51.7 MB)
|
* [Windows installer](https://github.com/adrienmalin/TETRIS2000/releases/download/V0.3.1_fbs/TETRIS2000Setup.exe) (53.6 MB)
|
||||||
* Extract the archive
|
|
||||||
* Launch Tetris2000
|
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
* Install [Python 3](https://www.python.org) with pip
|
* On Linux:
|
||||||
|
|
||||||
* Install qtpy, PyQt5 or PySide2, qdarkstyle, and pyinstaller (Nota: qdarkstyle don't support PySide2 yet):
|
```bash
|
||||||
|
mkdir TETRIS2000 # Create folder
|
||||||
|
cd TETRIS2000 # Enter folder
|
||||||
|
git clone https://github.com/adrienmalin/TETRIS2000 # Clone repository
|
||||||
|
python3 -m venv venv # Create a virtual environment
|
||||||
|
source venv/bin/activate # Activate the virtual environment
|
||||||
|
pip install fbs PyQt5==5.9.2 PyInstaller==3.3.1 qdarkstyle # Install requirements
|
||||||
|
python -m fbs run # Run application
|
||||||
|
python -m fbs freeze # Freeze
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
* On Windows:
|
||||||
pip3 install --user qtpy
|
|
||||||
pip3 install --user PyQt5
|
|
||||||
pip3 install --user qdarkstyle
|
|
||||||
pip3 install --user pyinstaller
|
|
||||||
```
|
|
||||||
|
|
||||||
* Clone repository:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/adrienmalin/Tetris2000
|
REM Create and enter folder
|
||||||
```
|
mkdir TETRIS2000
|
||||||
|
cd TETRIS2000
|
||||||
* Build with pyinstaller:
|
REM Clone repository
|
||||||
|
git clone https://github.com/adrienmalin/TETRIS2000
|
||||||
```bash
|
REM Create and activate a virtual environment
|
||||||
pyinstaller TETRIS2000.spec
|
python -m venv venv
|
||||||
```
|
call venv\scripts\activate.bat
|
||||||
|
REM Install requirements
|
||||||
|
pip install fbs PyQt5==5.9.2 PyInstaller==3.3.1 qdarkstyle
|
||||||
|
REM Run application
|
||||||
|
python -m fbs run
|
||||||
|
REM Create installer
|
||||||
|
python -m fbs installer
|
||||||
|
```
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user