Implement launching a local daemon (#261)
Allow AppImage and non-systemd systems to launch a local burrow daemon.
This commit is contained in:
parent
c4c342dc8b
commit
c755f752a0
9 changed files with 192 additions and 27 deletions
|
|
@ -5,6 +5,7 @@ set -ex
|
|||
BURROW_GTK_ROOT="$(readlink -f $(dirname -- "$(readlink -f -- "$BASH_SOURCE")")/..)"
|
||||
BURROW_GTK_BUILD="$BURROW_GTK_ROOT/build-appimage"
|
||||
LINUXDEPLOY_VERSION="${LINUXDEPLOY_VERSION:-"1-alpha-20240109-1"}"
|
||||
BURROW_BUILD_TYPE="${BURROW_BUILD_TYPE:-"release"}"
|
||||
|
||||
if [ "$BURROW_GTK_ROOT" != $(pwd) ]; then
|
||||
echo "Make sure to cd into burrow-gtk"
|
||||
|
|
@ -21,8 +22,9 @@ elif [ "$ARCHITECTURE" == "aarch64" ]; then
|
|||
chmod a+x /tmp/linuxdeploy
|
||||
fi
|
||||
|
||||
meson setup $BURROW_GTK_BUILD --bindir bin --prefix /usr
|
||||
meson setup $BURROW_GTK_BUILD --bindir bin --prefix /usr --buildtype $BURROW_BUILD_TYPE
|
||||
meson compile -C $BURROW_GTK_BUILD
|
||||
DESTDIR=AppDir meson install -C $BURROW_GTK_BUILD
|
||||
/tmp/linuxdeploy --appimage-extract-and-run --appdir $BURROW_GTK_BUILD/AppDir --output appimage
|
||||
cargo b --$BURROW_BUILD_TYPE --manifest-path=../Cargo.toml
|
||||
/tmp/linuxdeploy --appimage-extract-and-run --appdir $BURROW_GTK_BUILD/AppDir -e $BURROW_GTK_BUILD/../../target/$BURROW_BUILD_TYPE/burrow --output appimage
|
||||
mv *.AppImage $BURROW_GTK_BUILD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue