0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-21 21:23:08 -05:00

refactor to source_build

This commit is contained in:
Bert van der Weerd 2022-01-08 20:28:17 +01:00
parent 53cdac8984
commit 9423e9db41
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1

View file

@ -3,15 +3,15 @@
set -e
fetch_and_extract() {
rm -rf version release
rm -rf version source_release
wget -q -O version "https://gitlab.com/librewolf-community/browser/source/-/raw/main/version"
wget -q -O release "https://gitlab.com/librewolf-community/browser/source/-/raw/main/release"
wget -q -O source_release "https://gitlab.com/librewolf-community/browser/source/-/raw/main/release"
rm -f "librewolf-$(cat version)-$(cat release).source.tar.gz"
wget -O "librewolf-$(cat version)-$(cat release).source.tar.gz" "https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat release).source.tar.gz?job=build-job"
rm -f "librewolf-$(cat version)-$(cat source_release).source.tar.gz"
wget -O "librewolf-$(cat version)-$(cat source_release).source.tar.gz" "https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat source_release).source.tar.gz?job=build-job"
rm -rf librewolf-$(cat version)
tar xf librewolf-$(cat version)-$(cat release).source.tar.gz
tar xf librewolf-$(cat version)-$(cat source_release).source.tar.gz
# here would be a great spot to insert system dependent stuff like mozconfig/patches.
}