-
Notifications
You must be signed in to change notification settings - Fork 1
/
make_appimage.sh
executable file
·23 lines (20 loc) · 807 Bytes
/
make_appimage.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
if [[ $# -ne 2 ]]
then
echo "usage: make_appimage.sh path_to_executable path_to_linuxdeploy"
exit 1
fi;
#export SIGN=1
#export SIGN_KEY=0xLAST8CHARSOFGPGKEYID
MAJOR_VERSION=`grep "set(MAJOR_VERSION" CMakeLists.txt | awk '{print $2}' | tr -d ')'`
MINOR_VERSION=`grep "set(MINOR_VERSION" CMakeLists.txt | awk '{print $2}' | tr -d ')'`
PATCH_VERSION=`grep "set(PATCH_VERSION" CMakeLists.txt | awk '{print $2}' | tr -d ')'`
export VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
echo "will build $VERSION"
$2 --appdir AppDir
cp -r resources/* AppDir/usr/share
mkdir -p AppDir/usr/share/metainfo
cp linuxdeploy/*.xml AppDir/usr/share/metainfo/
$2 --executable $1 --appdir AppDir -i ./linuxdeploy/tile_editor.png -d ./linuxdeploy/tile_editor.desktop --output appimage
rm -rf AppDir
exit 0