wails icon indicating copy to clipboard operation
wails copied to clipboard

How to package the associated. pos suffix file and double-click to open it, supporting Windows and macos

Open lixiansen1991yy opened this issue 1 year ago • 6 comments

Description

How to package the associated. pos suffix file and double-click to open it, supporting Windows and macos Can I automatically associate. pos files through packaging and support double clicking to open them? I tried to manually associate macos, but after modifying the info.plist file, I double clicked to open the program and encountered an error 1546323849

To Reproduce

1

Expected behaviour

1

Screenshots

1

Attempted Fixes

1

System Details

1

Additional context

1

lixiansen1991yy avatar Dec 04 '23 03:12 lixiansen1991yy

v2.6.0 same problem

HackerWand avatar Dec 08 '23 06:12 HackerWand

v2.6.0 same problem

image

This feature is planned for the next release.

almas-x avatar Dec 08 '23 06:12 almas-x

@almas1992 Sorry, I noticed that I made a mistake. The problem I encountered was that after wails build, I compressed and decompressed the myapp. app file, but it couldn't be opened. The prompt was It's damaged and can't be opened. You should move it to the trash can.

HackerWand avatar Dec 08 '23 07:12 HackerWand

@almas1992 Sorry, I noticed that I made a mistake. The problem I encountered was that after wails build, I compressed and decompressed the myapp. app file, but it couldn't be opened. The prompt was It's damaged and can't be opened. You should move it to the trash can.

https://stackoverflow.com/questions/26434518/xcode-is-damaged-and-can-t-be-opened-you-should-move-it-to-the-trash

Refer to this article, hope it helps!

almas-x avatar Dec 08 '23 07:12 almas-x

@almas1992 Thank you for your suggestion. This is indeed useful to me, but I don't understand the reason behind it xattr -rc myapp.app

HackerWand avatar Dec 08 '23 07:12 HackerWand

@almas1992 Thank you for your suggestion. This is indeed useful to me, but I don't understand the reason behind it xattr -rc myapp.app

Probably because your app is not code signed.

almas-x avatar Dec 08 '23 07:12 almas-x