TiddlyWiki / TiddlyDesktop

A custom desktop browser for TiddlyWiki 5 and TiddlyWiki Classic, based on nw.js
1.63k stars 121 forks source link

MacOS Apple Silicon v 0.0.17 : Can't open, file is corrupted #276

Open nderambure opened 1 year ago

nderambure commented 1 year ago

Hello,

Just tried to use the Silicon version on macbook pro M1, but can't open file, even with right click > open. File is corrupted. Did download many times, still same issue.

The Mac64 version works.

Thx !

Jermolene commented 1 year ago

Hi @nderambure I was able to download the ZIP file from the link, and after decompressing it I was able to run TiddlyDesktop.app on an Apple Silicon Mac.

Is the ZIP file decompressing correctly for you? Is it TiddlyDesktop.app that is not opening?

image
nderambure commented 1 year ago

Hello @Jermolene. The zip is uncompressed without problem, I put the app file in Applications folder and launch it with right click > open. No problem for Mac64 version, but Silicon goes like this :

screenshot

I'm using MacOs Monterey. How can I help ?

Jermolene commented 1 year ago

Many thanks @nderambure I was able to duplicate the problem, and have uploaded a new release that seems to fix the problem:

https://github.com/TiddlyWiki/TiddlyDesktop/releases/tag/v0.0.18

Please let me know how the new release works for you.

nderambure commented 1 year ago

Thx for this @Jermolene, I've just tried with this new version.... and same problem :'( I've removed entirely the App using CleanMyMacX and retried, but still corrupted file. I've noticed in your commit that you changed attribute to make the file executable but it seems something else is needed. Let me know if you want me to provide more infos. Thx anyway for the work !

git-kundan commented 1 year ago

I am experiencing same issue. Looks like something to do with code signing. I am on Mac OS Ventura 13.4.1 (22F82). Please see the screenshot below.

TiddlyDesktopDamaged_SignatureIssue
Jermolene commented 1 year ago

We appear to be running into an issue that has been encountered by others. See: https://github.com/1kc/razer-macos/issues/449

The discussion there suggests that the solution may be to codesign the application and the zip file using a self-signed certificate or better still to codesign and notarise the app. I'll research further.

nderambure commented 1 year ago

Thx for your work @Jermolene !

FredZ commented 11 months ago

Same problem as git-kundan
I am on a Mac mini M2 ; Mac OS Ventura 13.4.1 . The Mac64 version works.

Thx !

Jermolene commented 11 months ago

Thanks everyone. I've started trying to figure out how to sign the application using Apple's developer tools which turns out to be quite complicated.

In the meantime, I've made an adjustment to the build packaging process which in my testing permits TiddlyDesktop to run by overriding the macOS security warnings. I've updated the release note with some instructions:

https://github.com/TiddlyWiki/TiddlyDesktop/releases/tag/v0.0.18

nderambure commented 11 months ago

@Jermolene : note that on MacOS Monterey, the button "open anyway" does not appear. I keep using MacOS 64 version, no problem so far, just need to open it with right click > Open the first time.

tiagox commented 8 months ago

Hi, the issue is still happening with v0.0.18.

image

I'm using macOS Ventura Version 13.2.1 in a Apple M2 Pro chip.

I'm falling back to mac64 version for now.

Please let us know if there's any way we can provide more information to help.

tostr7191 commented 7 months ago

This is a problem with MacOS putting the program in quarantine. You can get around this (locally) by first trying to open it, so you get the message in the screenshots above, then opening a terminal (Terminal.app is installed on all macs) and pasting this (assuming you have moved TiddlyDesktop.app to your Applications directory):

sudo xattr -dr com.apple.quarantine /Applications/TiddlyDesktop.app

This will require you to enter your password, then press enter, and then it will work if you go right click -> open. This is not a fix for the underlying problem, but at least a workaround for the users.

What is happening is that you are running xattr (as root) to delete recursively the extended attribute com.apple.quarantine from all files in the TiddlyDesktop.app directory.

hth tostr