-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from DropSnorz/ci/build-appimage
Add appimage packaging
- Loading branch information
Showing
6 changed files
with
78 additions
and
4 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
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,6 @@ | ||
#!/bin/sh | ||
SELF=$(readlink -f "$0") | ||
HERE=${SELF%/*} | ||
export PATH="${HERE}/usr/bin/:${HERE}/usr/sbin/:${HERE}/usr/games/:${HERE}/bin/:${HERE}/sbin/${PATH:+:$PATH}" | ||
EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1) | ||
exec "${EXEC}" "$@" |
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,6 @@ | ||
[Desktop Entry] | ||
Name=OwlPlug | ||
Exec=OwlPlug | ||
Icon=owlplug | ||
Type=Application | ||
Categories=AudioVideo;Audio |
Empty file.
Empty file.
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,26 @@ | ||
echo "Preparing package" | ||
|
||
owlplugversion=$1 | ||
|
||
echo "Exporting LICENSE File" | ||
|
||
cp ../LICENSE ./input/LICENSE | ||
|
||
echo "Copying owlplug-client-$owlplugversion.jar to owlplug.jar" | ||
|
||
cp ../owlplug-client/target/owlplug-client-$owlplugversion.jar ./input/owlplug.jar | ||
|
||
echo "Generating OwlPlug AppImage Install package" | ||
|
||
jpackage --input ./input/ --type app-image --name OwlPlug --main-class org.springframework.boot.loader.JarLauncher \ | ||
--main-jar owlplug.jar --dest ./output \ | ||
--app-version $owlplugversion --vendor OwlPlug | ||
|
||
# Copy OwlPlug logo to AppDir | ||
cp ./resources/owlplug.png ./OwlPlug.AppDir/owlplug.png | ||
|
||
# Copy OwlPlug binaries to AppDir | ||
cp -a ./output/OwlPlug/bin/. ./OwlPlug.AppDir/usr/bin | ||
cp -a ./output/OwlPlug/lib/. ./OwlPlug.AppDir/usr/lib | ||
|
||
echo "OwlPlug AppImage files generated" |