aboutsummaryrefslogtreecommitdiff
path: root/flatpak/build_flatpak.sh
diff options
context:
space:
mode:
authorBeatLink <beatlink@protonmail.com>2019-08-24 02:57:55 -0500
committerBeatLink <beatlink@protonmail.com>2019-08-24 02:57:55 -0500
commit8cdce038507026c9df2acf1eb8782a23e6debe34 (patch)
tree8a238f91c23c37b388ce21f5f11dfec8b67d67e1 /flatpak/build_flatpak.sh
parentmake tar verbose (diff)
downloadlibrewolf-linux-8cdce038507026c9df2acf1eb8782a23e6debe34.tar.gz
librewolf-linux-8cdce038507026c9df2acf1eb8782a23e6debe34.tar.bz2
librewolf-linux-8cdce038507026c9df2acf1eb8782a23e6debe34.zip
fix flatpak build
Diffstat (limited to 'flatpak/build_flatpak.sh')
-rwxr-xr-xflatpak/build_flatpak.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/flatpak/build_flatpak.sh b/flatpak/build_flatpak.sh
index 83d4e4a..999c710 100755
--- a/flatpak/build_flatpak.sh
+++ b/flatpak/build_flatpak.sh
@@ -11,9 +11,9 @@ FLATPAK_BUNDLE=$3;
_SCRIPT_FOLDER=$(realpath $(dirname $0));
_FLATHUB_REPO="flathub https://flathub.org/repo/flathub.flatpakrepo";
_FLATHUB_PACKAGES_TO_INSTALL="org.gnome.Platform/x86_64/3.32 org.gnome.Sdk/x86_64/3.32";
-_EXTRACTED_BINARY_TARBALL_FOLDER=./librewolf
+_EXTRACTED_BINARY_TARBALL_FOLDER=$_SCRIPT_FOLDER/librewolf
_FLATPAK_JSON_FILE=$_SCRIPT_FOLDER/content/io.gitlab.LibreWolf.json;
-_FLATPAK_BUILD_SOURCE_FOLDER=./source;
+_FLATPAK_BUILD_SOURCE_FOLDER=$_SCRIPT_FOLDER/source;
_FLATPAK_BUILD_FOLDER=build-dir;
# Install build dependencies
@@ -23,7 +23,7 @@ flatpak install -y flathub $_FLATHUB_PACKAGES_TO_INSTALL;
# Extracts the binary tarball
printf "\nExtracting librewolf binary tarball\n";
-tar -xvf $BINARY_TARBALL;
+tar -xvf $BINARY_TARBALL -C $_EXTRACTED_BINARY_TARBALL_FOLDER;
# Prepare for flatpak build
printf "\nPreparing files for flatpak build\n";
bgstack15