Skip to content

Commit 833de60

Browse files
authored
Merge pull request #42 from ledhed2222/dist
trying to build right
2 parents 2e42a59 + 6fd4dc5 commit 833de60

File tree

6 files changed

+115
-109
lines changed

6 files changed

+115
-109
lines changed
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: Build Native Installers
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Only builds on version tags like v2.4.3
7+
workflow_dispatch: # Manual trigger from the GitHub UI
8+
9+
jobs:
10+
mac:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up JDK 21
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: temurin
19+
java-version: 21
20+
21+
- name: Build .jar
22+
run: mvn clean package
23+
24+
- name: Run jpackage for macOS
25+
run: |
26+
jpackage \
27+
--type dmg \
28+
--name EWItool \
29+
--input target \
30+
--main-jar EWItool-2.4.3.jar \
31+
--main-class com.github.ledhed2222.ewitool.Main \
32+
--dest target \
33+
--app-version 2.4.3 \
34+
--vendor "Ledhed2222"
35+
36+
- name: Upload macOS installer
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: EWItool-macOS
40+
path: target/*.dmg
41+
42+
windows:
43+
runs-on: windows-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: Set up JDK 21
48+
uses: actions/setup-java@v4
49+
with:
50+
distribution: temurin
51+
java-version: 21
52+
53+
- name: Build .jar
54+
run: mvn clean package
55+
56+
- name: Run jpackage for Windows
57+
run: |
58+
jpackage ^
59+
--type exe ^
60+
--name EWItool ^
61+
--input target ^
62+
--main-jar EWItool-2.4.3.jar ^
63+
--main-class com.github.ledhed2222.ewitool.Main ^
64+
--dest target ^
65+
--app-version 2.4.3 ^
66+
--vendor "Ledhed2222"
67+
68+
- name: Upload Windows installer
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: EWItool-Windows
72+
path: target/*.exe
73+
74+
linux:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v4
78+
79+
- name: Set up JDK 21
80+
uses: actions/setup-java@v4
81+
with:
82+
distribution: temurin
83+
java-version: 21
84+
85+
- name: Install jpackage dependencies
86+
run: |
87+
sudo apt-get update
88+
sudo apt-get install -y libfreetype6-dev libasound2-dev fakeroot rpm
89+
90+
- name: Build .jar
91+
run: mvn clean package
92+
93+
- name: Run jpackage for Linux
94+
run: |
95+
jpackage \
96+
--type deb \
97+
--name EWItool \
98+
--input target \
99+
--main-jar EWItool-2.4.3.jar \
100+
--main-class com.github.ledhed2222.ewitool.Main \
101+
--dest target \
102+
--app-version 2.4.3 \
103+
--vendor "Ledhed2222"
104+
105+
- name: Upload Linux installer
106+
uses: actions/upload-artifact@v4
107+
with:
108+
name: EWItool-Linux
109+
path: target/*.deb

.github/workflows/jdeploy.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

pom.xml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4-
<!-- This module was also published with a richer model, Gradle metadata, -->
5-
<!-- which should be used instead. Do not delete the following line which -->
6-
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7-
<!-- that they should prefer consuming it instead. -->
8-
<!-- do_not_remove: published-with-gradle-metadata -->
94
<modelVersion>4.0.0</modelVersion>
105
<groupId>com.github.ledhed2222</groupId>
116
<artifactId>EWItool</artifactId>
@@ -14,17 +9,14 @@
149
<url>https://github.com/ledhed2222/EWItool</url>
1510

1611
<properties>
12+
<maven.compiler.source>21</maven.compiler.source>
13+
<maven.compiler.target>21</maven.compiler.target>
1714
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
<javafx.version>17.0.14</javafx.version>
15+
<javafx.version>21.0.7</javafx.version>
1916
<javafx.maven.plugin.version>0.0.8</javafx.maven.plugin.version>
2017
</properties>
2118

2219
<dependencies>
23-
<dependency>
24-
<groupId>javax.xml.bind</groupId>
25-
<artifactId>jaxb-api</artifactId>
26-
<version>2.3.1</version>
27-
</dependency>
2820
<dependency>
2921
<groupId>uk.co.xfactory-librarians</groupId>
3022
<artifactId>coremidi4j</artifactId>
@@ -90,6 +82,7 @@
9082
</archive>
9183
</configuration>
9284
</plugin>
85+
9386
</plugins>
9487
</build>
9588

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
import java.nio.file.Path;
3434
import java.nio.file.Paths;
3535
import java.util.Arrays;
36-
37-
import javax.xml.bind.DatatypeConverter;
36+
import java.util.HexFormat;
3837

3938
import com.github.ledhed2222.ewitool.UiMain.Status;
4039

@@ -314,7 +313,7 @@ byte[] toBytes() {
314313
*/
315314
EWI4000sPatch( String hexString ) {
316315
this();
317-
patchBlob = DatatypeConverter.parseHexBinary( hexString );
316+
patchBlob = HexFormat.of().parseHex( hexString );
318317
decodeBlob();
319318
setEmpty( false );
320319
}

src/main/resources/logo.icns

65.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)