-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify own Info.plist file and create desktop shortcut icon? #549
Comments
If you use default Squirrel.Windows, please read https://github.com/electron/windows-installer#handling-squirrel-events (in short — use https://github.com/mongodb-js/electron-squirrel-startup) NSIS installer creates shortcuts without any code on your side (but currently NSIS doesn't support auto-update). |
Use |
@develar thx a lot~ |
Trying to register custom protocol: The current Electron-API-demo uses electron-packager. |
main.js:
This code works as expected, when i call it from etc Safari addressbar myapp://param, i can see the whole scheme at console log. This is only valid when already exists an app instance. When app is closed, calling it with myapp://param, just opens the app, but doesn't log the whole url scheme!
What i am missing? |
Also what is the proper way to edit Info.plist?
|
I 've made a question with sample code and link to GitHub minimal project && SO if helps, to see where i am: |
@oikonomopo To customize Info.plist, please use https://github.com/electron-userland/electron-builder/wiki/Options#MacOptions-extendInfo |
Thanks! |
I don't see a detailed explanation about "mac": { But in case of file name, where should I put my custom .plist file and how to pass the file name into extendInfo? |
what filename do you mean? |
I mean if I pass my custom plist file name instead of an object, electron-builder failed to add those properties in to the info.plist(This feature is available in the electron-packager). "mac": { Is there any other way to read properties from an external file and merge to info.plist? |
Did you find a solution for that? |
Did anyone find a solution to reference info.plist filepath in electron builder properties? OR perhaps it only works by providing entries as objects.. |
I assume you can just read the file, parse it, make an object out of it and pass it to |
Qeustion 1:
I would like to build my app for macOS through, but my app implemented a protocol for web url lunch my app, for example: using
builder://
. In which case, I need to specify theInfo.plist
file for theCFBundleURLTypes
.The
electron-packager
support an option for specify my ownplist
file.I read the
electron-builder
document and also tried to specify.build.mac.entitlements
path to my own.plist
file, it seems like doesn't work.Is there any way to specify it on the
package.json
?Qeustion 2:
The windows installer installed the app files into
C:\Users\ouchangkun\AppData\Local\appname\app-version
, is there any way to make installer create an desktop shortcut icon and Start lunch menu?Thanks a lot. :)
The text was updated successfully, but these errors were encountered: