-
Notifications
You must be signed in to change notification settings - Fork 15
/
release.bat
34 lines (30 loc) · 899 Bytes
/
release.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
@echo off
set /p vid="Enter version id (vX.X.X-maybe): "
echo Building AutoClient in current dir
rem cd ..
echo Creating release directory
@del rd /S /Q release\last_release >NUL
@md release\last_release >NUL
@md release\last_release\images >NUL
echo
echo Copying jar archive to release directory
xcopy target\autoclient-*-jar-with-dependencies.jar release\last_release\AutoClient.jar* /Y
echo
echo Copying aditional files
copy release_aditional_files\*.* release\last_release
echo
echo Copying external images
xcopy images\*.* release\last_release\images /S /Y /EXCLUDE:exclude.txt
cd release\last_release
echo Adding verison ID to the JAR archive
echo %vid%>version
jar uf AutoClient.jar version
del version
echo
echo Packing
7za a -tzip -y -r "../AutoClient_%vid%.zip" "*.*"
rem cd ..
rem copy AutoClient_latest.zip AutoClient_latest.zip
rem cd ..
rem rmdir /S /Q last_release
pause