Skip to content

Commit

Permalink
fix appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a committed Jul 5, 2024
1 parent e868de0 commit 61e27f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-nekoray-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:
cp -r public_res/* linux64
####
bash ../libs/package_appimage.sh
mv nekoray-x86_64.AppImage $version_standalone-linux-x64.AppImage
mv nekobox-x86_64.AppImage $version_standalone-linux-x64.AppImage
- name: Clean Up
run: |
cd deployment
Expand Down
24 changes: 12 additions & 12 deletions libs/package_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@

sudo apt-get install fuse -y

cp -r linux64 nekoray.AppDir
cp -r linux64 nekobox.AppDir

# The file for Appimage

rm nekoray.AppDir/launcher
rm nekobox.AppDir/launcher

cat >nekoray.AppDir/nekoray.desktop <<-EOF
cat >nekobox.AppDir/nekobox.desktop <<-EOF
[Desktop Entry]
Name=nekoray
Exec=echo "NekoRay started"
Icon=nekoray
Name=nekobox
Exec=echo "nekobox started"
Icon=nekobox
Type=Application
Categories=Network
EOF

cat >nekoray.AppDir/AppRun <<-EOF
cat >nekobox.AppDir/AppRun <<-EOF
#!/bin/bash
echo "PATH: \${PATH}"
echo "NekoRay runing on: \$APPDIR"
LD_LIBRARY_PATH=\${APPDIR}/usr/lib QT_PLUGIN_PATH=\${APPDIR}/usr/plugins \${APPDIR}/nekoray -appdata "\$@"
echo "nekobox runing on: \$APPDIR"
LD_LIBRARY_PATH=\${APPDIR}/usr/lib QT_PLUGIN_PATH=\${APPDIR}/usr/plugins \${APPDIR}/nekobox -appdata "\$@"
EOF

chmod +x nekoray.AppDir/AppRun
chmod +x nekobox.AppDir/AppRun

# build

curl -fLSO https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage nekoray.AppDir
./appimagetool-x86_64.AppImage nekobox.AppDir

# clean

rm appimagetool-x86_64.AppImage
rm -rf nekoray.AppDir
rm -rf nekobox.AppDir

0 comments on commit 61e27f4

Please sign in to comment.