Skip to content

Fix AppDir permissions before packaging - #102

Merged
niess merged 1 commit into
niess:masterfrom
mxmlnkn:fix-file-permissions
Nov 5, 2026
Merged

niess merged 1 commit into
niess:masterfrom
mxmlnkn:fix-file-permissions

Conversation

@mxmlnkn

@mxmlnkn mxmlnkn commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #101

The AppImage runtime's --appimage-extract creates directories with mode 0700.
Repackaging a base image therefore fails with recent appimagetool versions:

  ERROR: .../AppDir
         Problem: this directory has mode 0700 (rwx------) ...

The base images themselves store 0755 directories, as can be seen with:

    APPIMAGE=python3.15.1-cp315-cp315-manylinux2014_aarch64.AppImage
    unsquashfs -o $( 'grep' -abo hsqs "$APPIMAGE" | sed 's|:.*||' | tail -1 ) "$APPIMAGE"

So, updating them would not help. Normalize the extracted AppDir to the
equivalent of 'chmod -R a+rX' before packaging.

Fixes niess#101
@niess
niess merged commit a5c43b0 into niess:master Nov 5, 2026
@niess

niess commented Nov 5, 2026

Copy link
Copy Markdown
Owner

hello @mxmlnkn, thank you for this fix :)

@bollenn

bollenn commented Nov 5, 2026 •

Copy link
Copy Markdown

@niess I confirm the fix, mind making a release including this fix?

@niess

niess commented Nov 5, 2026

Copy link
Copy Markdown
Owner

@bollenn Done! (didn't see your post there).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing build as of permissions

3 participants