l1xnan / duckling

A fast viewer for CSV/Parquet files and databases such as DuckDB, SQLite, PostgreSQL, MySQL, Clickhouse, etc., base on Tauri
MIT License
215 stars 8 forks source link

Apple Silicon support #129

Open airhorns opened 5 months ago

airhorns commented 5 months ago

It'd be really great to get a build for arm64 / apple silicon so duckdb performance is improved for macOS users on M* chips! Duckling works under the intel emulation mode but there is often a major performance hit from this emulation so a native build would be great!

Thanks for a great piece of open source software!

l1xnan commented 5 months ago

I released version Duckling_0.0.33_aarch64.dmg with a build for arm64, but I don't have an Apple device and have never tested on it, if there are any questions or suggestions during use, please let me know

airhorns commented 5 months ago

Thanks for the speedy resopnse! Gave that prerelease a shot and got this error trying to run the app after extracting it: CleanShot 2024-04-28 at 14 38 57@2x

I am not very experienced with macOS development but I clicked the little ? at the top and got this help page that came up: CleanShot 2024-04-28 at 14 39 33@2x which suggests a code signing issue

l1xnan commented 5 months ago

Sorry, this is because the app is not signed by Apple. Because it costs $99 annually for Apple support. One solution is to execute in terminal:

sudo xattr -r -d com.apple.quarantine /Applications/Duckling.app

OR

sudo xattr -c /Applications/Duckling.app

Refer to: https://www.davidhu.io/kube-knots/docs/installation/macos/#apple-silicon-build-error

airhorns commented 5 months ago

Hm, I'm not sure that's what's happening. The dialog in that link you posted has a "open anyway" button at the bottom. When I run the intel build, I get the "cannot verify" dialog and I am able to overcome it by hitting the open button at the bottom. But when running the aarch64 build, I get "is damaged and can't be run", with no open button at the bottom. I think macOS is seeing it as a completely invalid signature, instead of none at all.

abhiaagarwal commented 4 months ago

Works fine if launched via CLI. You should be able to xattr -d com.apple.quarantine /path/to/Duckling.app to also solve this.

Screenshot 2024-06-02 at 12 09 09 PM
jesseb34r commented 2 months ago
sudo xattr -r -d com.apple.quarantine /Applications/Duckling.app

this worked for me, thank you!