This commit is contained in:
Bert van der Weerd 2021-09-29 22:49:02 +02:00
parent 738f87ceef
commit 2424b0c7f2
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
16 changed files with 67 additions and 76 deletions

View file

@ -2,10 +2,12 @@
BUILD=python3 build.py ${OPTS}
all :
$(BUILD) all
clean :
$(BUILD) clean
veryclean :
$(BUILD) veryclean
@ -33,6 +35,8 @@ git_init :
reset :
$(BUILD) reset
# Building docker files..
.phony : docker-all docker-clean
docker-all :

View file

@ -26,6 +26,7 @@ parser.add_option('-t', '--distro', dest='distro', default='aut
parser.add_option('-T', '--token', dest='token', default='')
parser.add_option('-3', '--i386', dest='i386', default=False, action="store_true")
parser.add_option('-P', '--no-settings-pane', dest='settings_pane', default=True, action="store_false")
parser.add_option('-v', '--version', dest='version', action="store", type="string")
options, remainder = parser.parse_args()
@ -41,8 +42,14 @@ if options.distro == 'autodetect':
if options.version != None:
print('[debug] options.version = ')
print(options.version)
if options.src != 'release':
print('error: cant use --version and --src at the same time')
sys.exit(1)
pkgver=options.version

View file

@ -1,15 +1,24 @@
all :
cp version release && cp version librewolf
cp version release && cp version librewolf && cp version fetched-image
make -C buildenv
make -C nightly
make -C release
make -C fetched-image
make -C built-image
make -C librewolf
clean :
rm -f librewolf/version release/version
rm -f librewolf/version release/version fetched-image/version
make -C librewolf clean
make -C release clean
prune :
sudo docker system prune --all --force
mozilla :
cp version release && cp version librewolf && cp version fetched-image
make -C buildenv
make -C fetched-image
make -C nightly
make -C release

View file

@ -0,0 +1,16 @@
from librewolf/fetched-image
# dependencies
run apt-get install -y git
workdir /
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

View file

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

View file

@ -0,0 +1,9 @@
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

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

View file

@ -1,14 +1,2 @@
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
run ./mach build
run ./mach package
from librewolf/built-image
run python3 build.py lw_artifacts

View file

@ -1,2 +1,2 @@
all :
sudo docker build -t mozilla/release-debian .
sudo docker build -t librewolf/release-debian .

View file

@ -1,14 +1,2 @@
FROM mozilla/buildenv-fedora
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
run ./mach build
run ./mach package
from librewolf/built-image
run python3 build.py lw_artifacts

View file

@ -1,2 +1,2 @@
all :
sudo docker build -t mozilla/release-fedora .
sudo docker build -t librewolf/release-fedora .

View file

@ -1,14 +1,2 @@
FROM mozilla/buildenv-mint
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
run ./mach build
run ./mach package
from librewolf/built-image
run python3 build.py lw_artifacts

View file

@ -1,2 +1,2 @@
all :
sudo docker build -t mozilla/release-mint .
sudo docker build -t librewolf/release-mint .

View file

@ -1,14 +1,2 @@
FROM mozilla/buildenv-ubuntu
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
run ./mach build
run ./mach package
from librewolf/built-image
run python3 build.py lw_artifacts

View file

@ -1,2 +1,2 @@
all :
sudo docker build -t mozilla/release-ubuntu .
sudo docker build -t librewolf/release-ubuntu .

View file

@ -1,14 +1,4 @@
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
from librewolf/fetched-image
run ./mach build
run ./mach package