From 1b7b14b83dfbe1ec1880622bec114faec19c4651 Mon Sep 17 00:00:00 2001 From: Fabien LOISON Date: Wed, 6 May 2020 15:33:19 +0200 Subject: [PATCH] Update windows build script and add a README and a license to the dist dir --- .gitattributes | 3 +++ winbuild/README-windows-dist.md | 48 +++++++++++++++++++++++++++++++++ winbuild/builddist.bat | 3 +++ 3 files changed, 54 insertions(+) create mode 100644 .gitattributes create mode 100644 winbuild/README-windows-dist.md diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d914795 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +LICENSE eol=crlf +winbuild/README-windows-dist.md eol=crlf +*.bat eol=crlf diff --git a/winbuild/README-windows-dist.md b/winbuild/README-windows-dist.md new file mode 100644 index 0000000..5866526 --- /dev/null +++ b/winbuild/README-windows-dist.md @@ -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 diff --git a/winbuild/builddist.bat b/winbuild/builddist.bat index 0ac6dd5..9cbf849 100644 --- a/winbuild/builddist.bat +++ b/winbuild/builddist.bat @@ -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