Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/fceux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pipelines/win32_build.bat')
-rw-r--r--pipelines/win32_build.bat17
1 files changed, 13 insertions, 4 deletions
diff --git a/pipelines/win32_build.bat b/pipelines/win32_build.bat
index 61ea22a9..bddae1f0 100644
--- a/pipelines/win32_build.bat
+++ b/pipelines/win32_build.bat
@@ -1,18 +1,27 @@
set PROJECT_ROOT=%~dp0..
+set BUILD_CONFIG=Release
-msbuild %PROJECT_ROOT%\vc\vc14_fceux.vcxproj /p:Configuration=Release /p:Platform="Win32"
+set ZIP_FILENAME=fceux-win32.zip
+if defined FCEU_RELEASE_VERSION set ZIP_FILENAME=fceux-%FCEU_RELEASE_VERSION%-win32.zip
+if defined FCEU_RELEASE_VERSION set BUILD_CONFIG=PublicRelease
+
+set DEPLOY_GROUP=master
+IF DEFINED APPVEYOR_REPO_TAG_NAME set DEPLOY_GROUP=%APPVEYOR_REPO_TAG_NAME%
+
+msbuild %PROJECT_ROOT%\vc\vc14_fceux.vcxproj /p:Configuration=%BUILD_CONFIG% /p:Platform="Win32"
@if ERRORLEVEL 1 goto end
cd %PROJECT_ROOT%\vc
REM Create Zip Archive
cd %PROJECT_ROOT%\output
-..\vc\zip -X -9 -r ..\vc\fceux.zip fceux.exe fceux.chm taseditor.chm lua5.1.dll lua51.dll 7z.dll auxlib.lua palettes luaScripts tools
+..\vc\zip -X -9 -r ..\vc\%ZIP_FILENAME% fceux.exe fceux.chm taseditor.chm lua5.1.dll lua51.dll 7z.dll auxlib.lua palettes luaScripts tools
@if ERRORLEVEL 1 goto end
cd %PROJECT_ROOT%
-appveyor PushArtifact %PROJECT_ROOT%\vc\fceux.zip
+IF DEFINED APPVEYOR appveyor SetVariable -Name WIN32_ARTIFACT -Value %ZIP_FILENAME%
+IF DEFINED APPVEYOR appveyor PushArtifact %PROJECT_ROOT%\vc\%ZIP_FILENAME%
-:end \ No newline at end of file
+:end