37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# windows.mk - this one is quite a bit different from the others,
|
|
# but we can fix that later.
|
|
|
|
.PHONY : docker build do-build
|
|
|
|
version:=$(shell cat version)
|
|
release:=$(shell cat release)
|
|
source_release:=$(shell cat source_release)
|
|
full_version:=$(version)-$(source_release)$(shell [ $(release) -gt 1 ] && echo "-$(release)")
|
|
|
|
outfile-exe=librewolf-$(full_version).en-US.win64-setup.exe
|
|
outfile-zip=librewolf-$(full_version).en-US.win64-portable.zip
|
|
outfiles=$(outfile-exe) $(outfile-zip)
|
|
|
|
distro=windows
|
|
image=registry.gitlab.com/librewolf-community/browser/bsys5/$(distro):latest
|
|
|
|
docker :
|
|
|
|
docker build -t $(image) - < assets/windows.Dockerfile
|
|
|
|
build :
|
|
|
|
pwd
|
|
git clone https://gitlab.com/librewolf-community/browser/windows.git
|
|
${MAKE} -C windows/linux -f windows/linux/Makefile do-build
|
|
sha256sum $(outfile-exe) > $(outfile-exe).sha256sum
|
|
cat $(outfile-exe).sha256sum
|
|
sha256sum $(outfile-zip) > $(outfile-zip).sha256sum
|
|
cat /$(outfile-zip).sha256sum
|
|
|
|
do-build :
|
|
|
|
pwd
|
|
${MAKE} fetch
|
|
${MAKE} all
|
|
cp -v $(outfiles) ../..
|