Update package version to 140.0.2p1 and added icon files
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user