Spaces:
Running
on
Zero
Running
on
Zero
Update ms.py
Browse files
ms.py
CHANGED
@@ -28,10 +28,13 @@ def download(filename, url):
|
|
28 |
|
29 |
apkname = "MuseScore.AppImage"
|
30 |
extra_dir = "squashfs-root"
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
35 |
if not os.path.exists(extra_dir):
|
36 |
subprocess.run(["chmod", "+x", f"./{apkname}"])
|
37 |
subprocess.run([f"./{apkname}", "--appimage-extract"])
|
|
|
28 |
|
29 |
apkname = "MuseScore.AppImage"
|
30 |
extra_dir = "squashfs-root"
|
31 |
+
|
32 |
+
if not os.path.exists(apkname):
|
33 |
+
download(
|
34 |
+
filename=apkname,
|
35 |
+
url="https://www.modelscope.cn/studio/Genius-Society/piano_trans/resolve/master/MuseScore.AppImage",
|
36 |
+
)
|
37 |
+
|
38 |
if not os.path.exists(extra_dir):
|
39 |
subprocess.run(["chmod", "+x", f"./{apkname}"])
|
40 |
subprocess.run([f"./{apkname}", "--appimage-extract"])
|