Skip to content

Commit

Permalink
Sign the executables!
Browse files Browse the repository at this point in the history
  • Loading branch information
e3ndr committed Dec 20, 2024
1 parent f4aceb0 commit e029655
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:

jobs:
build_windows:
runs-on: windows-latest
runs-on: [self-hosted, Windows, x64, code-sign]
steps:
- name: 📩 Set up JDK 11
- name: 📩 Grab the code
uses: actions/checkout@v3

- name: 🏗️ Set up JDK 11
Expand All @@ -26,11 +26,15 @@ jobs:
- name: 📦 Build the Windows artifact
run: bash build.sh dist-windows

- name: 🔨 Create installer
- name: 🔨 Create Windows installer
uses: joncloud/[email protected]
with:
script-file: "Installer.nsi"

- name: ✍️ Sign the Windows installer
shell: cmd
run: C:\signing\sign.bat dist\Casterlabs-Caffeinated-Setup.exe

- name: 🆙 Upload the Windows artifact (x86_64)
uses: actions/upload-artifact@v3
with:
Expand All @@ -46,7 +50,7 @@ jobs:
build_macos:
runs-on: ubuntu-latest
steps:
- name: 📩 Set up JDK 11
- name: 📩 Grab the code
uses: actions/checkout@v3

- name: 🏗️ Set up JDK 11
Expand Down Expand Up @@ -77,7 +81,7 @@ jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- name: 📩 Set up JDK 11
- name: 📩 Grab the code
uses: actions/checkout@v3

- name: 🏗️ Set up JDK 11
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ if [[ $@ == *"dist-windows"* ]]; then
java -jar bundler.jar bundle \
--arch x86_64 --os windows \
--id $APP_ID --name $APP_NAME --icon icon.png \
--sign 'cmd.exe /C C:\signing\sign.bat Casterlabs-Caffeinated.exe' \
--java 11 --arg=-Dcaffeinated.channel=stable --dependency target/Casterlabs-Caffeinated-Updater.jar --main $MAIN_CLASS

echo "------------ Finished bundling for Windows ------------"
Expand Down
Binary file modified bundler.jar
Binary file not shown.

0 comments on commit e029655

Please sign in to comment.