added targets mint and ubuntu
This commit is contained in:
parent
50f7e3b3bc
commit
5d7a02f997
32 changed files with 220 additions and 16 deletions
4
build.py
4
build.py
|
|
@ -43,8 +43,6 @@ if options.distro == 'autodetect':
|
||||||
|
|
||||||
|
|
||||||
if options.version != None:
|
if options.version != None:
|
||||||
print('[debug] options.version = ')
|
|
||||||
print(options.version)
|
|
||||||
if options.src != 'release':
|
if options.src != 'release':
|
||||||
print('error: cant use --version and --src at the same time')
|
print('error: cant use --version and --src at the same time')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
@ -267,6 +265,8 @@ def execute_lw_do_patches():
|
||||||
|
|
||||||
|
|
||||||
# copy branding files..
|
# copy branding files..
|
||||||
|
|
||||||
|
exec('echo +++ && pwd && ls ../common')
|
||||||
exec("cp -vr ../common/source_files/browser .")
|
exec("cp -vr ../common/source_files/browser .")
|
||||||
exec("cp -v ../files/configure.sh browser/branding/librewolf")
|
exec("cp -v ../files/configure.sh browser/branding/librewolf")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
help :
|
||||||
|
@echo "Use: make all clean lw prune mozilla full"
|
||||||
|
@echo " make debian fedora mint ubuntu"
|
||||||
|
|
||||||
all : lw
|
all : lw
|
||||||
# for working with the original mozilla source:
|
# for working with the original mozilla source:
|
||||||
# all : mozilla
|
# all : mozilla
|
||||||
|
|
@ -26,6 +30,18 @@ prune :
|
||||||
|
|
||||||
full : prune lw mozilla
|
full : prune lw mozilla
|
||||||
|
|
||||||
help :
|
|
||||||
@echo "Use: make all help clean lw prune mozilla full"
|
|
||||||
|
debian :
|
||||||
|
make -C buildenv/debian
|
||||||
|
make -C librewolf/debian
|
||||||
|
fedora :
|
||||||
|
mace -C buildenv/fedora
|
||||||
|
make -C librewolf/fedora
|
||||||
|
mint :
|
||||||
|
mace -C buildenv/mint
|
||||||
|
make -C librewolf/mint
|
||||||
|
ubuntu :
|
||||||
|
mace -C buildenv/ubuntu
|
||||||
|
make -C librewolf/ubuntu
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
|
.phony : all clean
|
||||||
|
|
||||||
all :
|
all :
|
||||||
|
|
||||||
cp version debian/version && cp version fedora/version && cp version ubuntu/version && cp version mint/version
|
cp version debian/version && cp version fedora/version && cp version ubuntu/version && cp version mint/version && cp version arch && cp version macos && cp version windows && cp version portable-linux
|
||||||
|
|
||||||
|
make -C arch
|
||||||
|
make -C macos
|
||||||
|
make -C windows
|
||||||
|
make -C portable-linux
|
||||||
|
|
||||||
make -C debian
|
make -C debian
|
||||||
make -C fedora
|
make -C fedora
|
||||||
|
|
@ -9,4 +16,22 @@ all :
|
||||||
|
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f version debian/version fedora/version ubuntu/version mint/version
|
rm -f version debian/version fedora/version ubuntu/version mint/version arch/version macos/version windows/version portable-linux/version
|
||||||
|
make -C portable-linux clean
|
||||||
|
|
||||||
|
build.debian :
|
||||||
|
make -C debian
|
||||||
|
build.fedora :
|
||||||
|
make -C fedora
|
||||||
|
build.mint :
|
||||||
|
make -C mint
|
||||||
|
build.ubuntu :
|
||||||
|
make -C ubuntu
|
||||||
|
|
||||||
|
|
||||||
|
build.arch :
|
||||||
|
make -C arch
|
||||||
|
build.macos :
|
||||||
|
make -C macos
|
||||||
|
build.windows :
|
||||||
|
make -C windows
|
||||||
|
|
|
||||||
5
docker/librewolf/arch/Makefile
Normal file
5
docker/librewolf/arch/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
all :
|
||||||
|
@echo Todo...
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
@echo Todo...
|
||||||
|
|
@ -4,17 +4,15 @@ run rm -rf mozilla-unified
|
||||||
# Build it..
|
# Build it..
|
||||||
copy version /
|
copy version /
|
||||||
run wget -q https://archive.mozilla.org/pub/firefox/releases/$(cat /version)/source/firefox-$(cat /version).source.tar.xz
|
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, tools, distro build tools,...
|
# dependencies, tools, distro build tools,...
|
||||||
run apt-get install -y git
|
run apt-get install -y git
|
||||||
run ### [build trigger] (add or remove a few hashes in front to build from here)
|
run ## [build trigger] (add or remove a few hashes in front to trigger build from here)
|
||||||
run git clone --recursive https://gitlab.com/librewolf-community/browser/windows.git
|
run git clone --recursive https://gitlab.com/librewolf-community/browser/windows.git
|
||||||
workdir windows
|
workdir windows
|
||||||
run ln -s /firefox-$(cat /version)
|
run tar xf /firefox-$(cat /version).source.tar.xz
|
||||||
|
|
||||||
run ./build.py --version $(cat /version) lw_do_patches
|
run ./build.py --version $(cat /version) lw_do_patches
|
||||||
run ./build.py --version $(cat /version) build
|
run ./build.py --version $(cat /version) build
|
||||||
run ./build.py --version $(cat /version) lw_post_build
|
run ./build.py --version $(cat /version) lw_post_build
|
||||||
run ./build.py --version $(cat /version) package
|
run ./build.py --version $(cat /version) package
|
||||||
run ./build.py --version $(cat /version) lw_artifacts
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,8 @@
|
||||||
all :
|
all :
|
||||||
sudo docker build -t librewolf/release-debian .
|
sudo docker build -t librewolf/release-debian .
|
||||||
|
make -C deb all
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
sudo docker build --no-cache -t librewolf/release-debian .
|
||||||
|
make -C deb no-cache
|
||||||
|
|
||||||
|
|
|
||||||
4
docker/librewolf/debian/deb/Dockerfile
Normal file
4
docker/librewolf/debian/deb/Dockerfile
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
from librewolf/release-debian
|
||||||
|
workdir /windows
|
||||||
|
|
||||||
|
run ./build.py --version $(cat /version) lw_artifacts
|
||||||
8
docker/librewolf/debian/deb/Makefile
Normal file
8
docker/librewolf/debian/deb/Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
docker_stage = deb-debian
|
||||||
|
|
||||||
|
all :
|
||||||
|
sudo docker build -t librewolf/$(docker_stage) .
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
sudo docker build --no-cache -t librewolf/$(docker_stage) .
|
||||||
|
|
||||||
|
|
@ -1,2 +1,19 @@
|
||||||
from librewolf/built-image
|
from mozilla/buildenv-fedora
|
||||||
run python3 build.py lw_artifacts
|
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
|
||||||
|
|
||||||
|
# dependencies, tools, distro build tools,...
|
||||||
|
run dnf -y install git
|
||||||
|
run ### [build trigger] (add or remove a few hashes in front to trigger build from here)
|
||||||
|
run git clone --recursive https://gitlab.com/librewolf-community/browser/windows.git
|
||||||
|
workdir windows
|
||||||
|
run tar xf /firefox-$(cat /version).source.tar.xz
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,8 @@
|
||||||
all :
|
all :
|
||||||
sudo docker build -t librewolf/release-fedora .
|
sudo docker build -t librewolf/release-fedora .
|
||||||
|
make -C rpm all
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
sudo docker build --no-cache -t librewolf/release-fedora .
|
||||||
|
make -C rpm no-cache
|
||||||
|
|
||||||
|
|
|
||||||
2
docker/librewolf/fedora/rpm/Dockerfile
Normal file
2
docker/librewolf/fedora/rpm/Dockerfile
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
from librewolf/release-fedora
|
||||||
|
run ./build.py --version $(cat /version) lw_artifacts
|
||||||
8
docker/librewolf/fedora/rpm/Makefile
Normal file
8
docker/librewolf/fedora/rpm/Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
docker_stage = rpm-fedora
|
||||||
|
|
||||||
|
all :
|
||||||
|
sudo docker build -t librewolf/$(docker_stage) .
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
sudo docker build --no-cache -t librewolf/$(docker_stage) .
|
||||||
|
|
||||||
5
docker/librewolf/macos/Makefile
Normal file
5
docker/librewolf/macos/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
all :
|
||||||
|
@echo Todo...
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
@echo Todo...
|
||||||
|
|
@ -1,2 +1,18 @@
|
||||||
from librewolf/built-image
|
from mozilla/buildenv-mint
|
||||||
run python3 build.py lw_artifacts
|
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
|
||||||
|
|
||||||
|
# dependencies, tools, distro build tools,...
|
||||||
|
run apt-get install -y git
|
||||||
|
run ## [build trigger] (add or remove a few hashes in front to trigger build from here)
|
||||||
|
run git clone --recursive https://gitlab.com/librewolf-community/browser/windows.git
|
||||||
|
workdir windows
|
||||||
|
run tar xf /firefox-$(cat /version).source.tar.xz
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,8 @@
|
||||||
all :
|
all :
|
||||||
sudo docker build -t librewolf/release-mint .
|
sudo docker build -t librewolf/release-mint .
|
||||||
|
make -C deb all
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
sudo docker build --no-cache -t librewolf/release-mint .
|
||||||
|
make -C deb no-cache
|
||||||
|
|
||||||
|
|
|
||||||
2
docker/librewolf/mint/deb/Dockerfile
Normal file
2
docker/librewolf/mint/deb/Dockerfile
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
from librewolf/release-mint
|
||||||
|
run ./build.py --version $(cat /version) lw_artifacts
|
||||||
8
docker/librewolf/mint/deb/Makefile
Normal file
8
docker/librewolf/mint/deb/Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
docker_stage = deb-mint
|
||||||
|
|
||||||
|
all :
|
||||||
|
sudo docker build -t librewolf/$(docker_stage) .
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
sudo docker build --no-cache -t librewolf/$(docker_stage) .
|
||||||
|
|
||||||
20
docker/librewolf/portable-linux/Makefile
Normal file
20
docker/librewolf/portable-linux/Makefile
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
.phony : all clean debian fedora mint ubuntu arch macos windows
|
||||||
|
|
||||||
|
all :
|
||||||
|
|
||||||
|
cp version appimage/version && cp version flatpak/version && cp version snapd/version
|
||||||
|
|
||||||
|
make -C appimage
|
||||||
|
make -C flatpak
|
||||||
|
make -C snapd
|
||||||
|
|
||||||
|
clean :
|
||||||
|
rm -f version appimage/version flatpak/version snapd/version
|
||||||
|
|
||||||
|
|
||||||
|
build.appimage :
|
||||||
|
make -C appimage
|
||||||
|
build.flatpak :
|
||||||
|
make -C flatpak
|
||||||
|
build.snapd :
|
||||||
|
make -C snapd
|
||||||
5
docker/librewolf/portable-linux/appimage/Makefile
Normal file
5
docker/librewolf/portable-linux/appimage/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
all :
|
||||||
|
@echo Todo...
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
@echo Todo...
|
||||||
5
docker/librewolf/portable-linux/flatpak/Makefile
Normal file
5
docker/librewolf/portable-linux/flatpak/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
all :
|
||||||
|
@echo Todo...
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
@echo Todo...
|
||||||
5
docker/librewolf/portable-linux/snapd/Makefile
Normal file
5
docker/librewolf/portable-linux/snapd/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
all :
|
||||||
|
@echo Todo...
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
@echo Todo...
|
||||||
|
|
@ -1,2 +1,18 @@
|
||||||
from librewolf/built-image
|
from mozilla/buildenv-ubuntu
|
||||||
run python3 build.py lw_artifacts
|
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
|
||||||
|
|
||||||
|
# dependencies, tools, distro build tools,...
|
||||||
|
run apt-get install -y git
|
||||||
|
run ## [build trigger] (add or remove a few hashes in front to trigger build from here)
|
||||||
|
run git clone --recursive https://gitlab.com/librewolf-community/browser/windows.git
|
||||||
|
workdir windows
|
||||||
|
run tar xf /firefox-$(cat /version).source.tar.xz
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,8 @@
|
||||||
all :
|
all :
|
||||||
sudo docker build -t librewolf/release-ubuntu .
|
sudo docker build -t librewolf/release-ubuntu .
|
||||||
|
make -C deb all
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
sudo docker build --no-cache -t librewolf/release-ubuntu .
|
||||||
|
make -C deb no-cache
|
||||||
|
|
||||||
|
|
|
||||||
2
docker/librewolf/ubuntu/deb/Dockerfile
Normal file
2
docker/librewolf/ubuntu/deb/Dockerfile
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
from librewolf/release-ubuntu
|
||||||
|
run ./build.py --version $(cat /version) lw_artifacts
|
||||||
8
docker/librewolf/ubuntu/deb/Makefile
Normal file
8
docker/librewolf/ubuntu/deb/Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
docker_stage = deb-mint
|
||||||
|
|
||||||
|
all :
|
||||||
|
sudo docker build -t librewolf/$(docker_stage) .
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
sudo docker build --no-cache -t librewolf/$(docker_stage) .
|
||||||
|
|
||||||
5
docker/librewolf/windows/Makefile
Normal file
5
docker/librewolf/windows/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
all :
|
||||||
|
@echo Todo...
|
||||||
|
|
||||||
|
no-cache :
|
||||||
|
@echo Todo...
|
||||||
Loading…
Add table
Reference in a new issue