-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRecipe.appimage
executable file
·30 lines (26 loc) · 1.37 KB
/
Recipe.appimage
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
#!/bin/bash
./Recipe
ERR=$?
if [ $ERR -ne 0 ];then exit $ERR;fi
export BASEDIR=/xLights
cd ${BASEDIR}/xlights-git
if [ ! -e ${BASEDIR}/xlights-git/bin/xSMSDaemon.so ]; then echo "** Build Failed **"; exit; fi
APP=xLights
COMMIT=`git log --pretty=format:'%h' -n 1`
VERSION=`grep "^20" README.txt|head -1|cut -f1 -d" "`
rm -rf ${BASEDIR}/$APP/
mkdir ${BASEDIR}/$APP/
make install DESTDIR=${BASEDIR}/$APP/$APP.AppDir PREFIX=/usr
########################################################################
# Build complete
# Now creating the AppDir
########################################################################
cd ${BASEDIR}/$APP/
rm ${BASEDIR}/$APP/xLights.AppDir/usr/share/applications/x[cfs]*desktop #remove unneeded .desktop files
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
chmod +x linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-plugin-gtk.sh
./linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir=${BASEDIR}/$APP/xLights.AppDir/ -o appimage --desktop-file=${BASEDIR}/$APP/xLights.AppDir/usr/share/applications/xlights.desktop --icon-file=${BASEDIR}/$APP/xLights.AppDir/usr/share/icons/hicolor/256x256/apps/xlights.png --plugin gtk
mkdir AppImage
mv xLights*.AppImage AppImage/xLights-$VERSION-x86_64.AppImage