forked from tomaae/WooferBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.cmd
38 lines (31 loc) · 1.21 KB
/
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
36
37
38
@ECHO OFF
SET VERSION=1.3.2
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
REM Python build
pipenv run pyinstaller --clean -y wooferbot_cli.spec
mkdir dist\WooferBot-%VERSION%-Win
REM Copying data
cp dist\wooferbot_cli.exe dist\WooferBot-%VERSION%-Win\
cp README.md dist\WooferBot-%VERSION%-Win\
cp LICENSE.md dist\WooferBot-%VERSION%-Win\
cp -r src_cli\Overlay.html dist\WooferBot-%VERSION%-Win\
mkdir dist\WooferBot-%VERSION%-Win\images
cp -r src_cli\images\__place_images.txt dist\WooferBot-%VERSION%-Win\images\
cp -r src_cli\mascots dist\WooferBot-%VERSION%-Win\
mkdir dist\WooferBot-%VERSION%-Win\scripts
cp -r src_cli\scripts\__place_scripts.txt dist\WooferBot-%VERSION%-Win\scripts\
rmdir /s /q dist\WooferBot-%VERSION%-Win\mascots\tomaae
cd dist
zip -r WooferBot-%VERSION%-Win.zip WooferBot-%VERSION%-Win
cd ..
REM Prepare linux
mkdir dist\WooferBot-%VERSION%-Linux\
cp -r dist\WooferBot-%VERSION%-Win\* dist\WooferBot-%VERSION%-Linux\
rm dist\WooferBot-%VERSION%-Linux\*.exe
cp src_cli\wooferbot.py dist\WooferBot-%VERSION%-Linux\
cp -r src_cli\lib dist\WooferBot-%VERSION%-Linux\
cp Pipfile dist\WooferBot-%VERSION%-Linux\
cd dist
tar -czvf WooferBot-%VERSION%-Linux.tar.gz WooferBot-%VERSION%-Linux
cd ..