mk.py-commit
This commit is contained in:
parent
216fb36503
commit
0cd22f9d3b
3 changed files with 5 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -24,7 +24,7 @@ clean :
|
||||||
rm -rf work
|
rm -rf work
|
||||||
|
|
||||||
veryclean : clean
|
veryclean : clean
|
||||||
rm -f librewolf-$(shell cat version)*.en-US.win64* sha256sums.txt upload.txt firefox-$(shell cat version)*.en-US.win64.zip
|
rm -f librewolf-$(shell cat version)*.en-US.win64* sha256sums.txt upload.txt firefox-$(shell cat version)*.en-US.win64.zip firefox-$(shell cat version)*.en-US.win64.installer.exe
|
||||||
rm -rf librewolf-$(shell cat version)-$(shell cat source_release)
|
rm -rf librewolf-$(shell cat version)-$(shell cat source_release)
|
||||||
rm -f librewolf-$(shell cat version)-*.source.tar.gz*
|
rm -f librewolf-$(shell cat version)-*.source.tar.gz*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ ac_add_options --enable-optimize
|
||||||
ac_add_options --enable-release
|
ac_add_options --enable-release
|
||||||
ac_add_options --enable-rust-simd
|
ac_add_options --enable-rust-simd
|
||||||
|
|
||||||
#ac_add_options --with-app-name=librewolf
|
ac_add_options --with-app-name=firefox
|
||||||
ac_add_options --with-branding=browser/branding/librewolf
|
ac_add_options --with-branding=browser/branding/librewolf
|
||||||
|
|
||||||
ac_add_options --with-unsigned-addon-scopes=app,system
|
ac_add_options --with-unsigned-addon-scopes=app,system
|
||||||
|
|
|
||||||
5
mk.py
5
mk.py
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os,sys,subprocess,os.path
|
import os,sys,subprocess,os.path
|
||||||
|
|
||||||
|
|
@ -64,7 +64,7 @@ def fetch():
|
||||||
exec('wget -q -O version https://gitlab.com/librewolf-community/browser/source/-/raw/main/version')
|
exec('wget -q -O version https://gitlab.com/librewolf-community/browser/source/-/raw/main/version')
|
||||||
exec('wget -q -O source_release https://gitlab.com/librewolf-community/browser/source/-/raw/main/release')
|
exec('wget -q -O source_release https://gitlab.com/librewolf-community/browser/source/-/raw/main/release')
|
||||||
exec('wget -q -O librewolf-$(cat version)-$(cat source_release).source.tar.gz.sha256sum https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat source_release).source.tar.gz.sha256sum?job=Build')
|
exec('wget -q -O librewolf-$(cat version)-$(cat source_release).source.tar.gz.sha256sum https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat source_release).source.tar.gz.sha256sum?job=Build')
|
||||||
exec('wget -O librewolf-$(cat version)-$(cat source_release).source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat source_release).source.tar.gz?job=Build')
|
exec('wget -q -O librewolf-$(cat version)-$(cat source_release).source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat source_release).source.tar.gz?job=Build')
|
||||||
exec('sha256sum -c librewolf-$(cat version)-$(cat source_release).source.tar.gz.sha256sum')
|
exec('sha256sum -c librewolf-$(cat version)-$(cat source_release).source.tar.gz.sha256sum')
|
||||||
exec('cat librewolf-$(cat version)-$(cat source_release).source.tar.gz.sha256sum')
|
exec('cat librewolf-$(cat version)-$(cat source_release).source.tar.gz.sha256sum')
|
||||||
|
|
||||||
|
|
@ -111,6 +111,7 @@ def artifacts():
|
||||||
if _with_app_name:
|
if _with_app_name:
|
||||||
buildzip_filename = 'librewolf-{}-{}.en-US.win64.zip'.format(version,source_release)
|
buildzip_filename = 'librewolf-{}-{}.en-US.win64.zip'.format(version,source_release)
|
||||||
exec('cp -v librewolf-{}-{}/obj-x86_64-pc-mingw32/dist/{} .'.format(version,source_release,buildzip_filename))
|
exec('cp -v librewolf-{}-{}/obj-x86_64-pc-mingw32/dist/{} .'.format(version,source_release,buildzip_filename))
|
||||||
|
exec('cp -v librewolf-{}-{}/obj-x86_64-pc-mingw32/dist/install/sea/firefox-{}-{}.en-US.win64.installer.exe .'.format(version,source_release,version,source_release))
|
||||||
exec('rm -rf work && mkdir work')
|
exec('rm -rf work && mkdir work')
|
||||||
os.chdir('work')
|
os.chdir('work')
|
||||||
exec('unzip -q ../{}'.format(buildzip_filename))
|
exec('unzip -q ../{}'.format(buildzip_filename))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue