updates
This commit is contained in:
parent
9c341378d6
commit
aeeaa1bcba
3 changed files with 38 additions and 10 deletions
30
Makefile
Normal file
30
Makefile
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
.PHONY : help all clean veryclean fetch build artifact
|
||||||
|
|
||||||
|
help :
|
||||||
|
@echo "Use: make [all] [clean] [veryclean]"
|
||||||
|
@echo ""
|
||||||
|
@echo " all - Build librewolf and it's windows artifacts."
|
||||||
|
@echo " clean - Remove output files and temporary files."
|
||||||
|
@echo " veryclean - Like 'clean', but also remove all downloaded files."
|
||||||
|
@echo ""
|
||||||
|
@echo " fetch - Fetch the latest librewolf source."
|
||||||
|
@echo " build - Perform './mach build && ./mach package' on it."
|
||||||
|
@echo " artifact - Create the setup.exe and the portable.zip."
|
||||||
|
@echo ""
|
||||||
|
|
||||||
|
all : fetch build artifact
|
||||||
|
|
||||||
|
clean :
|
||||||
|
|
||||||
|
veryclean :
|
||||||
|
rm -f librewolf-*.source.tar.gz
|
||||||
|
|
||||||
|
fetch :
|
||||||
|
python3 mk.py fetch
|
||||||
|
|
||||||
|
build :
|
||||||
|
python3 mk.py build
|
||||||
|
|
||||||
|
artifact :
|
||||||
|
python3 mk.py artifact
|
||||||
|
|
||||||
14
mk.py
14
mk.py
|
|
@ -27,11 +27,9 @@ def exec(cmd):
|
||||||
# main functions
|
# main functions
|
||||||
|
|
||||||
def fetch():
|
def fetch():
|
||||||
exec('rm -rf version release')
|
|
||||||
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 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('rm -f librewolf-$(cat version)-$(cat release).source.tar.gz')
|
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-job')
|
||||||
exec('wget -O librewolf-$(cat version)-$(cat release).source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat release).source.tar.gz?job=build-job')
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
exec('rm -rf librewolf-$(cat version)')
|
exec('rm -rf librewolf-$(cat version)')
|
||||||
|
|
@ -42,7 +40,7 @@ def build():
|
||||||
exec('MACH_USE_SYSTEM_PYTHON=1 ./mach build')
|
exec('MACH_USE_SYSTEM_PYTHON=1 ./mach build')
|
||||||
exec('MACH_USE_SYSTEM_PYTHON=1 ./mach package')
|
exec('MACH_USE_SYSTEM_PYTHON=1 ./mach package')
|
||||||
|
|
||||||
def artifact():
|
def artifacts():
|
||||||
bash('# you gotta figure that out from the previous ./build.py')
|
bash('# you gotta figure that out from the previous ./build.py')
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -54,7 +52,7 @@ Use: ./mk.py <command> ...
|
||||||
commands:
|
commands:
|
||||||
fetch
|
fetch
|
||||||
build
|
build
|
||||||
artifact
|
artifacts
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
@ -67,8 +65,8 @@ for arg in sys.argv:
|
||||||
elif arg == 'build':
|
elif arg == 'build':
|
||||||
build()
|
build()
|
||||||
done_something = True
|
done_something = True
|
||||||
elif arg == 'artifact':
|
elif arg == 'artifacts':
|
||||||
artifact()
|
artifacts()
|
||||||
done_something = True
|
done_something = True
|
||||||
else:
|
else:
|
||||||
if arg == sys.argv[0]:
|
if arg == sys.argv[0]:
|
||||||
|
|
|
||||||
2
release
2
release
|
|
@ -1 +1 @@
|
||||||
3
|
4
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue