-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: The files patterns is changing file permissions in macOS MAS #8943
Comments
Can you share a minimum reproducible repo for this? Something i can test locally with? Also might be worth upgrading to 26.0.10 first and retesting with that version. Numerous upgrades were made, including asar packaging logic flows |
Thank you for your reply!
I have created a test case repository with minimal code: https://github.com/ollm/electron-builder-permissions-bug Usage: npm run build-mac-store
> [email protected] build-mac-store
> electron-builder --universal --mac mas && npm run postbuild
• electron-builder version=26.0.11 os=23.5.0
• loaded configuration file=package.json ("build" field)
• description is missed in the package.json appPackageFile=/Users/llopart/Documents/github/electron-builder-permissions-bug/package.json
• writing effective config file=dist/builder-effective-config.yaml
• executing @electron/rebuild electronVersion=35.0.1 arch=x64 buildFromSource=false appDir=./
• installing native dependencies arch=x64
• completed installing native dependencies
• packaging platform=mas arch=x64 electron=35.0.1 appOutDir=dist/mas-universal-x64-temp
• default Electron icon is used reason=application icon is not set
• executing @electron/rebuild electronVersion=35.0.1 arch=arm64 buildFromSource=false appDir=./
• installing native dependencies arch=arm64
• completed installing native dependencies
• packaging platform=mas arch=arm64 electron=35.0.1 appOutDir=dist/mas-universal-arm64-temp
• packaging platform=mas arch=universal electron=35.0.1 appOutDir=dist/mas-universal
• signing file=dist/mas-universal/electron-builder-permissions-bug.app platform=darwin type=distribution identityName=Apple Distribution: Oleguer Llopart (XXXXXXX) identityHash=XXXXXXXXXXXXXXXXXXXXXXXX provisioningProfile=none
• skipped macOS notarization reason=`notarize` options were unable to be generated
• signing file=dist/mas-universal/electron-builder-permissions-bug.app platform=mas type=distribution identityName=Apple Distribution: Oleguer Llopart (XXXXXXX) identityHash=XXXXXXXXXXXXXXXXXXXXXXXX provisioningProfile=none
> [email protected] postbuild
> node scripts/test-postbuild.js
Original x64 | F:OK | R:OK | W:OK | X:OK | Exists:OK | -rwxr-xr-x
Original arm64 | F:OK | R:OK | W:OK | X:OK | Exists:OK | -rwxr-xr-x
Darwin Mas x64 | F:OK | R:OK | W:OK | X:OK | Exists:OK | -rwxr-xr-x
Darwin Mas arm64 | F:OK | R:OK | W:OK | X:-- | Exists:OK | -rw-r--r--
I have tried with |
So this might be possibly resolved through changes in #8995 (Draft PR to test file streaming approach in my forked Basically, files will no longer be copied before being passed to If my |
32.3.0
25.1.8
electron-builder
is changing permissions of some files (Binaries in my case) inmacOS MAS
and only onarm64
, it seems thatx64
keeps maintain permissions correctly, the problem seems to be caused by using an exclude pattern and then an include pattern, together withasarUnpack
, I use these patterns to avoid including binaries from different arch/os.Original file permissions:
Permissions in macOS MAS:
As a temporary solution I have stopped using these patterns in
files
.The text was updated successfully, but these errors were encountered: