This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathappveyor.yml
60 lines (51 loc) · 3.24 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: 1.0.{build}
image: Visual Studio 2017
configuration: Release
clone_depth: 5
init:
- cmd: set PATH=C:\Python35;C:\Python35\Scripts;%path%
environment:
latestcommit: false
notifyall: true
before_build:
- ps: |
git clone -q --depth=5 --branch=master https://github.com/kwsch/PKHeX.git C:\projects\pkhex
Set-Location -Path "C:\projects\pkhex\pkhex.winforms"
Copy-Item "C:\projects\pkhex-auto-legality-mod\AutoLegality" "C:\projects\pkhex\pkhex.winforms" -recurse
Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\PGL QR Auto Legality\PGLRentalLegality" "C:\projects\pkhex\pkhex.winforms" -recurse
Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\MGDB Downloader\MGDBDownloader" "C:\projects\pkhex\pkhex.winforms" -recurse
Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\URL Genning\URLGenning" "C:\projects\pkhex\pkhex.winforms" -recurse
Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\Export Trainer Data\ExportTrainerData" "C:\projects\pkhex\pkhex.winforms" -recurse
Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\Smogon Genner\SmogonGenner" "C:\projects\pkhex\pkhex.winforms" -recurse
Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\Legalize Boxes\LegalizeBoxes" "C:\projects\pkhex\pkhex.winforms" -recurse
Copy-Item C:\projects\pkhex-auto-legality-mod\build-mod.py C:\projects\pkhex\pkhex.winforms
pip3.5 install lxml==4.2.2
python build-mod.py
Set-Location -Path "C:\projects\pkhex"
$env:pkhex_commit = $(git rev-parse --short HEAD)
$env:mod_commit = $env:APPVEYOR_REPO_COMMIT.Substring(0,7)
Add-AppveyorMessage $env:pkhex_commit
Add-AppveyorMessage $env:mod_commit
if ($env:notifyall -eq "true") { Add-AppveyorMessage "notify" }
nuget restore
build_script:
- ps: msbuild C:\projects\pkhex\PKHeX.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /p:DefineConstants=UNSAFEDLL /p:Configuration=Release
before_package:
- cmd: xcopy C:\projects\pkhex\pkhex.winforms\bin\release C:\projects\pkhex-auto-legality-mod\bin /e /i /h
after_build:
- cmd: >-
xcopy C:\projects\pkhex\pkhex.winforms\bin\release C:\projects\pkhex-auto-legality-mod\bin /e /i /h
nuget install ILMerge -ExcludeVersion
cd "C:\projects\pkhex\ILMerge\tools\net452"
xcopy "C:\projects\pkhex\pkhex.winforms\bin\release\PKHeX.exe" "C:\projects\pkhex\ILMerge\tools\net452"
xcopy "C:\projects\pkhex\pkhex.winforms\bin\release\PKHeX.Core.dll" "C:\projects\pkhex\ILMerge\tools\net452"
xcopy "C:\projects\pkhex\pkhex.winforms\bin\release\BouncyCastle.CryptoExt.dll" "C:\projects\pkhex\ILMerge\tools\net452"
ilmerge /targetplatform:v4,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6" /out:PKHeX_ArchitModUSUM.exe PKHeX.exe PKHeX.Core.dll BouncyCastle.CryptoExt.dll
cd "C:\projects\pkhex-auto-legality-mod"
mkdir merged
xcopy "C:\projects\pkhex\ILMerge\tools\net452\PKHeX_ArchitModUSUM.exe" "C:\projects\pkhex-auto-legality-mod\merged"
artifacts:
- path: bin
name: PKHeX-$(pkhex_commit)-Auto-Legality-Mod-$(mod_commit)
- path: merged
name: PKHeX-$(pkhex_commit)-Auto-Legality-Mod-$(mod_commit)-Merged