diff options
Diffstat (limited to 'browser/linux/build.sh')
-rwxr-xr-x | browser/linux/build.sh | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/browser/linux/build.sh b/browser/linux/build.sh index b44a321..e7ea79d 100755 --- a/browser/linux/build.sh +++ b/browser/linux/build.sh @@ -4,20 +4,28 @@ printf "\n------------------------------------- SCRIPT SETUP ------------------- # Aborts the script upon any faliure set -e; -# Sets up internal script variables -printf "\nSetting up script variables\n"; -SCRIPT_FOLDER=$(realpath $(dirname $0)) && printf "SCRIPT_FOLDER: $SCRIPT_FOLDER\n"; -REPOSITORY_FOLDER=$(realpath $SCRIPT_FOLDER/../../) && printf "REPOSITORY_FOLDER: $REPOSITORY_FOLDER\n"; -SOURCE_FOLDER=$SCRIPT_FOLDER/compile && printf "SOURCE_FOLDER: $SOURCE_FOLDER\n"; -SOURCE_CONTENT_FOLDER=$REPOSITORY_FOLDER/browser/common/source_files/ && printf "SOURCE_CONTENT_FOLDER: $SOURCE_CONTENT_FOLDER\n"; -BINARY_TARBALL=$REPOSITORY_FOLDER/LibreWolf.tar.bz2 && printf "BINARY_TARBALL: $BINARY_TARBALL\n"; -APPIMAGE_FILE=$REPOSITORY_FOLDER/LibreWolf.AppImage +# Sets up script variables +SCRIPT_FOLDER=$(realpath $(dirname $0)); +REPOSITORY_FOLDER=$(realpath $SCRIPT_FOLDER/../../); +BINARY_TARBALL_SOURCE_FOLDER=$SCRIPT_FOLDER/compile; +BINARY_TARBALL_SOURCE_CONTENT_FOLDER=$REPOSITORY_FOLDER/browser/common/source_files/; +BINARY_TARBALL_SETTINGS_FOLDER=$REPOSITORY_FOLDER/settings; +BINARY_TARBALL_LAUNCH_SCRIPT=$SCRIPT_FOLDER/binary_tarball/content/launch_librewolf.sh; +BINARY_TARBALL=$REPOSITORY_FOLDER/LibreWolf.tar.bz2; +APPIMAGE_CONTENT=$SCRIPT_FOLDER/appimage/content; +APPIMAGE_FILE=$REPOSITORY_FOLDER/LibreWolf.AppImage; +FLATPAK_JSON_FILE=$SCRIPT_FOLDER/flatpak/content/io.gitlab.LibreWolf.json; +FLATPAK_REPO=$REPOSITORY_FOLDER/librewolf-flatpak-repo; +FLATPAK_BUNDLE=$REPOSITORY_FOLDER/LibreWolf.flatpak; +# Executes the build $SCRIPT_FOLDER/binary_tarball/scripts/1_Install_Dependencies.sh; -$SCRIPT_FOLDER/binary_tarball/scripts/2_Download_Source_Code.sh $SOURCE_FOLDER; -$SCRIPT_FOLDER/binary_tarball/scripts/3_Configure_Source_Code.sh $SOURCE_FOLDER $SOURCE_CONTENT_FOLDER; -$SCRIPT_FOLDER/binary_tarball/scripts/4_Build_Binary_Tarball.sh $SOURCE_FOLDER $BINARY_TARBALL; -$SCRIPT_FOLDER/binary_tarball/scripts/5_Configure_Binary_Tarball.sh $BINARY_TARBALL $REPOSITORY_FOLDER/settings $SCRIPT_FOLDER/binary_tarball/content/launch_librewolf.sh; +$SCRIPT_FOLDER/binary_tarball/scripts/2_Download_Source_Code.sh $BINARY_TARBALL_SOURCE_FOLDER; +$SCRIPT_FOLDER/binary_tarball/scripts/3_Configure_Source_Code.sh $BINARY_TARBALL_SOURCE_FOLDER $BINARY_TARBALL_SOURCE_CONTENT_FOLDER; +$SCRIPT_FOLDER/binary_tarball/scripts/4_Build_Binary_Tarball.sh $BINARY_TARBALL_SOURCE_FOLDER $BINARY_TARBALL; +$SCRIPT_FOLDER/binary_tarball/scripts/5_Configure_Binary_Tarball.sh $BINARY_TARBALL $BINARY_TARBALL_SETTINGS_FOLDER $BINARY_TARBALL_LAUNCH_SCRIPT; +$SCRIPT_FOLDER/appimage/build_appimage.sh $BINARY_TARBALL $APPIMAGE_CONTENT $APPIMAGE_FILE; +$SCRIPT_FOLDER/flatpak/build_flatpak.sh $BINARY_TARBALL $FLATPAK_JSON_FILE $FLATPAK_REPO $FLATPAK_BUNDLE; -$SCRIPT_FOLDER/appimage/build_appimage.sh $BINARY_TARBALL $SCRIPT_FOLDER/appimage/content $APPIMAGE_FILE; + |