wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.25k stars 1.21k forks source link

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

Open lixiansen1991yy opened 11 months ago

lixiansen1991yy commented 11 months ago

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

HackerWand commented 11 months ago

v2.6.0 same problem

almas1992 commented 11 months ago

v2.6.0 same problem

image

This feature is planned for the next release.

HackerWand commented 11 months ago

@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.

almas1992 commented 11 months ago

@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!

HackerWand commented 11 months ago

@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

almas1992 commented 11 months ago

@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.