-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
35 lines (24 loc) · 896 Bytes
/
build.cmd
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
@echo off
echo Cleaning up...&echo ----------------------------------&echo.
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
if exist DuckInSpace.exe del DuckInSpace.exe
if exist DuckInSpace.spec del DuckInSpace.spec
echo Running build script...&echo.
pyinstaller --onefile --windowed --icon=assets/icons/icon.ico --name=DuckInSpace main.py
echo ----------------------------------&echo Finished building executable&echo.&echo.
echo Cleaning up...&echo.
del /f /q *.spec
move dist\DuckInSpace.exe .\DuckInSpace.exe
rmdir /s /q dist
echo ----------------------------------&echo Finished cleaning up&echo.&echo.
echo Run DuckInSpace.exe? (y/n)&echo.
set /p run=DuckInSpace.exe?
echo.
IF %run%==y (
echo Running DuckInSpace.exe...
start DuckInSpace.exe
) ELSE (
echo Not running DuckInSpace.exe
)
echo ----------------------------------&echo Finished&echo.&echo.