-
-
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
Update installation fails on macOS because of EACCES #7918
Comments
That's super bizarre! The only way that could happen is if it were in the NSISUpdater.ts electron-builder/packages/electron-updater/src/NsisUpdater.ts Lines 159 to 163 in 4497e86
How are you fetching the autoUpdater? |
Hello @mmaietta! Can you elaborate what you mean by "fetching"? To check about NSIS influence, I have even set its configuration to return {
productName: `app`,
appId: `com.company.app`,
publish: [{
provider: "generic",
url: "",
channel: "latest",
}],
forceCodeSigning: true,
directories: {
output: "dist",
buildResources: "resources",
},
files: ["packages/**/dist/**"],
electronUpdaterCompatibility: ">= 2.16",
mac: {
category: "public.app-category.utilities",
target: {
target: "default",
arch: process.env.ARCH !== undefined ? process.env.ARCH : "x64",
},
hardenedRuntime : true,
gatekeeperAssess: false,
entitlements: "resources/entitlements.mac.plist",
entitlementsInherit: "resources/entitlements.mac.plist",
notarize: {
teamId: process.env.APPLE_TEAM_ID !== undefined ? process.env.APPLE_TEAM_ID : "",
}
},
win: false,
nsis: false,
asar: true,
}; |
I now believe that I understood your comment and found out that the updater object I had created was indeed a I could even remove the workarounds from the ancient issue. Thank you very much! |
Related note, if you use this, electron-updater will automatically provide the correct updater instance for you per-OS
electron-builder/packages/electron-updater/src/main.ts Lines 61 to 66 in 4497e86
electron-builder/packages/electron-updater/src/main.ts Lines 27 to 32 in 4497e86
|
Hello developers 👋
I am trying to deploy our application for macOS. After quite some debugging, I managed to sign, notarize and setup the app and the updater. Everything works but the final step in installing the downloaded update. The log is as follows:
I am highly confused why the updater attempts to run
elevate.exe
on a Mac!Following some suggestions from an ancient issue, I have implemented the update installation process as follows:
I have tested many different variations of this approach, e.g., with and without timeout. Updates on Windows work fine! Any hint or ideas?
The text was updated successfully, but these errors were encountered: