Skip to content

Commit 7cafe70

Browse files
committed
feat: Potentially build macos jars
1 parent 9ccd661 commit 7cafe70

2 files changed

Lines changed: 53 additions & 1 deletion

File tree

.github/workflows/Build-Mac.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "Run MacOS Build (just jar)"
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: "Mostly just the version folder it will be uploaded to."
7+
required: true
8+
type: string
9+
10+
jobs:
11+
build:
12+
runs-on: macos-15
13+
env:
14+
STYX_BASEURL: ${{ secrets.STYX_BASEURL }}
15+
STYX_IMAGEURL: ${{ secrets.STYX_IMAGEURL }}
16+
STYX_SITEURL: ${{ secrets.STYX_SITEURL }}
17+
STYX_APP_GUID: ${{ secrets.STYX_APP_GUID }}
18+
STYX_SECRET: ${{ secrets.STYX_SECRET }}
19+
STYX_DISCORDCLIENT: ${{ secrets.STYX_DISCORDCLIENT }}
20+
21+
steps:
22+
- name: "Checkout"
23+
uses: actions/checkout@v4
24+
- name: "Setup JDK"
25+
id: java
26+
uses: actions/setup-java@v5
27+
with:
28+
distribution: "temurin"
29+
java-version: "21"
30+
cache: "gradle"
31+
- name: "Build UberJar"
32+
env:
33+
JAVA_HOME: ${{ steps.java.outputs.path }}
34+
run: |
35+
chmod u+x ./gradlew
36+
./gradlew packageReleaseUberJarForCurrentOS
37+
- name: "Print and save sha384 for binaries"
38+
run: find ./build/compose -type f -iname "Styx*macos*release.jar" -exec shasum -a 384 {} \; | tee checksums.sha384
39+
- name: "Upload checksum file"
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: checksums.sha384
43+
path: checksums.sha384
44+
- name: "Upload jars to (s)FTP"
45+
uses: "wangyucode/sftp-upload-action@v3"
46+
with:
47+
host: ${{ secrets.FTP_HOST }}
48+
port: ${{ secrets.FTP_PORT }}
49+
username: ${{ secrets.FTP_USER }}
50+
password: ${{ secrets.FTP_PASS }}
51+
localDir: "./build/compose/jars/"
52+
remoteDir: "/${{ inputs.version }}/mac/jars/"

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ compose.desktop {
7070
}
7171
nativeDistributions {
7272
modules(*jlinkModules)
73-
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Rpm, TargetFormat.AppImage)
73+
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Rpm)
7474
packageName = "Styx 2"
7575
copyright = "© 2024 Vodes & Styx contributors. All rights reserved."
7676
vendor = "Vodes & Styx contributors"

0 commit comments

Comments
 (0)