forked from SwensenSoftware/im-only-resting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-release.bat
38 lines (31 loc) · 1.19 KB
/
archive-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
35
36
37
38
set /p versionNumber=
REM clean up
del builds\im-only-resting-%versionNumber%.zip
rd /q /s builds\im-only-resting-%versionNumber%
rd /q /s builds\im-only-resting
REM preparing staging dir
mkdir staging
copy LICENSE staging
copy NOTICE staging
copy Ior\bin\Release\im-only-resting.exe staging
copy Ior\bin\Release\libtidy.dll staging
copy Ior\bin\Release\Newtonsoft.Json.dll staging
copy Ior\bin\Release\NLog.config staging
copy Ior\bin\Release\NLog.dll staging
copy Ior\bin\Release\PropertyGridEx.dll staging
copy Ior\bin\Release\System.Net.Http.Extensions.dll staging
copy Ior\bin\Release\System.Net.Http.Primitives.dll staging
copy Ior\bin\Release\SciLexer.dll staging
copy Ior\bin\Release\ScintillaNET.dll staging
copy Ior\bin\Release\Utils.dll staging
copy Ior\bin\Release\TidyManaged.dll staging
REM zip staging files
cd staging
"..\tools\7z\7za.exe" a -tzip "..\builds\im-only-resting-%versionNumber%.zip" *
cd ..
REM extract build
"tools\7z\7za.exe" e "builds\im-only-resting-%versionNumber%.zip" -o"builds\im-only-resting-%versionNumber%"
"tools\7z\7za.exe" e "builds\im-only-resting-%versionNumber%.zip" -o"builds\im-only-resting"
REM clean up
rd /q /s staging
pause