-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.bat
44 lines (44 loc) · 1.13 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
41
42
43
44
@echo off
set /p "version=Version number: "
echo .
echo Clean build directory content
rd /s /q .\build
if exist .\build rd /s /q .\build
if not exist .\build mkdir .\build
cd build
echo Copy build files
copy ..\*.py .
copy ..\*.ico .
echo .
echo .
echo Build with pyinstaller
echo .
pyinstaller --icon=exodosicon.ico --clean -F main.py
echo .
echo Pyinstaller has ended its work
echo .
echo Clean build directory
del *.py
move *.ico .\dist
del *.spec
rd /s /q .\build
if exist .\build rd /s /q .\build
echo Moving conf files
if not exist .\dist\data mkdir .\dist\data
copy ..\data\*.* .\dist\data
if not exist .\dist\data\mister mkdir .\dist\data\mister
copy ..\data\mister\*.* .\dist\data\mister
if not exist .\dist\data\padtokeys mkdir .\dist\data\padtokeys
copy ..\data\padtokeys\*.* .\dist\data\padtokeys
if not exist .\dist\conf mkdir .\dist\conf
copy ..\conf\*.conf .\dist\conf
if not exist .\dist\GUI mkdir .\dist\GUI
copy ..\GUI\*.* .\dist\GUI
copy ..\*.md .\dist
copy ..\changelog.txt .\dist
echo .
echo Rename exec and dir
ren .\dist\main.exe eXoConverter-%version%.exe
ren .\dist eXoConverter-%version%
cd ..
echo Finished building version %version%