-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
225 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# https://github.com/sualeh/build-jpackage/blob/master/.github/workflows/build-jpackage.yml | ||
|
||
name: Build Installers | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-linux-installer: | ||
name: Build Installer on Linux | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- id: checkout-code | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
- id: setup-jdk | ||
name: Setup JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- id: build | ||
name: Build distribution | ||
run: | | ||
mvn package -Ppackage | ||
jpackage --verbose "@jpackage.cfg" "@jpackage-linux.cfg" | ||
- id: upload-installer | ||
name: Upload installer | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: debian_x86_64 | ||
path: distributions/* | ||
retention-days: 3 | ||
|
||
|
||
build-windows-installer: | ||
name: Build Installer on Windows | ||
runs-on: windows-latest | ||
steps: | ||
|
||
- id: checkout-code | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
- id: setup-jdk | ||
name: Setup JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- id: build | ||
name: Build distribution | ||
run: | | ||
mvn package -Ppackage | ||
jpackage --verbose "@jpackage.cfg" "@jpackage-windows.cfg" | ||
- id: upload-installer | ||
name: Upload installer | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: windows_x86_64 | ||
path: distributions/* | ||
retention-days: 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 2 additions & 30 deletions
32
gui/src/main/java/me/nithanim/cultures/multitool/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,9 @@ | ||
package me.nithanim.cultures.multitool; | ||
|
||
import javafx.application.Application; | ||
import javafx.fxml.FXMLLoader; | ||
import javafx.scene.Parent; | ||
import javafx.scene.Scene; | ||
import javafx.stage.Stage; | ||
import picocli.CommandLine; | ||
|
||
public class Main extends Application { | ||
|
||
public class Main { | ||
public static void main(String[] args) { | ||
Application.launch(Main.class, args); | ||
} | ||
|
||
@Override | ||
public void start(Stage stage) throws Exception { | ||
Cli cli = new Cli(); | ||
new CommandLine(cli).parseArgs(getParameters().getRaw().toArray(String[]::new)); | ||
|
||
MainController controller = new MainController(); | ||
|
||
FXMLLoader loader = new FXMLLoader(this.getClass().getResource("/fxml/main.fxml")); | ||
loader.setController(controller); | ||
loader.setClassLoader(this.getClass().getClassLoader()); | ||
Parent root = loader.load(); | ||
Scene scene = new Scene(root); | ||
scene.getStylesheets().add(this.getClass().getResource("/styles/styles.css").toString()); | ||
stage.setTitle("Cultures Multitool"); | ||
stage.setScene(scene); | ||
stage.show(); | ||
|
||
if (cli.fileToOpen != null) { | ||
controller.openFile(cli.fileToOpen); | ||
} | ||
Application.launch(MainFx.class, args); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
gui/src/main/java/me/nithanim/cultures/multitool/MainFx.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package me.nithanim.cultures.multitool; | ||
|
||
import javafx.application.Application; | ||
import javafx.fxml.FXMLLoader; | ||
import javafx.scene.Parent; | ||
import javafx.scene.Scene; | ||
import javafx.stage.Stage; | ||
import picocli.CommandLine; | ||
|
||
public class MainFx extends Application { | ||
@Override | ||
public void start(Stage stage) throws Exception { | ||
Cli cli = new Cli(); | ||
new CommandLine(cli).parseArgs(getParameters().getRaw().toArray(String[]::new)); | ||
|
||
MainController controller = new MainController(); | ||
|
||
FXMLLoader loader = new FXMLLoader(this.getClass().getResource("/fxml/main.fxml")); | ||
loader.setController(controller); | ||
loader.setClassLoader(this.getClass().getClassLoader()); | ||
Parent root = loader.load(); | ||
Scene scene = new Scene(root); | ||
scene.getStylesheets().add(this.getClass().getResource("/styles/styles.css").toString()); | ||
stage.setTitle("Cultures Multitool"); | ||
stage.setScene(scene); | ||
stage.show(); | ||
|
||
if (cli.fileToOpen != null) { | ||
controller.openFile(cli.fileToOpen); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#--linux-package-name cultures-multitool | ||
--linux-deb-maintainer "Nithanim" | ||
--linux-shortcut | ||
#--icon icon.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--win-shortcut | ||
#--win-console | ||
--type msi | ||
#--icon icon.ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--input ./gui/target/distribution | ||
--main-jar "MAINJAR" | ||
--main-class "MAINCLASS" | ||
--name "Cultures Multitool" | ||
--app-version VERSION | ||
#--description "" | ||
--dest ./distributions | ||
--vendor "Nithanim |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.