Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-01-22 20:42:56 +0300
committerJanek Bevendorff <janek@jbev.net>2017-01-22 20:42:56 +0300
commit1525ffc225385828db0e7b994c7f66d0f6cf4b03 (patch)
tree29a1467ccbc663d82f0d97b5010cb72398c7905a /AppImage-Recipe.sh
parent5458d77980d32384a4c6e700d3ada948cad0ab3e (diff)
Add release preparation script and AppImage recipe
Diffstat (limited to 'AppImage-Recipe.sh')
-rwxr-xr-xAppImage-Recipe.sh64
1 files changed, 64 insertions, 0 deletions
diff --git a/AppImage-Recipe.sh b/AppImage-Recipe.sh
new file mode 100755
index 000000000..9575f077b
--- /dev/null
+++ b/AppImage-Recipe.sh
@@ -0,0 +1,64 @@
+#!/usr/bin/env bash
+#
+# KeePassXC AppImage Recipe
+# Copyright (C) 2017 KeePassXC team <https://keepassxc.org/>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 or (at your option)
+# version 3 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+if [ "$1" == "" ] || [ "$2" == "" ]; then
+ echo "Usage: $(basename $0) APP_NAME RELEASE_VERSION" >&2
+ exit 1
+fi
+
+if [ -f CHANGELOG ]; then
+ echo "This recipe must not be run from the sources root." >&2
+ exit 1
+fi
+
+if [ ! -d ../bin-release ]; then
+ echo "../bin-release does not exist." >&2
+ exit 1
+fi
+
+APP="$1"
+LOWERAPP="$(echo "$APP" | tr '[:upper:]' '[:lower:]')"
+VERSION="$2"
+
+mkdir -p $APP.AppDir
+wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh
+. ./functions.sh
+
+cd $APP.AppDir
+cp -a ../../bin-release/* .
+mv ./usr/local/* ./usr
+rmdir ./usr/local
+patch_strings_in_file /usr/local ./
+patch_strings_in_file /usr ./
+
+get_apprun
+copy_deps
+delete_blacklisted
+
+get_desktop
+get_icon
+get_desktopintegration $LOWERAPP
+
+GLIBC_NEEDED=$(glibc_needed)
+
+cd ..
+
+generate_appimage
+
+mv ../out/*.AppImage ..
+rmdir ../out > /dev/null 2>&1