-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (35 loc) · 1.33 KB
/
build.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
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: windows-latest
steps:
- name: Install SCService Plugin
run: |
Invoke-Webrequest -Uri 'https://nsis.sourceforge.io/mediawiki/images/e/ef/NSIS_Simple_Service_Plugin_Unicode_1.30.zip' -OutFile ss.zip
Expand-Archive ss.zip -DestinationPath .\ss
move ss\SimpleSC.dll "C:\Program Files (x86)\NSIS\Plugins\x86-unicode\"
- uses: actions/checkout@v3
- name: Install Python
run: |
pip install -r requirements.txt
pip install -r requirements-build.txt
python build.py
#- name: Dump cert
# if: github.repository == 'acecentre/relaykeys'
# run: |
# [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String( "${{ secrets.CERTP12B64 }}" )) > win-cert.p12
# Get-Content -Tail 2 win-cert.p12
#- name: Sign Windows Binary
# if: github.repository == 'acecentre/relaykeys'
# run: |
# & 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /a /td sha256 /fd sha256 /v /f "win-cert.p12" /p "${{ secrets.CERTPASSWORD }}" /v "RelayKeys setup.exe"
- name: Upload exe
uses: actions/upload-artifact@v3
with:
name: 'Windows Release'
path: 'RelayKeys setup.exe'