Skip to content

Commit

Permalink
add package to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ksarink committed Jan 10, 2023
1 parent 77d71d2 commit 99f80b2
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,28 @@ jobs:
run: mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$(git describe --tags)
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: JPackage preparation
run: |
mkdir -p ./dist/jar/
cp target/SPMLauncher-*.jar ./dist/jar/
- name: JPackage AppImage
run: |
jpackage --main-jar SPMLauncher-$(git describe --tags).jar --app-version $(git describe --tags) @JPackage-appimage.txt
cd dist
tar cfz spmlauncher_$(git describe --tags)_amd64-appimage.tar.gz SPMLauncher/
rm -rf SPMLauncher/
cd ..
- name: JPackage deb
run: jpackage --main-jar SPMLauncher-$(git describe --tags).jar --app-version $(git describe --tags) @JPackage-deb.txt
- name: Clean dist dir
run: |
cd dist
mv jar/* .
rmdir jar
- name: Release
uses: softprops/action-gh-release@v1
with:
files: target/SPMLauncher-*.jar
files: dist/*
name: SPMLauncher v${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*.tar.gz
*.rar

dist/
target/
pom.xml.tag
pom.xml.releaseBackup
Expand All @@ -33,4 +34,4 @@ buildNumber.properties

# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
!/.mvn/wrapper/maven-wrapper.jar
# Add any directories, files, or patterns you don't want to be tracked by version control
# Add any directories, files, or patterns you don't want to be tracked by version control
8 changes: 8 additions & 0 deletions JPackage-appimage.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--name SPMLauncher
--type app-image
--input ./dist/jar/
--dest ./dist/
--icon ./src/main/resources/spm12.png
--copyright GPLv3
--description "SPMLauncher provides an overview over your SPM and MATLAB installations, allows you to quickly enable or disable toolboxes and switch versions."
--vendor "University of Muenster, Institute for Translational Psychiatry"
12 changes: 12 additions & 0 deletions JPackage-deb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--name SPMLauncher
--type app-image
--input ./dist/jar/
--dest ./dist/
--icon ./src/main/resources/spm12.png
--copyright GPLv3
--description "SPMLauncher provides an overview over your SPM and MATLAB installations, allows you to quickly enable or disable toolboxes and switch versions."
--vendor "University of Muenster, Institute for Translational Psychiatry"
--about-url "https://github.com/wwu-trap/spmlauncher"
--license-file LICENSE
--linux-package-deps bubblewrap
--linux-shortcut

0 comments on commit 99f80b2

Please sign in to comment.