Skip to content

Commit

Permalink
Add AppVeyor configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbed committed May 10, 2018
1 parent 7f38c6e commit c90c5df
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
38 changes: 38 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 1.0.{build}

branches:
only:
- master

skip_tags: true
skip_commits:
files:
- README.md

max_jobs: 1

image: Visual Studio 2015

clone_folder: c:\projects\demonssoulsdebug

install:
- git submodule update --init --recursive

configuration:
- Debug

build:
project: tools\Tools.sln
parallel: true
verbosity: minimal

before_build:
- clang.exe -target ppc64-unknown-unknown -m64 -mllvm --x86-asm-syntax=intel -c debug_patch.S -o bin\debug_patch.o
- ld.lld.exe -v --section-start .text=0x10200 bin\debug_patch.o -o bin\debug_patch.elf

after_build:
- set TZ=GMT
- git log . > git-log.txt
- 7z a -r -tzip -mx=9 -x!*/LICENSE.txt DemonsSoulsDebug-%APPVEYOR_BUILD_VERSION%.zip bin/debug_patch.elf tools/bin/*.exe tools/bin/*.dll ./deploy/build.bat ./LICENSE.txt ./deploy/README.txt ./git-log.txt
artifacts:
- path: '*-*.zip'
24 changes: 24 additions & 0 deletions deploy/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@echo off
if not exist "tools\bin\PatchElf.exe" (
goto missing_files
)
if not exist "bin\debug_patch.elf" (
goto missing_files
)
if not exist "bin\boot.elf" (
goto no_boot
)
tools\bin\PatchElf.exe bin\boot.elf bin\debug_patch.elf bin\debug.elf -v 83681f6110d33442329073b72b8dc88a2f677172 -a --dca=0x01842d48 --dcs=53944 --ocs=0x1832d48
exit 0

:missing_files
echo There are missing files.
echo Please ensure you extracted the ZIP correctly.
pause
exit 1

:no_boot
echo Could not find bin\boot.elf.
echo Please copy the decrypted EBOOT to bin\boot.elf.
pause
exit 1

0 comments on commit c90c5df

Please sign in to comment.