1212call SetVersion.bat
1313
1414:: Build the main solution and run tests
15- msbuild FlashDevelop.sln /p:Configuration=Debug +Tests /p:Platform=" x64" /t:Rebuild %MSBuildLogger%
15+ msbuild FlashDevelop.sln /p:Configuration=Release +Tests /p:Platform=" x64" /t:Rebuild %MSBuildLogger%
1616
1717:: Check for build errors
1818if %errorlevel% neq 0 goto :error
@@ -33,21 +33,24 @@ if "%AppVeyorCI%" neq "" powershell.exe -file ci\tests.ps1
3333:: Check for build errors
3434if %errorlevel% neq 0 goto :error
3535
36- :: Remove testing binaries so we can reuse the current build
37- del " FlashDevelop\Bin/Debug\*.Tests.*" /Q
38- del " FlashDevelop\Bin/Debug\NSubstitute.*" /Q
39- del " FlashDevelop\Bin/Debug\nunit.framework.*" /Q
40- del " FlashDevelop\Bin/Debug\Castle.Core.*" /Q
36+ git clean -xfd
37+
38+ nuget restore FlashDevelop.sln
39+
40+ msbuild FlashDevelop.sln /p:Configuration=Release /p:Platform=" x86" /t:Rebuild %MSBuildLogger%
41+
42+ :: Check for build errors
43+ if %errorlevel% neq 0 goto :error
4144
4245:: Build AnyCPU version for 64bits support
4346msbuild FlashDevelop.sln /p:Configuration=Release /p:Platform=" Any CPU" /t:Build %MSBuildLogger%
4447
4548:: Check for build errors
4649if %errorlevel% neq 0 goto :error
4750
51+ :: Remove files after build
4852del " FlashDevelop\Bin/Debug\System.*" /Q
4953del " FlashDevelop\Bin/Debug\Microsoft.*" /Q
50- del " FlashDevelop\Bin/Debug\CSScriptLibrary.xml" /Q
5154del " FlashDevelop\Bin/Debug\Mono.CSharp.*" /Q
5255
5356:: Create the installer
@@ -90,19 +93,18 @@ msbuild FlashDevelop.sln /p:Configuration=Release /p:Platform=x86 /t:Rebuild
9093:: Check for build errors
9194if %errorlevel% neq 0 goto :error
9295
96+ :: Remove files after build
97+ del " FlashDevelop\Bin\Debug\Plugins\CodeAnalyzer.dll" /q
98+ del " FlashDevelop\Bin/Debug\System.*" /Q
99+ del " FlashDevelop\Bin/Debug\Microsoft.*" /Q
100+ del " FlashDevelop\Bin/Debug\Mono.CSharp.*" /Q
101+
93102:: Rename binaries
94103ren FlashDevelop\Bin\Debug\FlashDevelop.exe HaxeDevelop.exe
95104ren FlashDevelop\Bin\Debug\FlashDevelop64.exe HaxeDevelop64.exe
96105ren FlashDevelop\Bin\Debug\FlashDevelop.exe.config HaxeDevelop.exe.config
97106ren FlashDevelop\Bin\Debug\FlashDevelop64.exe.config HaxeDevelop64.exe.config
98107
99- : Remove files after build
100- del " FlashDevelop\Bin\Debug\Plugins\CodeAnalyzer.dll" /q
101- del " FlashDevelop\Bin/Debug\System.*" /Q
102- del " FlashDevelop\Bin/Debug\Microsoft.*" /Q
103- del " FlashDevelop\Bin/Debug\CSScriptLibrary.xml" /Q
104- del " FlashDevelop\Bin/Debug\Mono.CSharp.*" /Q
105-
106108:: Check for build errors
107109if %errorlevel% neq 0 goto :error
108110
0 commit comments