Skip to content

Commit

Permalink
fix: AppImage 软件包构建与发布 #5
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Feb 16, 2022
1 parent a8d09d0 commit 7626d7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 7626d7c

Please sign in to comment.