We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77a1161 commit b6b2354Copy full SHA for b6b2354
Updater/updater/assets/__init__.py
Updater/updater/assets/name.py
@@ -0,0 +1,23 @@
1
+import platform
2
+
3
4
+def get_goos_goarch():
5
+ machine = platform.machine().lower()
6
+ if machine in ("x86_64", "amd64"):
7
+ goarch = "amd64"
8
+ elif machine in ("aarch64", "arm64"):
9
+ goarch = "arm64"
10
+ elif machine in ("i386", "i686", "x86"):
11
+ goarch = "386"
12
+ elif machine.startswith("arm"):
13
+ goarch = "arm"
14
+ else:
15
+ goarch = machine
16
17
+ return platform.system().lower(), goarch
18
19
+def get_package_name_from_current_machine():
20
+ goos, goarch = get_goos_goarch()
21
22
+ ext = ".zip" if goos == "windows" else ".tar.gz"
23
+ return f"QuickNote_{goos}_{goarch}{ext}"
0 commit comments