forked from fdorg/flashdevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
46 lines (32 loc) · 1.05 KB
/
build.cmd
File metadata and controls
46 lines (32 loc) · 1.05 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
:: Builds the binary on the server for CI
:: Set paths
set PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v4.0.30319\
set PATH=%PATH%;C:\Program Files (x86)\Git\bin\
set PATH=%PATH%;C:\Program Files (x86)\NSIS
set PATH=%PATH%;C:\Program Files\7-Zip\
:: Reset bin files
git clean -f -x -d FlashDevelop\Bin\Debug
:: Check for build errors
if %errorlevel% neq 0 goto :error
:: Build the PluginCore
msbuild PluginCore\PluginCore.csproj /p:Configuration=Release /p:Platform=x86
:: Check for build errors
if %errorlevel% neq 0 goto :error
:: Extract version from HEAD
call SetVersion.bat
:: Build the solution
msbuild FlashDevelop.sln /p:Configuration=Release /p:Platform=x86
:: Check for build errors
if %errorlevel% neq 0 goto :error
:: Create the installer
makensis FlashDevelop\Installer\Installer.nsi
:: Check for nsis errors
if %errorlevel% neq 0 goto :error
:: Create the archive
7z a -tzip FlashDevelop\Installer\Binary\FlashDevelop.zip .\FlashDevelop\Bin\Debug\* -xr!.empty
:: Check for 7zip errors
if %errorlevel% neq 0 goto :error
:: Done
exit
:error
exit -1