Update snap build
parent
b708fc1c0b
commit
1d8b6bd409
|
@ -1,30 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test "$1" = "classic"; then
|
||||
shift
|
||||
case $SNAP_ARCH in
|
||||
amd64)
|
||||
TRIPLET="x86_64-linux-gnu"
|
||||
;;
|
||||
armhf)
|
||||
TRIPLET="arm-linux-gnueabihf"
|
||||
;;
|
||||
arm64)
|
||||
TRIPLET="aarch64-linux-gnu"
|
||||
;;
|
||||
*)
|
||||
TRIPLET="$(uname -p)-linux-gnu"
|
||||
;;
|
||||
esac
|
||||
|
||||
# TODO: Swap LD lib paths whenever processes are launched
|
||||
export LD_LIBRARY_PATH_OLD=$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=$SNAP/usr/lib:$SNAP/usr/lib/$TRIPLET:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=$SNAP/lib:$SNAP/lib/$TRIPLET:$LD_LIBRARY_PATH
|
||||
fi
|
||||
|
||||
# Correct the TMPDIR path for Chromium Framework/Electron to ensure
|
||||
# libappindicator has readable resources.
|
||||
export TMPDIR=$XDG_RUNTIME_DIR
|
||||
|
||||
exec ${SNAP}/bin/desktop-launch $@
|
||||
exec "$@" --executed-from="$(pwd)" --pid=$$
|
||||
|
|
|
@ -13,17 +13,21 @@ parts:
|
|||
code:
|
||||
plugin: dump
|
||||
source: .
|
||||
after:
|
||||
- desktop-gtk2
|
||||
stage-packages:
|
||||
- gconf2
|
||||
- libasound2
|
||||
- libgconf2-4
|
||||
- libnotify4
|
||||
- libnspr4
|
||||
- libnss3
|
||||
- libpcre3
|
||||
- libpulse0
|
||||
- libxss1
|
||||
- libxtst6
|
||||
# desktop-gtk2 deps below
|
||||
- libxkbcommon0
|
||||
- libgtk2.0-0
|
||||
# - unity-gtk2-module
|
||||
- libappindicator1
|
||||
prime:
|
||||
- -usr/share/dh-python
|
||||
electron-launch:
|
||||
|
@ -31,12 +35,8 @@ parts:
|
|||
source: .
|
||||
organize:
|
||||
electron-launch: bin/electron-launch
|
||||
prime:
|
||||
- -monitor.sh
|
||||
- -OLD_VERSION
|
||||
- -*.bz2
|
||||
|
||||
apps:
|
||||
@@NAME@@:
|
||||
command: bin/electron-launch classic ${SNAP}/usr/share/@@NAME@@/bin/@@NAME@@
|
||||
command: bin/electron-launch ${SNAP}/usr/share/@@NAME@@/bin/@@NAME@@
|
||||
desktop: usr/share/applications/@@NAME@@.desktop
|
Loading…
Reference in New Issue