diff options
author | BeatLink <beatlink@protonmail.com> | 2019-07-20 23:14:52 -0500 |
---|---|---|
committer | BeatLink <beatlink@protonmail.com> | 2019-07-20 23:14:52 -0500 |
commit | aca223e26c6154a91edce405589ce2e5110dac0a (patch) | |
tree | dc6bdef7b21e4199b2726f0c5f738ca80cc8e8b1 /browser/linux/appimage | |
parent | Update CI/CD Artifacts Path (diff) | |
download | librewolf-linux-aca223e26c6154a91edce405589ce2e5110dac0a.tar.gz librewolf-linux-aca223e26c6154a91edce405589ce2e5110dac0a.tar.bz2 librewolf-linux-aca223e26c6154a91edce405589ce2e5110dac0a.zip |
Add tarball configuration and appimage build
Diffstat (limited to 'browser/linux/appimage')
-rwxr-xr-x | browser/linux/appimage/build_appimage.sh | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/browser/linux/appimage/build_appimage.sh b/browser/linux/appimage/build_appimage.sh index 3efa9e8..57c1594 100755 --- a/browser/linux/appimage/build_appimage.sh +++ b/browser/linux/appimage/build_appimage.sh @@ -1,8 +1,8 @@ #!/bin/sh -APPIMAGE_CONTENT_FOLDER=$1 #$SCRIPT_FOLDER/resources/appimage; -BINARY_TARBALL=$2 -OUTPUT_FOLDER=$3 +BINARY_TARBALL=$1 +APPIMAGE_CONTENT_FOLDER=$2 +APPIMAGE_FILE=$3 _LIBREWOLF_EXTRACTED_FOLDER=./librewolf; _LIBREWOLF_FINAL_APPIMAGE=./LibreWolf*.AppImage; @@ -13,10 +13,9 @@ printf "\n\n------------------------------------ APPIMAGE BUILD ---------------- printf "APPIMAGE_RESOURCE_FOLDER: $APPIMAGE_CONTENT_FOLDER\n"; -# Copy and generate icons -# printf "\nGenerating AppImage Icons\n"; -# cp $ICON_FOLDER/icon.svg $APPIMAGE_CONTENT_FOLDER/librewolf.svg; -# ln -rs $APPIMAGE_CONTENT_FOLDER/librewolf.svg $SCRIPT_FOLDER/resources/appimage/.DirIcon; +# Extracts the binary tarball +printf "\nExtracting librewolf binary tarball\n"; +tar -xvf ./$BINARY_TARBALL; # Copy appimage resources to main tarball printf "Copying AppImage resources to binary tarball folder\n"; @@ -32,9 +31,12 @@ rm -f $_APPIMAGETOOL_FILE; # Generate AppImage printf "\nGenerating AppImage\n"; ./squashfs-root/AppRun $_LIBREWOLF_EXTRACTED_FOLDER; +rm -rf $_LIBREWOLF_EXTRACTED_FOLDER; rm -rf ./squashfs-root; chmod +x $_LIBREWOLF_FINAL_APPIMAGE; -# Move AppImage to build_output folder +# Move AppImage to specified location printf "\nMoving AppImage to build_output folder\n"; -mv $_LIBREWOLF_FINAL_APPIMAGE $OUTPUT_FOLDER; +mv $_LIBREWOLF_FINAL_APPIMAGE $APPIMAGE_FILE; + + |