diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..23a0b14 --- /dev/null +++ b/appveyor.yml @@ -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' diff --git a/deploy/build.bat b/deploy/build.bat new file mode 100644 index 0000000..18fa75d --- /dev/null +++ b/deploy/build.bat @@ -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