try fuse
This commit is contained in:
parent
8b73217ff8
commit
c8aa9e84f4
1 changed files with 19 additions and 5 deletions
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
|
@ -198,6 +198,12 @@ jobs:
|
||||||
src-tauri/target/${{ inputs.target }}/release/bundle/macos/*.app
|
src-tauri/target/${{ inputs.target }}/release/bundle/macos/*.app
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
|
- name: Install FUSE for AppImage processing
|
||||||
|
if: contains(inputs.platform, 'ubuntu')
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y fuse libfuse2
|
||||||
|
|
||||||
- name: Remove libwayland-client.so from AppImage
|
- name: Remove libwayland-client.so from AppImage
|
||||||
if: contains(inputs.platform, 'ubuntu')
|
if: contains(inputs.platform, 'ubuntu')
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -213,24 +219,32 @@ jobs:
|
||||||
# Extract AppImage
|
# Extract AppImage
|
||||||
cd "$(dirname "$APPIMAGE_PATH")"
|
cd "$(dirname "$APPIMAGE_PATH")"
|
||||||
APPIMAGE_NAME=$(basename "$APPIMAGE_PATH")
|
APPIMAGE_NAME=$(basename "$APPIMAGE_PATH")
|
||||||
EXTRACT_DIR="${APPIMAGE_NAME%.AppImage}_extracted"
|
|
||||||
|
|
||||||
|
# Extract using the AppImage itself
|
||||||
"./$APPIMAGE_NAME" --appimage-extract
|
"./$APPIMAGE_NAME" --appimage-extract
|
||||||
|
|
||||||
# Remove libwayland-client.so files
|
# Remove libwayland-client.so files
|
||||||
find squashfs-root -name "libwayland-client.so*" -delete
|
echo "Removing libwayland-client.so files..."
|
||||||
|
find squashfs-root -name "libwayland-client.so*" -type f -delete
|
||||||
|
|
||||||
|
# List what was removed for verification
|
||||||
|
echo "Files remaining in lib directories:"
|
||||||
|
find squashfs-root -name "lib*" -type d | head -5 | while read dir; do
|
||||||
|
echo "Contents of $dir:"
|
||||||
|
ls "$dir" | grep -E "(wayland|fuse)" || echo " No wayland/fuse libraries found"
|
||||||
|
done
|
||||||
|
|
||||||
# Get appimagetool
|
# Get appimagetool
|
||||||
wget -q https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
wget -q https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
chmod +x appimagetool-x86_64.AppImage
|
chmod +x appimagetool-x86_64.AppImage
|
||||||
|
|
||||||
# Repackage AppImage
|
# Repackage AppImage with no-appstream to avoid warnings
|
||||||
ARCH=x86_64 ./appimagetool-x86_64.AppImage squashfs-root "$APPIMAGE_NAME"
|
ARCH=x86_64 ./appimagetool-x86_64.AppImage --no-appstream squashfs-root "$APPIMAGE_NAME"
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -rf squashfs-root appimagetool-x86_64.AppImage
|
rm -rf squashfs-root appimagetool-x86_64.AppImage
|
||||||
|
|
||||||
echo "libwayland-client.so removed from AppImage"
|
echo "libwayland-client.so removed from AppImage successfully"
|
||||||
else
|
else
|
||||||
echo "No AppImage found to process"
|
echo "No AppImage found to process"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue