forked from Goo-aw233/MSPCManagerHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
40 lines (36 loc) · 1.29 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
setlocal
for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v PROCESSOR_ARCHITECTURE') do set arch=%%a
echo %arch%
echo.
if "%arch%"=="AMD64" (
pyinstaller.exe ^
--onefile ^
--windowed ^
--name "MSPCManagerHelper_Beta_v0.2.0.8_x64" ^
--add-data "locales;locales" ^
--add-data "assets\\MSPCManagerHelper-256.ico;assets" ^
--add-binary "tools\\procdump\\procdump64.exe;tools/procdump" ^
--add-binary "tools\\NSudo\\NSudoLC_x64.exe;tools/NSudo" ^
--clean ^
--version-file="%~dp0\version_x64.txt" ^
-i "assets\\MSPCManagerHelper-48.ico" ^
"%~dp0\mainWindow.py"
) else if "%arch%"=="ARM64" (
pyinstaller.exe ^
--onefile ^
--windowed ^
--name "MSPCManagerHelper_Beta_v0.2.0.8_ARM64" ^
--add-data "locales;locales" ^
--add-data "assets\\MSPCManagerHelper-256.ico;assets" ^
--add-binary "tools\\procdump\\procdump64a.exe;tools/procdump" ^
--add-binary "tools\\NSudo\\NSudoLC_ARM64.exe;tools/NSudo" ^
--clean ^
--version-file="%~dp0\version_ARM64.txt" ^
-i "assets\\MSPCManagerHelper-48.ico" ^
"%~dp0\mainWindow.py"
) else (
echo UNKNOWN: %arch%
)
pause
endlocal