Skip to content

Commit 75793a4

Browse files
authored
Merge pull request #50 from ledhed2222/build-and-deps
Build and deps
2 parents 58214d3 + 88a7461 commit 75793a4

File tree

3 files changed

+13
-55
lines changed

3 files changed

+13
-55
lines changed

.github/workflows/build-installers.yaml

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
workflow_dispatch: # Manual trigger from the GitHub UI
88

99
jobs:
10-
mac-intel:
11-
runs-on: macos-13 # Intel runner
10+
macos:
11+
runs-on: macos-latest # ARM runner (Apple Silicon, works on Intel via Rosetta 2)
1212
steps:
1313
- uses: actions/checkout@v4
1414

@@ -28,7 +28,7 @@ jobs:
2828
- name: Build .jar
2929
run: mvn clean package
3030

31-
- name: Run jpackage for macOS Intel
31+
- name: Run jpackage for macOS
3232
run: |
3333
jpackage \
3434
--type dmg \
@@ -41,59 +41,14 @@ jobs:
4141
--vendor "Ledhed2222" \
4242
--icon src/main/resources/logo.icns
4343
44-
- name: Rename DMG to include architecture
44+
- name: Rename DMG
4545
run: |
46-
mv target/EWItool-${{ steps.version.outputs.version }}.dmg target/EWItool-${{ steps.version.outputs.version }}-macos-intel.dmg
46+
mv target/EWItool-${{ steps.version.outputs.version }}.dmg target/EWItool-${{ steps.version.outputs.version }}-macos.dmg
4747
4848
- name: Upload to gh release
4949
uses: softprops/action-gh-release@v1
5050
with:
51-
files: target/*-macos-intel.dmg
52-
env:
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
55-
mac-silicon:
56-
runs-on: macos-latest # ARM runner (M1/M2)
57-
steps:
58-
- uses: actions/checkout@v4
59-
60-
- name: Set up JDK 21
61-
uses: actions/setup-java@v4
62-
with:
63-
distribution: temurin
64-
java-version: 21
65-
66-
- name: Extract version from pom.xml
67-
id: version
68-
run: |
69-
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
70-
echo "version=$VERSION" >> $GITHUB_OUTPUT
71-
echo "Building version: $VERSION"
72-
73-
- name: Build .jar
74-
run: mvn clean package
75-
76-
- name: Run jpackage for macOS Silicon
77-
run: |
78-
jpackage \
79-
--type dmg \
80-
--name EWItool \
81-
--input target \
82-
--main-jar EWItool-${{ steps.version.outputs.version }}.jar \
83-
--main-class com.github.ledhed2222.ewitool.Main \
84-
--dest target \
85-
--app-version ${{ steps.version.outputs.version }} \
86-
--vendor "Ledhed2222" \
87-
--icon src/main/resources/logo.icns
88-
89-
- name: Rename DMG to include architecture
90-
run: |
91-
mv target/EWItool-${{ steps.version.outputs.version }}.dmg target/EWItool-${{ steps.version.outputs.version }}-macos-silicon.dmg
92-
93-
- name: Upload to gh release
94-
uses: softprops/action-gh-release@v1
95-
with:
96-
files: target/*-macos-silicon.dmg
51+
files: target/*-macos.dmg
9752
env:
9853
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9954

pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.github.ledhed2222</groupId>
66
<artifactId>EWItool</artifactId>
7-
<version>2.5.1</version>
7+
<version>2.6.0</version>
88
<name>EWItool</name>
99
<url>https://github.com/ledhed2222/EWItool</url>
1010

1111
<properties>
1212
<maven.compiler.source>21</maven.compiler.source>
1313
<maven.compiler.target>21</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
<javafx.version>21.0.7</javafx.version>
15+
<javafx.version>23.0.2</javafx.version>
1616
<javafx.maven.plugin.version>0.0.8</javafx.maven.plugin.version>
17+
<maven.dependency.plugin.version>3.9.0</maven.dependency.plugin.version>
18+
<maven.jar.plugin.version>3.5.0</maven.jar.plugin.version>
1719
<mainClass>com.github.ledhed2222.ewitool.Main</mainClass>
1820
</properties>
1921

@@ -73,6 +75,7 @@
7375
<plugin>
7476
<groupId>org.apache.maven.plugins</groupId>
7577
<artifactId>maven-dependency-plugin</artifactId>
78+
<version>${maven.dependency.plugin.version}</version>
7679
<executions>
7780
<execution>
7881
<id>copy-dependencies</id>
@@ -91,7 +94,7 @@
9194
<plugin>
9295
<groupId>org.apache.maven.plugins</groupId>
9396
<artifactId>maven-jar-plugin</artifactId>
94-
<version>3.4.1</version>
97+
<version>${maven.jar.plugin.version}</version>
9598
<configuration>
9699
<archive>
97100
<manifest>

src/main/java/com/github/ledhed2222/ewitool/UiMain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
public class UiMain extends Application {
3939

4040
static final String APP_NAME = "EWItool";
41-
static final String APP_VERSION = "2.5.1";
41+
static final String APP_VERSION = "2.6.0";
4242
static final int COPYRIGHT_YEAR = 2025;
4343
static final String RELEASE_STATUS = "Production";
4444
static final String LEAD_AUTHOR = "S.Merrony & ledhed2222";

0 commit comments

Comments
 (0)