From a40033114837f2905a91b1d7cae456d65bcfb921 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 16 Apr 2017 20:11:48 +0800 Subject: [PATCH] Support gpg signatures for release artifacts in ant build --- build.xml | 28 ++++++++++++++++--- .../filebot.pub => gpg/maintainer.pub} | 0 installer/portable/update-filebot.sh | 4 +-- 3 files changed, 26 insertions(+), 6 deletions(-) rename installer/{portable/filebot.pub => gpg/maintainer.pub} (100%) diff --git a/build.xml b/build.xml index 0706a637..a316dc34 100644 --- a/build.xml +++ b/build.xml @@ -47,6 +47,19 @@ + + + + + + + + + + + + + @@ -648,7 +661,7 @@ - + @@ -656,6 +669,9 @@ + + + @@ -968,9 +984,13 @@ - - - + + + + + + + diff --git a/installer/portable/filebot.pub b/installer/gpg/maintainer.pub similarity index 100% rename from installer/portable/filebot.pub rename to installer/gpg/maintainer.pub diff --git a/installer/portable/update-filebot.sh b/installer/portable/update-filebot.sh index f10b9d40..a0b5ac90 100755 --- a/installer/portable/update-filebot.sh +++ b/installer/portable/update-filebot.sh @@ -22,7 +22,7 @@ cd "$WORKING_DIR" # update core application files -PACKAGE_NAME="FileBot.jar.xz.sig" +PACKAGE_NAME="FileBot.jar.xz.gpg" PACKAGE_FILE="$APP_ROOT/$PACKAGE_NAME" PACKAGE_URL="https://sourceforge.net/projects/filebot/files/filebot/HEAD/$PACKAGE_NAME" @@ -59,7 +59,7 @@ GPG_HOME="$APP_ROOT/data/.gpg" JAR_XZ_FILE="$APP_ROOT/FileBot.jar.xz" if [ ! -d "$GPG_HOME" ]; then - mkdir -p "$GPG_HOME" && chmod 700 "$GPG_HOME" && gpg --homedir "$GPG_HOME" --import "$APP_ROOT/filebot.pub" + mkdir -p "$GPG_HOME" && chmod 700 "$GPG_HOME" && gpg --homedir "$GPG_HOME" --import "$APP_ROOT/maintainer.pub" fi # verify signature and extract jar