瀏覽代碼

AirArkanoid: Fix on windows

Willy-JL 2 年之前
父節點
當前提交
8874281a1e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      air_arkanoid/application.fam

+ 2 - 1
air_arkanoid/application.fam

@@ -12,7 +12,8 @@ App(
     fap_extbuild=(
         ExtFile(
             path="${FAP_SRC_DIR}/assets",
-            command="python3 ${FAP_SRC_DIR}/engine/scripts/sprite_builder.py ${FAP_SRC_DIR.abspath}/sprites ${TARGET.abspath}/sprites",
+            command=("python3" if __import__("shutil").which("python3") else "python")
+            + " ${FAP_SRC_DIR}/engine/scripts/sprite_builder.py ${FAP_SRC_DIR.abspath}/sprites ${TARGET.abspath}/sprites",
         ),
     ),
 )