fix appimage

This commit is contained in:
armv9
2024-07-05 11:48:51 +09:00
parent e868de0209
commit 61e27f4014
2 changed files with 13 additions and 13 deletions

View File

@@ -196,7 +196,7 @@ jobs:
cp -r public_res/* linux64 cp -r public_res/* linux64
#### ####
bash ../libs/package_appimage.sh 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 - name: Clean Up
run: | run: |
cd deployment cd deployment

View File

@@ -2,37 +2,37 @@
sudo apt-get install fuse -y sudo apt-get install fuse -y
cp -r linux64 nekoray.AppDir cp -r linux64 nekobox.AppDir
# The file for Appimage # 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] [Desktop Entry]
Name=nekoray Name=nekobox
Exec=echo "NekoRay started" Exec=echo "nekobox started"
Icon=nekoray Icon=nekobox
Type=Application Type=Application
Categories=Network Categories=Network
EOF EOF
cat >nekoray.AppDir/AppRun <<-EOF cat >nekobox.AppDir/AppRun <<-EOF
#!/bin/bash #!/bin/bash
echo "PATH: \${PATH}" echo "PATH: \${PATH}"
echo "NekoRay runing on: \$APPDIR" echo "nekobox runing on: \$APPDIR"
LD_LIBRARY_PATH=\${APPDIR}/usr/lib QT_PLUGIN_PATH=\${APPDIR}/usr/plugins \${APPDIR}/nekoray -appdata "\$@" LD_LIBRARY_PATH=\${APPDIR}/usr/lib QT_PLUGIN_PATH=\${APPDIR}/usr/plugins \${APPDIR}/nekobox -appdata "\$@"
EOF EOF
chmod +x nekoray.AppDir/AppRun chmod +x nekobox.AppDir/AppRun
# build # build
curl -fLSO https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage curl -fLSO https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage nekoray.AppDir ./appimagetool-x86_64.AppImage nekobox.AppDir
# clean # clean
rm appimagetool-x86_64.AppImage rm appimagetool-x86_64.AppImage
rm -rf nekoray.AppDir rm -rf nekobox.AppDir