kofigumbs / multi

Create custom, lightweight macOS apps from websites
GNU General Public License v3.0
1.3k stars 40 forks source link

changing settings after creation in 3.0 results in signature error #120

Open danieltomasz opened 1 year ago

danieltomasz commented 1 year ago

When I created my app with multi 2.2.3 downloaded from homebrew those settings worked

{
  "tabs": [
    {
      "title": "Claude",
      "url": "https://claude.ai/login",
      "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15"
    }
  ],
  "windowed": true,
  "alwaysNotify": true,
  "alwaysOnTop": true,
  "terminateWithLastWindow": true,
  "openNewWindowsInBackground": true,
  "openNewWindowsWith": "com.apple.Safari"
}

When I updated to multi 3.0 when I try to save it I am getting error

Error: Error(message: "/Applications/Multi.app/Contents/Resources/../../../Multi/Claude.app: replacing existing signature\n/Applications/Multi.app/Contents/Resources/../../../Multi/Claude.app: resource fork, Finder information, or similar detritus not allowed\n")

the app is created but is broken, downgrading to 2.2.3 I able to create app again the settings are taken from readme

vurtomatic commented 1 year ago

Came to open an issue for the same thing I think.

Error: Error(message: "/Applications/Multi.app/Contents/Resources/../../../Multi/Multi.app: replacing existing signature\n/Applications/Multi.app/Contents/Resources/../../../Multi/Multi.app: unsealed contents present in the bundle root\n")

kofigumbs commented 1 year ago

@danieltomasz thanks for the report! It sounds like you’re running into https://developer.apple.com/library/archive/qa/qa1940/_index.html

If you’re open to it, it would be helpful if you could try the two commands mentioned on that page and report back:

danieltomasz commented 1 year ago

I installed multi v3 as Multi3 now, so probably I to messed with paths to run xattr -lr /Applications/Multi.app/Contents/Resources/../../../Multi/Multi.app as it is point to the homebrew installed version and replacing it with Multi3 give me the same results

xattr: No such file:

xattr -lr /Applications/Multi3.app/Contents/Resources/ gives me

/Applications/Multi3.app/Contents/Resources//notification.js: com.apple.quarantine: 0181;64c28202;Arc;
/Applications/Multi3.app/Contents/Resources//Icon.icns: com.apple.quarantine: 0181;64c28202;Arc;
/Applications/Multi3.app/Contents/Resources//Runtime: com.apple.quarantine: 01c1;64c28202;Arc;
/Applications/Multi3.app/Contents/Resources//create-mac-app: com.apple.quarantine: 01c1;64c28202;Arc;
/Applications/Multi3.app/Contents/Resources//settings.html: com.apple.quarantine: 0181;64c28202;Arc;
/Applications/Multi3.app/Contents/Resources//Stub.plist: com.apple.quarantine: 0181;64c28202;Arc;
/Applications/Multi3.app/Contents/Resources/: com.apple.quarantine: 01c1;64c28202;Arc;

Suprisingle the multi from homebrew gives similar results (earlier Multi v3 was installed as Multi and then I reinstalled Multi v2 as Multi) xattr -lr /Applications/Multi.app/Contents/Resources/

/Applications/Multi.app/Contents/Resources//notification.js: com.apple.quarantine: 0181;64c27a49;Homebrew\x20Cask;C2BFDB47-1417-4B1E-8A9F-99FE3C30D573
/Applications/Multi.app/Contents/Resources//preferences.html: com.apple.quarantine: 0181;64c27a49;Homebrew\x20Cask;C2BFDB47-1417-4B1E-8A9F-99FE3C30D573
/Applications/Multi.app/Contents/Resources//Icon.icns: com.apple.quarantine: 0181;64c27a49;Homebrew\x20Cask;C2BFDB47-1417-4B1E-8A9F-99FE3C30D573
/Applications/Multi.app/Contents/Resources//blocklist.json: com.apple.quarantine: 0181;64c27a49;Homebrew\x20Cask;C2BFDB47-1417-4B1E-8A9F-99FE3C30D573
/Applications/Multi.app/Contents/Resources//Runtime: com.apple.quarantine: 01c1;64c27a49;Homebrew\x20Cask;C2BFDB47-1417-4B1E-8A9F-99FE3C30D573
/Applications/Multi.app/Contents/Resources//create-mac-app: com.apple.quarantine: 01c1;64c27a49;Homebrew\x20Cask;C2BFDB47-1417-4B1E-8A9F-99FE3C30D573
/Applications/Multi.app/Contents/Resources//Stub.plist: com.apple.quarantine: 0181;64c27a49;Homebrew\x20Cask;C2BFDB47-1417-4B1E-8A9F-99FE3C30D573
/Applications/Multi.app/Contents/Resources/: com.apple.quarantine: 01c1;64c27a49;Homebrew\x20Cask;C2BFDB47-1417-4B1E-8A9F-99FE3C30D573

point both to Multi and Multi3 give me similar results with addition to other flags properties that are ok

danieltomasz commented 1 year ago

I am MacOS 13.4.1

danieltomasz commented 1 year ago

After update of homebrew version to 3.0.0 I am trying with other sites and I cannot reproduce error so I am closing this issue

kofigumbs commented 1 year ago

Thanks for following up! It’s interesting to know that mixing a homebrew installation with a manual one causes issues. Glad you got it working.

danieltomasz commented 1 year ago

I tried to edit settings that I set previously with "alwaysOnTop": false, and I am getting again this error

Error: Error(message: "Skipping icon creation because no PNG or ICNS 

provided\n/Applications/Multi.app/Contents/Resources/../../../Multi/Claude.app: replacing existing 

signature\n/Applications/Multi.app/Contents/Resources/../../../Multi/Claude.app: unsealed contents present in the bundle root\n")

The installation from scratch went without error

It seems that trying to change anything in the settings, is changing the signature, does the 2.4 has different mechanism for storing settings?

In recent MacOS releases there were some changes related to signing the apps I think

space-esquire commented 1 year ago

Happening to me as well, I am running Ventura!