mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +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
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user