Skip to content

Commit 7626d7c

Browse files
committed
fix: AppImage 软件包构建与发布 #5
1 parent a8d09d0 commit 7626d7c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/appimage.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ cp "$root_dir/bin/wechat-devtools" "$app_dir/bin/wechat-devtools"
1616
cp "$root_dir/res/appimage.desktop" "$app_dir/wechat-devtools.desktop"
1717
cp "$root_dir/res/icons/wechat-devtools.png" "$app_dir/wechat-devtools.png"
1818

19-
echo "#!/bin/bash" > "$app_dir/AppRun"
20-
echo "exec bin/wechat-devtools" >> "$app_dir/AppRun"
19+
cat > "$app_dir/AppRun" <<- EOF
20+
#!/bin/bash
21+
exec \$APPDIR/bin/wechat-devtools
22+
EOF
2123
chmod +x "$app_dir/AppRun"
2224

2325
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"
2628
cp -r "$root_dir/node/bin/node" "$app_dir/nwjs/node"
2729
cd "$app_dir/nwjs/" && ln -s "node" "node.exe"
2830
cd "$app_dir"
31+
32+
# appimagetool $app_dir

0 commit comments

Comments
 (0)