-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
25 lines (25 loc) · 1.04 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
@echo OFF
if not defined VIRTUAL_ENV (
call .venv\Scripts\activate
)
pyinstaller --onefile --icon appicon.ico .\\src\\sap.py
pyinstaller --onefile .\\src\\img.py
del .\\src\\sap.db
sqlite3 .\\src\\sap.db < .\\src\\sap.sql
cd ..
mkdir tmp
copy .\SapAutomationForCoreBaixada\src\sap.db tmp
copy .\SapAutomationForCoreBaixada\src\sap.conf tmp
copy .\SapAutomationForCoreBaixada\dist\sap.exe tmp
copy .\SapAutomationForCoreBaixada\dist\img.exe tmp
copy .\SapAutomationForCoreBaixada\comunicado.txt tmp
copy .\SapAutomationForCoreBaixada\src\erroDialog.vbs tmp
copy .\SapAutomationForCoreBaixada\src\fileDialog.vbs tmp
for /f "tokens=2 delims==" %%a in ('wmic os get localdatetime /value') do set datetime=%%a
set "datestamp=%datetime:~0,4%%datetime:~4,2%%datetime:~6,2%"
echo %datestamp% > .\TelegramBotForFieldTeamHelper\version
dotnet publish .\TelegramBotForFieldTeamHelper\bot.csproj
dotnet publish .\monitoring-fieldteam\src\ofs.csproj
dotnet publish .\SapAutomationForWeb\prl.csproj
dotnet publish .\loc_zone_finder\gps.csproj
cd .\SapAutomationForCoreBaixada