forked from t-oster/VisiCut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appimagecraft.yml
34 lines (30 loc) · 1.06 KB
/
appimagecraft.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: 1
project:
name: org.visicut.visicut
version_command: git describe --tags
build:
null:
scripts:
post_build:
- set -x
# TODO: check if out-of-source builds are possible
- pushd "$PROJECT_ROOT"
- make
- popd
- |2
mkdir -p AppDir/usr/{bin,jre}
wget -O- https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jre_x64_linux_hotspot_11.0.6_10.tar.gz | \
tar xz --strip-components=1 -C AppDir/usr/jre
cp "$PROJECT_ROOT"/target/visicut-*-full.jar AppDir/usr/bin/visicut.jar
- |2
set -x
cat > "$BUILD_DIR"/AppRun.sh <<\EOF
#! /bin/bash
export APPDIR=${APPDIR:-$(readlink -f $(dirname "$0"))}
exec "$APPDIR"/usr/jre/bin/java -jar "$APPDIR"/usr/bin/visicut.jar
EOF
cat "$BUILD_DIR"/AppRun.sh
chmod +x "$BUILD_DIR"/AppRun.sh
appimage:
linuxdeploy:
extra_args: -i "$PROJECT_ROOT"/build/classes/com/t_oster/visicut/gui/resources/visicut.png -d "$PROJECT_ROOT"/distribute/linux/VisiCut.desktop --custom-apprun "$BUILD_DIR"/AppRun.sh