-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_pal_tools.cmd
More file actions
56 lines (49 loc) · 1.76 KB
/
build_pal_tools.cmd
File metadata and controls
56 lines (49 loc) · 1.76 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@echo off
title Palworld Tools Builder
echo ========================================
echo KILLING EXISTING PROCESSES
echo ========================================
:: This ensures the files aren't "in use" before we try to delete/build
taskkill /F /IM PalworldEOSFix.exe /T >nul 2>&1
taskkill /F /IM PalworldEOSTest.exe /T >nul 2>&1
timeout /t 1 /nobreak >nul
echo ========================================
echo CLEANING PREVIOUS BUILDS
echo ========================================
if exist "PalworldEOSFix" rmdir /s /q "PalworldEOSFix"
if exist "dist" rmdir /s /q "dist"
if exist "build" rmdir /s /q "build"
echo.
echo ========================================
echo BUILDING PALWORLD FIXER TOOLS
echo ========================================
if not exist pal.ico (
echo [ERROR] pal.ico not found!
pause
exit /b
)
:: Added --noupx to prevent the python3.dll compression failure
echo [1/2] Building PalworldEOSFix.exe...
pyinstaller --clean --onefile --noconsole --noupx --uac-admin --icon=pal.ico --add-data "pal.ico;." PalworldEOSFix.py
echo.
echo [2/2] Building PalworldEOSTest.exe...
pyinstaller --clean --onefile --noconsole --noupx --uac-admin --icon=pal.ico --add-data "pal.ico;." PalworldEOSTest.py
echo.
echo ========================================
echo CLEANING UP TEMPORARY FILES
echo ========================================
if exist build rmdir /s /q build
if exist PalworldEOSFix.spec del /q PalworldEOSFix.spec
if exist PalworldEOSTest.spec del /q PalworldEOSTest.spec
if exist "dist" (
if exist "PalworldEOSFix" rmdir /s /q "PalworldEOSFix"
ren "dist" "PalworldEOSFix"
)
echo.
echo ========================================
echo BUILD COMPLETE!
echo ========================================
if exist "PalworldEOSFix" (
start "" "PalworldEOSFix"
)
pause