mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 04:24:38 +03:00
fix appimage
This commit is contained in:
2
.github/workflows/build-nekoray-cmake.yml
vendored
2
.github/workflows/build-nekoray-cmake.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user