Skip to content

Commit fa8ad2c

Browse files
committed
Initial release build script
1 parent 9f5b932 commit fa8ad2c

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/bin
33
/obj
44
/*.sdf
5+
/FinalFiles

PrepareRelease.bat

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@echo off
2+
3+
REM MIT License
4+
5+
REM Copyright(c) 2019 Peter Kirmeier
6+
7+
REM Permission is hereby granted, free of charge, to any person obtaining a copy
8+
REM of this software and associated documentation files (the "Software"), to deal
9+
REM in the Software without restriction, including without limitation the rights
10+
REM to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
REM copies of the Software, and to permit persons to whom the Software is
12+
REM furnished to do so, subject to the following conditions:
13+
14+
REM The above copyright notice and this permission notice shall be included in all
15+
REM copies or substantial portions of the Software.
16+
17+
REM THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
REM IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
REM FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
REM AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
REM LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
REM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
REM SOFTWARE.
24+
25+
echo PrepareRelease.bat START ===========
26+
27+
REM To run this script you need to have 7zip installed at the default path
28+
REM or you have to update the path:
29+
30+
set PATH=%PATH%;C:\Program Files\7-Zip
31+
set PR_FINAL=FinalFiles
32+
if not exist %PR_FINAL% mkdir %PR_FINAL%
33+
34+
echo Packing Portable Release:
35+
set PR_BASE=bin\Release
36+
set PR_TARGET=%PR_FINAL%\ReleasePortable
37+
set PR_OUTPUT=%PR_FINAL%\HitCounterManager_Portable_v1.x.y.z.zip
38+
rmdir /S /Q %PR_TARGET% 2>nul
39+
mkdir %PR_TARGET%
40+
41+
echo ^ ^ Copy files from %PR_BASE%
42+
FOR %%G IN (IfrViewer.exe) DO copy %PR_BASE%\%%G %PR_TARGET%
43+
44+
del %PR_OUTPUT% 2>nul
45+
7z a %PR_OUTPUT% .\%PR_TARGET%\*
46+
47+
echo PrepareRelease.bat END ===========

0 commit comments

Comments
 (0)