Skip to content

Commit

Permalink
Update build batch for x64 target, remove enigmavb project files
Browse files Browse the repository at this point in the history
  • Loading branch information
R-YaTian committed Jan 2, 2025
1 parent d32bb70 commit 8c7b242
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 11,777 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
Expand Down Expand Up @@ -106,3 +105,5 @@ venv.bak/

# MacOS annoying file
.DS_Store

*.zip
32 changes: 18 additions & 14 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
@echo off
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
call nuitka.bat --msvc=14.3 --module --no-pyi-file --remove-output --output-dir=bootstrap\py_langs py_langs\langs.py
call nuitka.bat --msvc=14.3 --module --no-pyi-file --remove-output --output-dir=bootstrap\py_langs py_langs\po2buf.py
call nuitka.bat --msvc=14.3 --module --no-pyi-file --remove-output --output-dir=bootstrap appgen.py
call nuitka.bat --msvc=14.3 --module --no-pyi-file --remove-output --output-dir=bootstrap tooltip.py
call nuitka.bat --msvc=14.3 --module --no-pyi-file --remove-output --output-dir=bootstrap\tk_tooltip tk_tooltip\tooltip.py
call nuitka.bat --msvc=14.3 --module --no-pyi-file --remove-output --output-dir=bootstrap TWLMagician.py
call nuitka.bat --msvc=14.3 --module --no-pyi-file --remove-output --output-dir=bootstrap pyutils.py

cd bootstrap
call nuitka.bat --standalone --msvc=14.3 --remove-output --enable-plugin=tk-inter --nofollow-import-to=dbm --nofollow-import-to=distutils --nofollow-import-to=py_compile --nofollow-import-to=argparse --windows-icon-from-ico=..\icon.ico Run_TWLMagician.py
rmdir /S /Q Run_TWLMagician.dist\tk\images
call nuitka.bat --standalone --onefile --onefile-no-compression --msvc=14.3 --remove-output --enable-plugin=tk-inter --nofollow-import-to=dbm --nofollow-import-to=distutils --nofollow-import-to=py_compile --nofollow-import-to=argparse --windows-icon-from-ico=..\icon.ico TWLMagician_Container.py

xcopy /Y /S /Q Run_TWLMagician.dist C:\Users\Public\Run_TWLMagician.dist\
mkdir dist
copy /Y Run_TWLMagician.dist\vcruntime140.dll .\dist\vcruntime140.dll
rmdir /S /Q Run_TWLMagician.dist py_langs
rename .\TWLMagician_Container.exe TWLMagician.exe
rmdir /S /Q py_langs
rmdir /S /Q tk_tooltip
del *.pyd

..\pack\enigmavbconsole.exe ..\pack\main.evb ..\pack\lib.evb.template .\dist\lib.dat
..\pack\enigmavbconsole.exe ..\pack\main.evb ..\pack\tkinter.evb.template .\dist\tkinter.dat
..\pack\enigmavbconsole.exe ..\pack\main.evb ..\pack\pyd.evb.template .\dist\pyd.dat
..\pack\enigmavbconsole.exe ..\pack\main.evb -output ..\bootstrap\dist\TWLMagician.exe
cd .. && mkdir dist
move bootstrap\TWLMagician.exe dist
xcopy /Y /S /Q i18n dist\i18n\
xcopy /Y /S /Q Windows dist\Windows\
copy lib\x64\TaskbarLib.dll dist
copy lib\x64\api-ms-win-core-path-l1-1-0.dll dist
copy icon.ico dist
copy LICENSE dist
copy README.md dist

cd dist
python -m zipfile -c TWLMagician_Win_x64.zip Windows i18n TWLMagician.exe icon.ico LICENSE README.md TaskbarLib.dll api-ms-win-core-path-l1-1-0.dll

rmdir /S /Q C:\Users\Public\Run_TWLMagician.dist
copy /Y ..\pack\x64\TaskbarLib.dll .\dist\TaskbarLib.dll
copy /Y ..\pack\x64\api-ms-win-core-path-l1-1-0.dll .\dist\api-ms-win-core-path-l1-1-0.dll
pause
14 changes: 8 additions & 6 deletions buildx86.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,26 @@ call nuitka.cmd --msvc=14.3 --module --no-pyi-file --remove-output --nowarn-mnem
call nuitka.cmd --msvc=14.3 --module --no-pyi-file --remove-output --nowarn-mnemonic=old-python-windows-console --output-dir=bootstrap pyutils.py

cd bootstrap
call nuitka.cmd --standalone --onefile --onefile-no-compression --msvc=14.3 --remove-output --enable-plugin=tk-inter --nofollow-import-to=PIL --nofollow-import-to=dbm --nofollow-import-to=distutils --nofollow-import-to=py_compile --nofollow-import-to=argparse --nowarn-mnemonic=old-python-windows-console --windows-icon-from-ico=..\icon.ico TWLMagician_Container.py
call nuitka.cmd --standalone --msvc=14.3 --remove-output --enable-plugin=tk-inter --nofollow-import-to=PIL --nofollow-import-to=dbm --nofollow-import-to=distutils --nofollow-import-to=py_compile --nofollow-import-to=argparse --nowarn-mnemonic=old-python-windows-console --windows-icon-from-ico=..\icon.ico TWLMagician_Container.py

rename .\TWLMagician_Container.exe TWLMagician.exe
rename appgen.*.pyd appgen.pyd
move /Y appgen.pyd TWLMagician_Container.dist\
move TWLMagician_Container.dist ..\dist
rmdir /S /Q py_langs
rmdir /S /Q tk_tooltip
del *.pyd

cd ..
mkdir dist
move bootstrap\TWLMagician.exe dist
xcopy /Y /S /Q i18n dist\i18n\
xcopy /Y /S /Q Windows dist\Windows\
copy pack\x86\TaskbarLib.dll dist
copy lib\x86\TaskbarLib.dll dist
copy icon.ico dist
copy LICENSE dist
copy README.md dist

cd dist
python -m zipfile -c TWLMagician.zip Windows i18n TWLMagician.exe icon.ico LICENSE README.md TaskbarLib.dll
rmdir /S /Q tk\images
rename .\TWLMagician_Container.exe TWLMagician.exe
zip -r ../TWLMagician_Win_x86.zip .

pause
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed pack/enigmavbconsole.exe
Binary file not shown.
109 changes: 0 additions & 109 deletions pack/lib.evb.template

This file was deleted.

77 changes: 0 additions & 77 deletions pack/main.evb

This file was deleted.

Loading

0 comments on commit 8c7b242

Please sign in to comment.