mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 07:02:03 -08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
81fb672eaa
1 changed files with 7 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ from os import environ
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
from browserforge.download import download as update_browserforge
|
||||||
|
|
||||||
from .locale import ALLOW_GEOIP, download_mmdb, remove_mmdb
|
from .locale import ALLOW_GEOIP, download_mmdb, remove_mmdb
|
||||||
from .pkgman import INSTALL_DIR, CamoufoxFetcher, installed_verstr, rprint
|
from .pkgman import INSTALL_DIR, CamoufoxFetcher, installed_verstr, rprint
|
||||||
|
|
@ -69,14 +70,18 @@ def cli() -> None:
|
||||||
|
|
||||||
|
|
||||||
@cli.command(name='fetch')
|
@cli.command(name='fetch')
|
||||||
def fetch() -> None:
|
@click.option('--browserforge', is_flag=True, help='Update browserforge\'s header and fingerprint definitions')
|
||||||
|
def fetch(browserforge=False) -> None:
|
||||||
"""
|
"""
|
||||||
Fetch the latest version of Camoufox
|
Fetch the latest version of Camoufox and optionally update the browserforge's database
|
||||||
"""
|
"""
|
||||||
CamoufoxUpdate().update()
|
CamoufoxUpdate().update()
|
||||||
# Fetch the GeoIP database
|
# Fetch the GeoIP database
|
||||||
if ALLOW_GEOIP:
|
if ALLOW_GEOIP:
|
||||||
download_mmdb()
|
download_mmdb()
|
||||||
|
|
||||||
|
if browserforge:
|
||||||
|
update_browserforge()
|
||||||
|
|
||||||
|
|
||||||
@cli.command(name='remove')
|
@cli.command(name='remove')
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue