i18n and ini-file
added internationalization, clsTableWidget and INI-file settings and pyinstaller-scripts
This commit is contained in:
parent
90afe07406
commit
48f8dc221a
20 changed files with 1230 additions and 333 deletions
|
@ -1,36 +1,36 @@
|
|||
@ECHO OFF
|
||||
:: --------------------------------------------------------------------------------------------------------------------------------------
|
||||
:: project: GarageCalc1 Window-Exe Generator
|
||||
:: summary: create a GarageCalc1-executable for Windows (version with no-console-windows as well as version with console windows for traces)
|
||||
:: project: GarageCalc Window-Exe Generator
|
||||
:: summary: create a GarageCalc-executable for Windows (version with no-console-windows as well as version with console windows for traces)
|
||||
:: file: pyinstaller.cmd
|
||||
:: date: version author
|
||||
:: 2021-06-27 1 paul salajean
|
||||
:: --------------------------------------------------------------------------------------------------------------------------------------
|
||||
SET version="v0.1"
|
||||
SET version="v0.4"
|
||||
SET release_dir="D:\Temp\Prog\ownCloud\profp@uberspace\transfer"
|
||||
|
||||
SET prev_dir=%cd%
|
||||
SET reinstall_venv="true"
|
||||
SET reinstall_venv="false"
|
||||
SET do_zip="false"
|
||||
|
||||
CD ..
|
||||
|
||||
ECHO Creating GarageCalc1 Windows.exe-version in folder %cd%\dist
|
||||
ECHO Creating GarageCalc Windows.exe-version in folder %cd%\dist
|
||||
PAUSE
|
||||
REM pyinstaller --noconfirm --log-level=ERROR ^
|
||||
REM --onedir --nowindow ^
|
||||
REM --add-data="README;." ^
|
||||
REM --add-data="image1.png;img" ^
|
||||
REM --add-data="img;doc;ui" ^
|
||||
REM --add-data="LICENSE.txt;changelog.md;GarageCalc1.bat" ^
|
||||
REM --add-data="LICENSE.txt;changelog.md;GarageCalc.bat" ^
|
||||
REM --add-binary="libfoo.so;lib" ^
|
||||
REM --hidden-import=secret1 ^
|
||||
REM --hidden-import=secret2 ^
|
||||
REM --icon=.\img\GarageCalc1.ico ^
|
||||
REM --icon=.\img\GarageCalc.ico ^
|
||||
REM --debug=imports ^
|
||||
REM --key=N0T1me40pp0ssum5
|
||||
REM --paths=.\src ^
|
||||
REM GarageCalc1.spec
|
||||
REM GarageCalc.spec
|
||||
REM The key-string is a string of 16 characters which is used to encrypt each file of Python byte-code before it is stored in the archive inside the executable file.
|
||||
REM This feature uses the "tinyaes" module internally for the encryption.
|
||||
REM
|
||||
|
@ -55,19 +55,21 @@ python -m pip install -r requirements.txt
|
|||
:PYINSTALL
|
||||
IF %reinstall_venv%=="false" CALL .\env2\Scripts\activate.bat
|
||||
ECHO Running "pyinstaller"...
|
||||
REM pyinstaller .\main.py --name=GarageCalc1 --noconfirm --console --clean --onedir --log-level=ERROR --hidden-import=PySide2.QtXml --icon=.\img\GarageCalc1.ico --add-data="LICENSE;." --add-data="README.md;." --add-data="changelog.md;." --add-data="*.ui;." --add-data="img;.\img"
|
||||
pyinstaller .\src\main.py --name=GarageCalc1 --noconfirm --windowed --clean --onefile --log-level=ERROR --hidden-import=PySide2.QtXml ^
|
||||
REM pyinstaller .\main.py --name=GarageCalc --noconfirm --console --clean --onedir --log-level=ERROR --hidden-import=PySide2.QtXml --icon=.\img\GarageCalc.ico --add-data="LICENSE;." --add-data="README.md;." --add-data="changelog.md;." --add-data="*.ui;." --add-data="img;.\img"
|
||||
REM --windowed
|
||||
pyinstaller .\src\main.py --name=GarageCalc --noconfirm --windowed --clean --onefile --log-level=ERROR --hidden-import=PySide2.QtXml ^
|
||||
--icon=.\img\icons8-garage-32.ico ^
|
||||
--add-data="*.txt;." ^
|
||||
--add-data="*.md;." ^
|
||||
--add-data="ui;.\ui" ^
|
||||
--add-data="i18n;.\i18n" ^
|
||||
--add-data="img;.\img"
|
||||
|
||||
::MOVE .\dist\GarageCalc1\*.md .\dist\
|
||||
::MOVE .\dist\GarageCalc1\LICENSE .\dist\
|
||||
::MOVE .\dist\GarageCalc\*.md .\dist\
|
||||
::MOVE .\dist\GarageCalc\LICENSE .\dist\
|
||||
|
||||
::clean-up img-folder
|
||||
::MOVE .\dist\GarageCalc1\img .\dist\img>NUL
|
||||
::MOVE .\dist\GarageCalc\img .\dist\img>NUL
|
||||
|
||||
::Remove temp dir and files
|
||||
DEL /Q *.spec>NUL
|
||||
|
@ -81,7 +83,7 @@ IF %do_zip%=="false" GOTO END
|
|||
::-mx5 = This is default (compression is normal).
|
||||
::-mx7 = Maximum compression.
|
||||
::-mx9 = Ultra compression.
|
||||
"C:\Program Files\7-zip\7z.exe" a %release_dir%\GarageCalc1_%version%_portable.exe -mx9 -sfx7z.sfx .\dist\*
|
||||
"C:\Program Files\7-zip\7z.exe" a %release_dir%\GarageCalc_%version%_portable.exe -mx9 -sfx7z.sfx .\dist\*
|
||||
|
||||
::Disable Virtual env
|
||||
CALL .\env2\Scripts\deactivate.bat
|
||||
|
|
22
scripts/update_ts_files.cmd
Normal file
22
scripts/update_ts_files.cmd
Normal file
|
@ -0,0 +1,22 @@
|
|||
@ECHO OFF
|
||||
:: --------------------------------------------------------------------------------------------------------------------------------------
|
||||
:: project: GarageCalc
|
||||
:: summary: Update or create GarageCalc ts-files
|
||||
:: file: update_ts_files.cmd
|
||||
:: date: version author
|
||||
:: 2021-06-30 1 paul salajean
|
||||
:: --------------------------------------------------------------------------------------------------------------------------------------
|
||||
SET prev_dir=%cd%
|
||||
|
||||
CD ..
|
||||
|
||||
mkdir .\i18n
|
||||
|
||||
pyside2-lupdate -verbose .\src\main.py .\src\utils.py .\src\clsTableWidget.py -ts .\i18n\de_DE.ts
|
||||
pyside2-lupdate -verbose .\src\main.py .\src\utils.py .\src\clsTableWidget.py -ts .\i18n\hu_HU.ts
|
||||
|
||||
:END
|
||||
CD %prev_dir%
|
||||
ECHO Done.
|
||||
|
||||
PAUSE
|
Loading…
Add table
Add a link
Reference in a new issue