parent
021b8ae71f
commit
919b84edbf
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@ apt update && apt install curl jq -y
|
|||
# check whether it's up-to-date
|
||||
version_file=$built_dir/version
|
||||
touch $version_file
|
||||
# also available via gitlab.com/librewolf-community/browser/source/-/raw/main/{version,release}
|
||||
version=$(curl 'https://gitlab.com/api/v4/projects/32320088/packages?sort=desc' | jq '.[0].version' -r)
|
||||
if grep -q $version $version_file; then
|
||||
echo "already up to date, exiting"
|
||||
|
@ -44,6 +45,9 @@ tar -xvf ./librewolf-$version/obj-x86_64-pc-linux-gnu/dist/librewolf-$version.en
|
|||
cd ./librewolf/
|
||||
apt install zstd -y
|
||||
mkdir -p $built_dir
|
||||
rm ./pingsender
|
||||
rm ./precomplete
|
||||
rm ./removed-files
|
||||
tar --zstd -cf $built_dir/$program_name.tar.zst .
|
||||
echo $version >$version_file
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue