mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 19:59:59 +02:00
Update update_newtab.py
Signed-off-by: Cristian Cezar Moisés <ethicalhacker@riseup.net>
This commit is contained in:
parent
b1103ab227
commit
d993ab7b48
1 changed files with 12 additions and 2 deletions
|
@ -1,9 +1,19 @@
|
||||||
import os
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
def update_newtab(init: bool = True):
|
def update_newtab(init: bool = True):
|
||||||
|
# Change to the newtab directory and install dependencies if initializing
|
||||||
if init:
|
if init:
|
||||||
os.system("(cd ./engine/browser/components/newtab && ../../../mach npm install && ../../../mach npm install meow@9.0.0)")
|
subprocess.run(
|
||||||
os.system("cd ./engine && ./mach npm run bundle --prefix=browser/components/newtab")
|
["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__":
|
if __name__ == "__main__":
|
||||||
update_newtab(False)
|
update_newtab(False)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue