-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildArc.cmd
More file actions
52 lines (41 loc) · 1.21 KB
/
BuildArc.cmd
File metadata and controls
52 lines (41 loc) · 1.21 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
pushd "%~dp0"
setlocal
set SAFEAPPVER=0.3.0
)
)
set DISTDIR=.\Build\Releases
set path="%ProgramFiles%\7-zip";"%ProgramFiles(x86)%\7-zip";%path%
if "%1" == "" (
call :BuildZip x86
call :BuildZip x64
call :BuildZip ARM64
) else (
call :BuildZip %1
)
popd
goto :eof
:BuildZip
set PLATFORM=%1
if "%1" == "x86" (
set PLATFORMH=
) else (
set PLATFORMH=%1-
)
echo.
echo ============================================================
echo BUILD cliphcat-%SAFEAPPVER%-%PLATFORMH%exe.zip...
echo ============================================================
rmdir /q /s "%DISTDIR%\%PLATFORMH%zip-version" > NUL 2> NUL
mkdir "%DISTDIR%" 2> NUL
mkdir "%DISTDIR%\%PLATFORMH%zip-version" 2> NUL
mkdir "%DISTDIR%\%PLATFORMH%zip-version\cliphcat" 2> NUL
rem Excecutables
echo Copy Excecutables...
copy Build\%PLATFORM%\Release\cliphcat.exe "%DISTDIR%\%PLATFORMH%zip-version\cliphcat\" > NUL
copy LICENSE "%DISTDIR%\%PLATFORMH%zip-version\cliphcat\" > NUL
echo.
echo ------------------------------------------------------------
echo Pack archive...
echo ------------------------------------------------------------
7z.exe a -tzip "%DISTDIR%\cliphcat-%SAFEAPPVER%-%PLATFORMH%exe.zip" "%DISTDIR%\%PLATFORMH%zip-version\cliphcat\"
goto :eof