Update windows build script and add a README and a license to the dist dir

This commit is contained in:
Fabien LOISON 2020-05-06 15:33:19 +02:00
parent 6623fb0fc3
commit 1b7b14b83d
No known key found for this signature in database
GPG Key ID: FF90CA148348048E
3 changed files with 54 additions and 0 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
LICENSE eol=crlf
winbuild/README-windows-dist.md eol=crlf
*.bat eol=crlf

View File

@ -0,0 +1,48 @@
# YOGA for Windows
> YOGA: Yummy Optimizer for Gorgeous Assets
YOGA is a command-line tool that:
* converts and optimizes images from various format to JPEG and PNG,
* convertq and optimizeq 3D models from various formats to GLB.
## Requirements
Before using YOGA, you must install Microsoft Visual C++ Redistribuable x64 for
Visual Studio 2019. You can download it from the Microsoft's website
(`vc_redist.x64.exe`):
* https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
## Install
YOGA do not need any installation. Just unzip the content of this directory and
you are ready to go! :)
## Usage
YOGA is a CLI (command line) program. To use it, open a terminal in this folder
and just use one of the following command, depending the terminal you are using.
For CMD.EXE:
yoga -h
For Git Bash:
./yoga.exe -h
## Links
Project page and source code:
* https://github.com/wanadev/yoga
Please report any issue on our bug tracker:
* https://github.com/wanadev/yoga/issues

View File

@ -7,6 +7,9 @@ pip install .
pip install nuitka
python -m nuitka --follow-imports --standalone --windows-dependency-tool=pefile winbuild\yogawin.py
move yogawin.dist\yogawin.exe yogawin.dist\yoga.exe
copy winbuild\README-windows-dist.md yogawin.dist\README.txt
copy LICENSE yogawin.dist\LICENSE.txt
call __env__\Scripts\deactivate.bat