diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..53c5ee6 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Gitlab repository +REPO="librewolf-community/browser/source" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://gitlab.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +# Trim '-gitlab' suffix +TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g') + +# Get version number from tag name +VERSION=$(echo "$TAG_NAME" | tr '-' 'p') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 897c23f..2801454 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: librewolf description: A custom version of Firefox, focused on privacy, security and freedom -version: 139.0.4p1 +version: 140.0.2p1 url: https://librewolf.net/ license: MPL2 architecture: any diff --git a/source.sh b/source.sh index 68affb2..a796ee0 100644 --- a/source.sh +++ b/source.sh @@ -37,6 +37,11 @@ package() { # Install distribution file install -Dm644 ../distribution.ini "$BPM_OUTPUT"/usr/lib/librewolf/distribution/distribution.ini + # Install icon files + for size in 16 32 48 64 128; do + install -Dm644 "$BPM_SOURCE"/browser/branding/librewolf/default"$size".png "$BPM_OUTPUT"/usr/share/icons/hicolor/"$size"x"$size"/apps/librewolf.png + done + # Install librewolf desktop file install -Dm644 ../librewolf.desktop "$BPM_OUTPUT"/usr/share/applications/librewolf.desktop