From bce4ea30f8a68e1ae13902aae37b36bef696fad7 Mon Sep 17 00:00:00 2001 From: Matt Budd Date: Tue, 16 Jun 2020 21:14:44 -0400 Subject: [PATCH] Added win32 build script for pipeline. --- appveyor.yml | 6 +----- pipelines/win32_build.bat | 18 ++++++++++++++++++ vc/archive.bat | 2 +- 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 pipelines/win32_build.bat diff --git a/appveyor.yml b/appveyor.yml index a83085a7..9337bac1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,9 +4,5 @@ image: - Ubuntu2004 #- Ubuntu1804 build_script: -- cmd: msbuild "./vc/vc14_fceux.sln" -- cmd: cd vc -- cmd: archive.bat -- cmd: cd .. -- cmd: appveyor PushArtifact "./vc/fceux.zip" +- cmd: pipelines/win32_build.bat - sh: ./pipelines/linux_build.sh diff --git a/pipelines/win32_build.bat b/pipelines/win32_build.bat new file mode 100644 index 00000000..4d096e32 --- /dev/null +++ b/pipelines/win32_build.bat @@ -0,0 +1,18 @@ + +set PROJECT_ROOT=%~dp0.. + +REM echo %PROJECT_ROOT% + +msbuild %PROJECT_ROOT%\vc\vc14_fceux.vcxproj + +cd %PROJECT_ROOT%\vc + +REM Copy Executable to output directory +copy vc14_bin_Debug\fceux.exe ..\output\. + +REM Create Zip Archive +archive.bat + +cd %PROJECT_ROOT% + +appveyor PushArtifact "./vc/fceux.zip" diff --git a/vc/archive.bat b/vc/archive.bat index 5ce17a07..dc532337 100644 --- a/vc/archive.bat +++ b/vc/archive.bat @@ -5,7 +5,7 @@ IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 GOTO UPXFailed cd ..\output ..\vc\zip -X -9 -r ..\vc\fceux.zip fceux.exe fceux.chm taseditor.chm 7z.dll *.dll palettes luaScripts tools move /y ..\vc\fceux.exe . -..\vc\zip -X -9 -r ..\vc\fceux.zip auxlib.lua +REM ..\vc\zip -X -9 -r ..\vc\fceux.zip auxlib.lua cd .. REM vc\zip -X -9 -r vc\fceux.zip documentation cd vc