forked from CorsixTH/CorsixTH
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.27 KB
/
WindowsInstaller.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
---
name: Windows installer
on:
workflow_dispatch:
inputs:
x86:
description: 'x86 run ID (url part)'
required: true
type: number
x64:
description: 'x64 run ID (url part)'
required: true
type: number
jobs:
WindowsInstaller:
runs-on: ubuntu-24.04
name: Make and test Windows installer
steps:
- uses: actions/checkout@v4
- name: Install NSIS
run: sudo apt-get install nsis
- name: Download x86 artifact
uses: actions/download-artifact@v4
with:
run-id: ${{inputs.x86}}
path: WindowsInstaller
github-token: ${{github.token}}
- name: Download x64 artifact
uses: actions/download-artifact@v4
with:
run-id: ${{inputs.x64}}
path: WindowsInstaller
github-token: ${{github.token}}
- name: Create installer
run: |
cd WindowsInstaller
mv CorsixTH_x86 x86
mv CorsixTH x64
makensis -V4 -WX -- Win32Script.nsi
sha256sum CorsixTHInstaller.exe >> $GITHUB_STEP_SUMMARY
- name: Upload installer
uses: actions/upload-artifact@v4
with:
path: 'WindowsInstaller/CorsixTHInstaller.exe'
name: 'Windows installer'