Added win32 build script for pipeline.

This commit is contained in:
Matt Budd 2020-06-16 21:14:44 -04:00
parent fcf2135426
commit bce4ea30f8
3 changed files with 20 additions and 6 deletions

View File

@ -4,9 +4,5 @@ image:
- Ubuntu2004 - Ubuntu2004
#- Ubuntu1804 #- Ubuntu1804
build_script: build_script:
- cmd: msbuild "./vc/vc14_fceux.sln" - cmd: pipelines/win32_build.bat
- cmd: cd vc
- cmd: archive.bat
- cmd: cd ..
- cmd: appveyor PushArtifact "./vc/fceux.zip"
- sh: ./pipelines/linux_build.sh - sh: ./pipelines/linux_build.sh

18
pipelines/win32_build.bat Normal file
View File

@ -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"

View File

@ -5,7 +5,7 @@ IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 GOTO UPXFailed
cd ..\output cd ..\output
..\vc\zip -X -9 -r ..\vc\fceux.zip fceux.exe fceux.chm taseditor.chm 7z.dll *.dll palettes luaScripts tools ..\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 . 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 .. cd ..
REM vc\zip -X -9 -r vc\fceux.zip documentation REM vc\zip -X -9 -r vc\fceux.zip documentation
cd vc cd vc