forked from SweetCapitan/Xenobyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (37 loc) · 1.49 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
version: 1.0.{build}
image: Visual Studio 2017
build_script:
- cmd: >-
gradlew build
IF NOT EXIST build\libs\xenobyte-1.0.0.jar exit 1
IF EXIST loader\xenobyte-1.0.0.jar del /F /Q loader\xenobyte-1.0.0.jar
copy build\libs\xenobyte-1.0.0.jar loader\xenobyte-1.0.0.jar
cd loader
IF EXIST classes.h del /F /Q classes.h
java -jar packer.jar xenobyte-1.0.0.jar
IF EXIST eloader\eloader\classes.h del /F /Q eloader\eloader\classes.h
copy classes.h eloader\eloader\classes.h
cd eloader
msbuild eloader.sln /p:Configuration=Release /p:Platform=x86 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
msbuild eloader.sln /p:Configuration=Release /p:Platform=x64 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
cd ..\..
IF EXIST output-total rmdir /S /Q output-total
mkdir output-total
copy build\libs\xenobyte-1.0.0.jar output-total\xenobyte.jar
copy loader\eloader\output\Release\xenobyte.x32.dll output-total\xenobyte.x32.dll
copy loader\eloader\output\Release\xenobyte.x64.dll output-total\xenobyte.x64.dll
zip -z output-total\xenobyte.jar <mainclass.txt
artifacts:
- path: output-total\xenobyte.jar
name: main
- path: output-total\xenobyte.x32.dll
name: main
- path: output-total\xenobyte.x64.dll
name: main
deploy:
- provider: GitHub
auth_token:
secure: G5NAi+1fvUE/+n7j9+Fu3S0z76ZjaO7d9DwcOtiVHYZu7/z7Jhe7wsayXMFGaRUY
artifact: main
draft: true
force_update: true