-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Created github Workflow to package app as jar file being suppo…
…rted on Linux and Windows
- Loading branch information
Showing
7 changed files
with
444 additions
and
63 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,39 @@ | ||
name: Build-App-Jar | ||
run-name: Building app Jar | ||
on: | ||
push: | ||
tags: | ||
- v** | ||
|
||
jobs: | ||
Build-App-Jar: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.8.8 | ||
|
||
- name: Install Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
|
||
# Get project version | ||
- run: echo SHOWLY_DESKTOP_VERSION="$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV | ||
|
||
- run: mvn compile package | ||
|
||
# Upload linux executable to releases | ||
- uses: xresloader/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
file: "target/shade/showly-desktop-*" | ||
draft: false | ||
tags: true |
This file was deleted.
Oops, something went wrong.
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
9 changes: 9 additions & 0 deletions
9
src/main/java/io/github/r0land013/showly/desktop/Launcher.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,9 @@ | ||
package io.github.r0land013.showly.desktop; | ||
import io.github.r0land013.showly.desktop.App; | ||
|
||
public class Launcher { | ||
|
||
public static void main(String[] args) { | ||
App.main(args); | ||
} | ||
} |
Oops, something went wrong.