mirror of
https://codeberg.org/librewolf/source.git
synced 2025-01-03 11:20:11 -05:00
added fetch-build.sh example
This commit is contained in:
parent
e97cc2f149
commit
6849b8747f
1 changed files with 36 additions and 0 deletions
36
scripts/fetch-build.sh
Normal file
36
scripts/fetch-build.sh
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
fetch_and_extract() {
|
||||||
|
rm -rf version 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"
|
||||||
|
|
||||||
|
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 -rf librewolf-$(cat version)
|
||||||
|
tar xf librewolf-$(cat version)-$(cat release).source.tar.gz
|
||||||
|
|
||||||
|
# here would be a great spot to insert system dependent stuff like mozconfig/patches.
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd librewolf-$(cat version)
|
||||||
|
./mach build
|
||||||
|
./mach package
|
||||||
|
cd ..
|
||||||
|
}
|
||||||
|
|
||||||
|
artifacts() {
|
||||||
|
# ... Here we do system dependent stuff like builing rpm's, setup.exe or other formats we distribute in
|
||||||
|
}
|
||||||
|
|
||||||
|
build_all() {
|
||||||
|
fetch_and_extract
|
||||||
|
build
|
||||||
|
artifacts
|
||||||
|
}
|
||||||
|
|
||||||
|
build_all
|
Loading…
Reference in a new issue