fix: AppImage 软件包构建与发布 #5

This commit is contained in:
msojocs 2022-02-16 13:33:33 +08:00
parent a8d09d0509
commit 7626d7c1d0

View File

@ -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