From 581640e00db889fc7b848d27ea7c8b06ed1eee48 Mon Sep 17 00:00:00 2001 From: BeatLink Date: Tue, 16 Jul 2019 12:25:21 -0500 Subject: Fix Flatpak --- browser/linux/build.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'browser/linux/build.sh') diff --git a/browser/linux/build.sh b/browser/linux/build.sh index 5153ee8..ff1a45c 100755 --- a/browser/linux/build.sh +++ b/browser/linux/build.sh @@ -17,7 +17,6 @@ BRANDING_FOLDER=$SOURCE_FOLDER/browser/branding/librewolf; ICON_FOLDER=$REPOSITORY_FOLDER/branding/icon/; PACKAGE_FILE="librewolf*.tar.bz2"; APPIMAGE_RESOURCE_FOLDER=$SCRIPT_FOLDER/resources/appimage; -FLATPAK_MANIFEST_FILE=$SCRIPT_FOLDER/resources/flatpak/io.gitlab.LibreWolf.json; printf "SCRIPT_FOLDER: $SCRIPT_FOLDER\n"; printf "REPOSITORY_FOLDER: $REPOSITORY_FOLDER\n"; printf "SOURCE_FOLDER: $SOURCE_FOLDER\n"; @@ -25,7 +24,6 @@ printf "BRANDING_FOLDER: $BRANDING_FOLDER\n"; printf "ICON_FOLDER: $ICON_FOLDER\n"; printf "PACKAGE_FILE: $PACKAGE_FILE\n"; printf "APPIMAGE_RESOURCE_FOLDER: $APPIMAGE_RESOURCE_FOLDER\n"; -printf "FLATPAK_MANIFEST_FILE: $FLATPAK_MANIFEST_FILE\n"; printf "\n\n-------------------------------------- PREBUILD ---------------------------------------------\n"; @@ -180,17 +178,18 @@ apt install -y flatpak flatpak-builder; # Install build dependencies printf "\nInstalling flatpak build dependencies\n"; flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo; -flatpak install -y org.gnome.Platform//3.32 org.gnome.Sdk//3.32; +flatpak install -y org.gnome.Platform/x86_64/3.32 org.gnome.Sdk/x86_64/3.32; # Prepare for flatpak build printf "\nPreparing files for flatpak build\n"; mkdir "source"; cp -r ./librewolf ./source/librewolf; +cp $SCRIPT_FOLDER/resources/flatpak/io.gitlab.LibreWolf.json ./io.gitlab.LibreWolf.json; # Build Repo and standalone bundle printf "\nBuilding flatpak repository and bundle\n"; -flatpak-builder --repo=librewolf-flatpak-repo build-dir $FLATPAK_MANIFEST_FILE; -flatpak build-bundle librewolf-flatpak-repo LibreWolf.flatpak $FLATPAK_MANIFEST_FILE master; +flatpak-builder --repo=librewolf-flatpak-repo build-dir io.gitlab.LibreWolf.json; +flatpak build-bundle librewolf-flatpak-repo LibreWolf.flatpak io.gitlab.LibreWolf master; # move repo and bundle to build output here printf "\nMoving repository and bundle to build output folder\n"; -- cgit