Update build command for fbs

This commit is contained in:
adrienmalin 2018-09-28 19:03:29 +02:00 committed by GitHub
parent 256a5abfed
commit f010279bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,36 +4,43 @@ Yet another Tetris clone, with Qt5 on Python 3
![screenshot](https://raw.githubusercontent.com/adrienmalin/TETRIS2000/gh-pages/screenshots/Tetris2000.png "Screenshot") ![screenshot](https://raw.githubusercontent.com/adrienmalin/TETRIS2000/gh-pages/screenshots/Tetris2000.png "Screenshot")
## 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 ```bash
pip3 install --user qtpy mkdir TETRIS2000 # Create folder
pip3 install --user PyQt5 cd TETRIS2000 # Enter folder
pip3 install --user qdarkstyle git clone https://github.com/adrienmalin/TETRIS2000 # Clone repository
pip3 install --user pyinstaller 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
``` ```
* Clone repository: * On Windows:
```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