tauri-apps/tauri

[feat] macOS adding extra files to DMG

Closed this issue · 4 comments

Describe the problem

The Generate DMG expects additional files to be added via configuration items, such as files for corrupted problem fixes.

damaged-light en-US image

Describe the solution you'd like

If it is possible to add a binary to the DMG that fixes the corruption issue, it would be easy to fix it after installing the app.

Alternatives considered

No response

Additional context

No response

I believe this pop-up also occurs when the application and its contents aren't correctly signed and notarized. Did you verify that both of these steps have been done?

You can use codesign -vvv --deep --strict <path_to_file> to check the signature
codesign -dvvvvv <path_to_file> to get more information about the signature

@GillesPlatteeuw I don't have an Apple developer account, so I can't sign the app, so I have to fix the corruption by sudo xattr -r -d com.apple.quarantine /Applications/EcoPaste.app. But user input is cumbersome, and it's much easier to just double-click the file!

You can self-sign the app so right-click -> open works at least (add "signingIdentity": "-" to tauri.conf).

double clicking requires code signing & notarization, welcome in the world of macos app distribution.

Adding additional scripts that would execute xattr (does that make double clicking possible?) wouldn't work automatically in .dmg (meaning the user has to "drag" (or double click?) the script.

Anyway, the general files feature is being worked on here: #11916

I'm already looking forward to it!