1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-07 23:00:01 +02:00
zen-desktop/scripts/update_newtab.py
Cristian Cezar Moisés d993ab7b48
Update update_newtab.py
Signed-off-by: Cristian Cezar Moisés <ethicalhacker@riseup.net>
2025-01-03 23:02:38 +00:00

19 lines
546 B
Python

import os
import subprocess
def update_newtab(init: bool = True):
# Change to the newtab directory and install dependencies if initializing
if init:
subprocess.run(
["sh", "-c", "(cd ./engine/browser/components/newtab && ../../../mach npm install && ../../../mach npm install meow@9.0.0)"],
check=True
)
# Bundle the newtab components
subprocess.run(
["sh", "-c", "cd ./engine && ./mach npm run bundle --prefix=browser/components/newtab"],
check=True
)
if __name__ == "__main__":
update_newtab(False)