-
Notifications
You must be signed in to change notification settings - Fork 18
79 lines (64 loc) · 2.2 KB
/
release.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Checkout Extra Libraries
uses: actions/checkout@v2
with:
repository: Windows10CE/HacknetPluginTemplate
path: 'template'
- name: Copy Libraries
run: |
copy template/libs/HacknetPathfinder.exe libs/HacknetPathfinder.exe
copy template/libs/FNA.dll libs/FNA.dll
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- name: Build Projects
run: dotnet build -c release /p:DisableBepInExHacknetPrepareForBuild=true
- name: Create Release Directory
run: |
mkdir Release
mkdir Release/BepInEx
mkdir Release/BepInEx/core
mkdir Release/BepInEx/plugins
mkdir Release/BepInEx/config
copy PathfinderAPI/bin/Release/PathfinderAPI.dll Release/BepInEx/plugins/
copy PathfinderUpdater/bin/Release/PathfinderUpdater.dll Release/BepInEx/plugins/
copy BepInEx.Hacknet/bin/Release/* Release/BepInEx/core/
copy libs/BepInEx.cfg Release/BepInEx/config/BepInEx.cfg
copy PathfinderPatcher/bin/Release/PathfinderPatcher.exe Release/PathfinderPatcher.exe
copy libs/Mono.Cecil.dll Release/Mono.Cecil.dll
copy Linux/intercept.so Release/intercept.so
copy Linux/StartPathfinder.sh Release/StartPathfinder.sh
- name: Create Release ZIP
uses: TheDoctor0/zip-release@0.6.0
with:
type: 'zip'
filename: 'Pathfinder.Release.zip'
directory: 'Release'
- name: Setup Python
uses: actions/setup-python@v2.2.2
with:
python-version: '3.9'
- name: Install PyInstaller
run: python -m pip install pyinstaller requests
- name: Build Installer EXE
run: |
cd PathfinderInstaller
pyinstaller --onefile --noconsole PathfinderInstaller.py
cd ..
- name: Publish Release
uses: softprops/action-gh-release@v1
with:
files: |
Release/Pathfinder.Release.zip
PathfinderInstaller/dist/PathfinderInstaller.exe
PathfinderInstaller/PathfinderInstaller.py