This commit is contained in:
Bert van der Weerd 2022-02-04 11:20:31 +01:00
parent 37b90eb5a5
commit b019f87eb1
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
6 changed files with 61 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/librewolf-*-*.source.tar.gz
/typescript

View file

@ -0,0 +1,12 @@
ARG distro
FROM $distro
# dependencies needed to run ./mach bootstrap
RUN ( apt -y update && apt -y upgrade && apt -y install mercurial python3 python3-dev python3-pip ; true)
RUN ( dnf -y upgrade && dnf -y install mercurial python3 python3-devel && python3 -m pip install --user mercurial ; true)
# our work happens here, on the host filesystem.
WORKDIR /work
VOLUME ["/work"]

View file

@ -0,0 +1,44 @@
.PHONY : help all clean veryclean fetch prune
version:=$(shell cat version)
release:=$(shell cat release)
source_release:=$(shell cat source_release)
help :
@echo "Use: make [help] [all] [clean] [veryclean] [fetch] [prune]"
all :
${MAKE} make-docker-image-debian11
${MAKE} run-docker-image-debian11
clean :
sudo rm -rf work
veryclean :
prune :
docker system prune --all --force
# fetching the source
tarball=librewolf-$(version)-$(source_release).source.tar.gz
fetch : $(tarball)
$(tarball) :
wget -O $(tarball) "https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/$(tarball)?job=Build"
# debian11
tag=debian11
tag_distro=debian:bullseye
make-docker-image-debian11 :
script -e -c 'time docker build --no-cache --build-arg distro=$(tag_distro) -t librewolf/bsys5-image-$(tag) - < Dockerfile'
run-docker-image-debian11 :
sudo rm -rf work
mkdir work
(cd work && tar xf ../$(tarball))
script -e -c 'time docker run --rm -v $(shell pwd)/work:/work:rw librewolf/bsys5-image-$(tag) sh -c "cd /work/librewolf-$(version) && MOZBUILD_STATE_PATH=$$HOME/.mozbuild ./mach --no-interactive bootstrap --application-choice=browser && . /root/.cargo/env && cargo install cbindgen && ./mach build && ./mach package"'

1
release Normal file
View file

@ -0,0 +1 @@
1

1
source_release Normal file
View file

@ -0,0 +1 @@
3

1
version Normal file
View file

@ -0,0 +1 @@
96.0.3