瀏覽代碼

Use host arch

bryan 1 月之前
父節點
當前提交
2f99036efb
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      installJRMC

+ 2 - 1
installJRMC

@@ -1194,8 +1194,9 @@ install_mc_appimage() {
   execute cp "$app_dir/$icon_rel" "$app_dir/usr/share/icons/hicolor/256x256/apps/mediacenter.png"
 
   # Get appimagetool
+  local arch; arch=$(uname -m) # TODO use host arch
   if ! command -v appimagetool &>/dev/null && [[ ! -x "$tool" ]]; then
-    download "https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-${ARCH}.AppImage" "$tool"
+    download "https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-${arch}.AppImage" "$tool"
     execute chmod +x "$tool"
   fi