added locale into pyinstaller packages

This commit is contained in:
k4yt3x 2020-05-13 02:42:56 -04:00
parent f92d1a41a2
commit f2ba6033b7
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
# Name: Video2X Nightly Build
# Creator: K4YT3X
# Date Created: May 12, 2020
# Last Modified: May 13, 2020
name: Video2X Nightly Build name: Video2X Nightly Build
on: on:
@ -27,6 +32,7 @@ jobs:
run: | run: |
pyinstaller --noconfirm --log-level=WARN ` pyinstaller --noconfirm --log-level=WARN `
--onefile ` --onefile `
--add-data="locale;locale" `
--add-data="wrappers;wrappers" ` --add-data="wrappers;wrappers" `
--icon="images\video2x.ico" ` --icon="images\video2x.ico" `
video2x.py video2x.py
@ -45,6 +51,7 @@ jobs:
pyinstaller --noconfirm --log-level=WARN ` pyinstaller --noconfirm --log-level=WARN `
--onefile ` --onefile `
--additional-hooks-dir "pyinstaller\hooks" ` --additional-hooks-dir "pyinstaller\hooks" `
--add-data="locale;locale" `
--add-data="pyinstaller\7z1900-extra;7z" ` --add-data="pyinstaller\7z1900-extra;7z" `
--icon="images\video2x.ico" ` --icon="images\video2x.ico" `
video2x_setup.py video2x_setup.py

View File

@ -2,7 +2,7 @@
Name: Video2X Build Script Name: Video2X Build Script
Creator: K4YT3X Creator: K4YT3X
Date Created: May 6, 2020 Date Created: May 6, 2020
Last Modified: May 12, 2020 Last Modified: May 13, 2020
Description: A PowerShell script that will build Video2X Description: A PowerShell script that will build Video2X
executable (PE) releases automatically using PyInstaller. executable (PE) releases automatically using PyInstaller.
@ -29,6 +29,7 @@ Building Video2X release $($VIDEO2X_VERSION)"
Write-Host -ForegroundColor White "`nBuilding Video2X CLI" Write-Host -ForegroundColor White "`nBuilding Video2X CLI"
pyinstaller --noconfirm --log-level=WARN ` pyinstaller --noconfirm --log-level=WARN `
--onefile ` --onefile `
--add-data="locale;locale" `
--add-data="wrappers;wrappers" ` --add-data="wrappers;wrappers" `
--icon="images\video2x.ico" ` --icon="images\video2x.ico" `
video2x.py video2x.py
@ -49,6 +50,7 @@ Write-Host -ForegroundColor White "`nBuilding Video2X setup script"
pyinstaller --noconfirm --log-level=WARN ` pyinstaller --noconfirm --log-level=WARN `
--onefile ` --onefile `
--additional-hooks-dir "pyinstaller\hooks" ` --additional-hooks-dir "pyinstaller\hooks" `
--add-data="locale;locale" `
--add-data="pyinstaller\7z1900-extra;7z" ` --add-data="pyinstaller\7z1900-extra;7z" `
--icon="images\video2x.ico" ` --icon="images\video2x.ico" `
video2x_setup.py video2x_setup.py