This commit is contained in:
Bert van der Weerd 2021-09-30 01:22:31 +02:00
parent c039ae197e
commit 2aed9e7b99
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
7 changed files with 37 additions and 38 deletions

View file

@ -84,6 +84,7 @@ def leave_srcdir():
def exec(cmd):
if cmd != '':
cmd = 'bash -c "{}"'.format(cmd)
print(cmd)
if not options.no_execute:
retval = os.system(cmd)

View file

@ -1,23 +1,31 @@
all :
cp version release && cp version librewolf && cp version fetched-image
make -C buildenv
make -C fetched-image
make -C librewolf
all : lw
# for working with the original mozilla source:
# all : mozilla
clean :
rm -f librewolf/version release/version fetched-image/version
rm -f librewolf/version release/version
make -C librewolf clean
make -C release clean
lw :
cp version librewolf
make -C buildenv
make -C librewolf
mozilla :
cp version release
make -C buildenv
make -C nightly
make -C release
prune :
sudo docker system prune --all --force
mozilla :
cp version release && cp version librewolf && cp version fetched-image
full : prune lw mozilla
help :
@echo "Use: make all help clean lw prune mozilla full"
make -C buildenv
make -C fetched-image
make -C nightly
make -C release

View file

@ -1,2 +0,0 @@
all :
sudo docker build -t librewolf/built-image .

View file

@ -1,9 +0,0 @@
from mozilla/buildenv-debian
run rm -rf mozilla-unified
# Build it..
copy version /
run wget -q https://archive.mozilla.org/pub/firefox/releases/$(cat /version)/source/firefox-$(cat /version).source.tar.xz
run tar xf firefox-$(cat /version).source.tar.xz
run ln -s firefox-$(cat /version) work
workdir work

View file

@ -1,2 +0,0 @@
all :
sudo docker build -t librewolf/fetched-image .

View file

@ -1,17 +1,20 @@
from librewolf/fetched-image
from mozilla/buildenv-debian
run rm -rf mozilla-unified
# Build it..
copy version /
run wget -q https://archive.mozilla.org/pub/firefox/releases/$(cat /version)/source/firefox-$(cat /version).source.tar.xz
run tar xf firefox-$(cat /version).source.tar.xz
# dependencies
run apt-get install -y git
workdir /
run #### [build trigger] (add or remove a few hashes in front to build from here)
run git clone --recursive https://gitlab.com/librewolf-community/browser/windows.git
workdir windows
run ln -s /firefox-$(cat /version)
run ls -l
run pwd
run ls -l /
run python3 build.py --version $(cat /version) fetch
run python3 build.py lw_do_patches
run python3 build.py build
run python3 build.py lw_post_build
run python3 build.py package
run python3 build.py lw_artifacts
run ./build.py --version $(cat /version) lw_do_patches
run ./build.py --version $(cat /version) build
run ./build.py --version $(cat /version) lw_post_build
run ./build.py --version $(cat /version) package
run ./build.py --version $(cat /version) lw_artifacts