File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 55from windows .launcher import Launcher
66from webview import start
77
8- def main ():
8+ from sys import argv
9+
10+ def setup () -> tuple [AppData , Updater ]:
911 app_data : AppData = AppData ()
1012 updater : Updater = Updater (app_data )
13+
14+ return app_data , updater
15+
16+ def install () -> None :
17+ app_data , updater = setup ()
1118
19+ for repo in app_data .repos :
20+ updater .update (repo )
21+
22+ updater .build_mac ()
23+
24+ def main ():
25+ app_data , updater = setup ()
1226 launcher_path : str = app_data .v_path ("launcher" )
1327 port , _ = host (launcher_path )
1428
1529 Launcher (f"http://localhost:{ port } /" , app_data , updater )
1630 start ()
1731
1832if __name__ == '__main__' :
33+ if "setup" in argv :
34+ install ()
35+ exit (0 )
36+
1937 main ()
2038
You can’t perform that action at this time.
0 commit comments