Open AdlerJS opened 1 year ago
same problem
I solved the problem by using the original rust open and calling it using invoke, maybe you need to pass in a specific app using open::with to get it to work.
Tangentially related, did you follow any specific instructions to publish a signed build on the Mac App Store?
So I have some code that does something like this to create the dir.
// crate the config dir if it's not there
try {
await createDir(await appConfigDir(), {
recursive: true,
});
} catch (err: unknown) {
// noop
}
Seems that it makes a folder but it's beyond cursed...
$ file /Users/hacksore/Library/Application\ Support/com.overlayed.app
/Users/hacksore/Library/Application Support/com.overlayed.app: directory
$ ls /Users/hacksore/Library/Application\ Support/com.overlayed.app
config.json
When I go to call shell.open
on the directory I get:
Unhandled Promise Rejection: shell error: failed to open: Scoped shell IO error: Launcher failed with ExitStatus(unix_wait_status(256))
Ok well im dumb, you can't call your app namespace ending in .app
cause it will think it's a macOS app 😂
Describe the bug
I have a signed MacOS Tauri build for distribution and when I try and use shell.open to open a fileDir on the computer it results in the following error being thrown
Unhandled Promise Rejection: shell error: failed to open: Scoped shell IO error: Launcher failed with ExitStatus(unix_wait_status(256))
Note: The code works in local develop and in unsigned builds this only occurs in signed macOS builds.
Code Example:
Tauri Config (shell):
Reproduction
1.) Create a signed mac os build 2.) Use shell.open to open a local file directory
Expected behavior
Local file directory should open on signed macOS builds
Platform and versions
Stack trace
No response
Additional context
No response