-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
When running tauri build
, bundle_dmg.sh
errors fails to bundle project
#3055
Comments
Is this happening when running on CI? If so you need an env variable: #2567 |
Thanks for the quick reply. it's happening locally on my m1 macbook |
@lucasfernog
|
Running into this as well, can confirm that This should also be fixed when #1731 is done |
When setting |
It works fine for me, so if you're actually not getting a DMG file then that sounds like a separate issue |
You should get a DMG file, though a not so good looking one :( we'll need to refactor the DMG bundle script to fix this. |
I get this error when trying to run |
FYI, tracing this back into create-dmg/create-dmg#113. Mojave introduced a new plist value that is required for Apple Script (used in create-dmg) to work with other applications (i.e. Finder). Maybe we could introduce an OS version check to see if it's Mojave or later and dynamically choose to tack on the CI tag to skip using AppleScript as a workaround until (if) upstream fixes? |
I wish we could stop using applescript and use something like https://github.com/LinusU/node-appdmg but it's a lot of work to translate that one to Rust. |
when i run CI=true npm run tauri build it still returns the error what am i doing wrong? |
#3055 (comment) |
Same here on Mac M1 |
There are various threads talking about similar stuff to this. In one of them it recommended to open Photos.app and press 'Get Started' (I haven't used it before on this mac). That actually worked for some reason. 🤷 |
Commenting because opening Photos.app worked for me on an M1 MacBook Pro… Before opening Photos.app… Running bundle_dmg.sh
Error failed to bundle project: error running bundle_dmg.sh: error running bundle_dmg.sh: `failed to run […]/tauri-app/src-tauri/target/release/bundle/dmg/bundle_dmg.sh`
error Command failed with exit code 1. After… Running bundle_dmg.sh
Finished 2 bundles at:
[…]/tauri-app/src-tauri/target/release/bundle/macos/tauri-app.app
[…]/tauri-app/src-tauri/target/release/bundle/dmg/tauri-app_0.0.0_aarch64.dmg |
For me, Photos.app did not accomplish anything on M2 Macbook Air, CI=true option does work! |
It seems is macOS permission related problem, run “tarui build ” manual for the first time, problem solved. |
I had same problem. It was successed after manual run build script (bundle_dmg.sh from targer/release folder) and it build image. Then I unmount own builded image from finder. |
I had same problem with |
I managed to solve this issue by running pnpm tauri build directly in the macOS terminal. |
The issue for me was that the previously built image was open and bundle_dmg.sh couldn't overwrite it because the old app was running (permission error). Silly problem! |
Run
Then forcibly remove the volume:
And that won't fully resolve it (not sure why); you need to restart. |
Same here on Mac M1 But I turned off the updater, it works well "updater": {
"active": false,
"endpoints": ["https://maqi1520.github.io/mdx-editor/install.json"],
"dialog": true,
"pubkey": ""
}, |
Tried all the above options on macOS and still receiving the same error! Is this still an issue for anyone else? |
I fixed it! I think the latest version of macOS is responsible here. error when building with yarn in verbose mode
Fixed by enabling "Full Disk Access" in System Settings for Terminal! (and VSCode for its internal terminal) |
Neat, thanks! Very helpful :))
…On Sat, Jul 1, 2023 at 3:02 PM Lucas Igel ***@***.***> wrote:
I fixed it! I think the latest version of macOS is responsible here.
error when building:
hdiutil: create failed - Operation not permitted
could not access /Volumes/App/App.app - Operation not permitted
Fixed by enabling "Full Disk Access" in System Settings for Terminal! (and
VSCode for its internal terminal)
—
Reply to this email directly, view it on GitHub
<#3055 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTSCR5I5CPIHU53UJCLOIDXOCM7LANCNFSM5JZHL7PQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
i tried it, simple to fix |
see your Mac Finder sidebar, you will see something mounted, just delete it, everyting will be ok |
Having the same error, but a different flavour from the looks of the other comments. Just posting my flavour here for anyone that is looking to investigate and wants a clearer picture maybe: + hdiutil create -srcfolder /Users/jameel/Documents/GitHub/tauriapp-desktop-app/src-tauri/target/release/bundle/macos/tauriapp.app -volname tauriapp -fs HFS+ -fsargs '-c c=64,a=16,e=16' -format UDRW /Users/jameel/Documents/GitHub/tauriapp-desktop-app/src-tauri/target/release/bundle/macos/rw.tauriapp_0.0.0_aarch64.dmg
hdiutil: create failed - Read-only file system
Error [tauri_cli_node] failed to bundle project: error running bundle_dmg.sh
ELIFECYCLE Command failed with exit code 1. Seems to be hdiutil permissions related, but using sudo, full disk access, mount permissions didn't help. |
same error
|
In my situation, the |
These steps solved my issue:
|
This is about vscode's terminal problem. In mac's terminal there isn't problem. |
This worked for me on macOS Sonoma: Give Terminal.app the permissions to control Finder.app: |
This solution worked for me as well. |
fix github action build error tauri-apps/tauri#3055
I'm having the same error
using
from a quick search it seems that this is a MacOS error, and the short term solution is to restart the machine, while the long term solution is to report it to apple and wait. |
Same here on Mac M1 |
For me it happens randomly. I just build my app again until it works. |
So, at first i was running |
Edit: the
.dmg
files are actually created and function correctly. You can find them in./target/release/bundle/macos
Describe the bug
When running
tauri build
,bundle_dmg.sh
errorsfails to bundle project
.Looking at the error log below, the issue seems to stem from an Apple script not being authorized:
execution error: Not authorised to send Apple events to Finder. (-1743)
I tried restarting, upgrading
rustc
, and runningsudo tauri build
- didn't help.Interestingly,
tauri dev
does work.To Reproduce
git clone [email protected]:joepio/atomic-data-rust.git
tauri build
Platform and Versions (required):
Additional context
Add any other context about the problem here.
Stack Trace
The text was updated successfully, but these errors were encountered: