From 7626d7c1d068b43100a928f0fed6b46ec47f7606 Mon Sep 17 00:00:00 2001 From: msojocs Date: Wed, 16 Feb 2022 13:33:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20AppImage=20=E8=BD=AF=E4=BB=B6=E5=8C=85?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=B8=8E=E5=8F=91=E5=B8=83=20#5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/appimage.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/appimage.sh b/tools/appimage.sh index 87c2fc9..6f5b342 100644 --- a/tools/appimage.sh +++ b/tools/appimage.sh @@ -16,8 +16,10 @@ cp "$root_dir/bin/wechat-devtools" "$app_dir/bin/wechat-devtools" cp "$root_dir/res/appimage.desktop" "$app_dir/wechat-devtools.desktop" cp "$root_dir/res/icons/wechat-devtools.png" "$app_dir/wechat-devtools.png" -echo "#!/bin/bash" > "$app_dir/AppRun" -echo "exec bin/wechat-devtools" >> "$app_dir/AppRun" +cat > "$app_dir/AppRun" <<- EOF +#!/bin/bash +exec \$APPDIR/bin/wechat-devtools +EOF chmod +x "$app_dir/AppRun" cp -r "$root_dir/package.nw" "$app_dir/package.nw" @@ -26,3 +28,5 @@ rm -rf "$app_dir/nwjs/node" "$app_dir/nwjs/node.exe" cp -r "$root_dir/node/bin/node" "$app_dir/nwjs/node" cd "$app_dir/nwjs/" && ln -s "node" "node.exe" cd "$app_dir" + +# appimagetool $app_dir \ No newline at end of file