Basic refactor for packaging
This commit is contained in:
parent
0a9114ff64
commit
7487eb94bd
25 changed files with 573 additions and 485 deletions
10
build.bat
Normal file → Executable file
10
build.bat
Normal file → Executable file
|
@ -3,16 +3,16 @@ if not defined VIRTUAL_ENV goto :venv_error
|
|||
|
||||
mkdir output
|
||||
mkdir output\bin
|
||||
python -m pip install -r FFMpeg-Compressor\requirements.txt || goto :exit
|
||||
python -m pip install -r RenPy-Android-Unpack\requirements.txt || goto :exit
|
||||
python -m pip install -r requirements.txt || goto :exit
|
||||
python -m pip install Nuitka || goto :exit
|
||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=ffmpeg-comp FFMpeg-Compressor\main.py || goto :exit
|
||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=ffmpeg-comp FFMpeg-Compressor\__main__.py || goto :exit
|
||||
xcopy FFMpeg-Compressor\ffmpeg-comp.toml output\bin /Y
|
||||
move /Y output\ffmpeg-comp.exe output\bin
|
||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=rendroid-unpack RenPy-Android-Unpack\unpack.py || goto :exit
|
||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=rendroid-unpack RenPy-Android-Unpack\__main__.py || goto :exit
|
||||
move /Y output\rendroid-unpack.exe output\bin
|
||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=vnds2renpy VNDS-to-RenPy/convert.py || goto :exit
|
||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=vnds2renpy VNDS-to-RenPy/__main__.py || goto :exit
|
||||
move /Y output\vnds2renpy.exe output\bin
|
||||
echo "Done! You can get binaries into output\bin directory"
|
||||
|
||||
:venv_error
|
||||
echo "Please create and activate venv before running this script: python -m venv .\venv && .\venv\Scripts\activate.bat"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue