1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 00:10:00 +02:00

Formatted the project

This commit is contained in:
mr. M 2025-03-24 22:19:49 +01:00
parent 53eeb4e921
commit bd5d3c00f1
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 57 additions and 53 deletions

View file

@ -12,6 +12,7 @@ ENGINE_DIR = "./engine"
NPM_INSTALL_COMMANDS = ["npm install", "npm install meow@9.0.0"]
BUNDLE_COMMAND = "npm run bundle --prefix=browser/components/newtab"
def install_dependencies():
if not os.path.isdir(NEW_TAB_DIR):
logging.error(f"Directory not found: {NEW_TAB_DIR}")
@ -32,6 +33,7 @@ def install_dependencies():
logging.error(f"Command failed: {command} - {e.stderr}")
raise
def bundle_newtab_components():
if not os.path.isdir(ENGINE_DIR):
logging.error(f"Directory not found: {ENGINE_DIR}")
@ -51,6 +53,7 @@ def bundle_newtab_components():
logging.error(f"Bundle failed: {e.stderr}")
raise
def update_newtab(init: bool = True):
try:
if init:
@ -69,5 +72,6 @@ def update_newtab(init: bool = True):
logging.error(f"Unexpected error: {str(e)}")
raise
if __name__ == "__main__":
update_newtab(init=False)

View file

@ -256,7 +256,7 @@ pref('browser.migrate.opera.enabled', true);
// pref('network.trr.mode', 5);
// security: They must enable this themselves, to avoid people downloading malware
pref('xpinstall.signatures.required', false);
pref('xpinstall.signatures.required', true);
// Experimental Zen Features
// Strategy to use for bytecode cache (Thanks https://github.com/gunir)