-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_exe.bat
More file actions
55 lines (45 loc) · 1.19 KB
/
Copy pathbuild_exe.bat
File metadata and controls
55 lines (45 loc) · 1.19 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
@echo off
echo === ASMRify Build Script ===
echo.
REM Check that assets\icon.ico exists
if not exist "assets\icon.ico" (
echo ERROR: assets\icon.ico not found. Cannot build.
pause
exit /b 1
)
REM Clean previous build artifacts
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
REM Build the exe
pyinstaller --onedir --windowed ^
--icon "assets\icon.ico" ^
--add-data "assets\icon.ico;." ^
--name "ASMRifier" ^
main.py
if errorlevel 1 (
echo.
echo ERROR: PyInstaller failed. See output above.
pause
exit /b 1
)
REM Create release folder
if exist "release\ASMRifier" rmdir /s /q "release\ASMRifier"
mkdir "release\ASMRifier"
REM Copy compiled app
xcopy /E /I /Y "dist\ASMRifier" "release\ASMRifier"
REM Copy release documents
copy /Y README.md "release\ASMRifier\"
copy /Y promo.md "release\ASMRifier\"
copy /Y guide.md "release\ASMRifier\"
REM Copy promo screenshots if folder is non-empty
if exist promo (
xcopy /E /I /Y promo "release\ASMRifier\promo"
)
REM Clean PyInstaller working dirs
rmdir /s /q build
rmdir /s /q dist
echo.
echo === Build complete ===
echo Release folder: release\ASMRifier\
echo Zip that folder and upload to itch.io.
pause