We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e32ef31 commit 5dc04c4Copy full SHA for 5dc04c4
1 file changed
src/main.py
@@ -5,16 +5,34 @@
5
from windows.launcher import Launcher
6
from webview import start
7
8
-def main():
+from sys import argv
9
+
10
+def setup() -> tuple[AppData, Updater]:
11
app_data: AppData = AppData()
12
updater: Updater = Updater(app_data)
13
14
+ return app_data, updater
15
16
+def install() -> None:
17
+ app_data, updater = setup()
18
19
+ for repo in app_data.repos:
20
+ updater.update(repo)
21
22
+ updater.build_mac()
23
24
+def main():
25
26
launcher_path: str = app_data.v_path("launcher")
27
port, _ = host(launcher_path)
28
29
Launcher(f"http://localhost:{port}/", app_data, updater)
30
start()
31
32
if __name__ == '__main__':
33
+ if "setup" in argv:
34
+ install()
35
+ exit(0)
36
37
main()
38
0 commit comments