electron-collection一组构建Electron应用程序帮助模块

网友投稿 775 2022-10-22

electron-collection一组构建Electron应用程序帮助模块

electron-collection一组构建Electron应用程序帮助模块

Set of helper modules to build Electron applications.

API

debug([opts])

Adds useful debug features to your Electron app. See: electron-debug.

menu = defaultMenu(app, shell)

Create a default menu. See: electron-default-menu.

var defaultMenu = require('electron-collection/default-menu')var { Menu, app, shell } = require('electron')var menu = defaultMenu(app, shell)Menu.setApplicationMenu(Menu.buildFromTemplate(menu))

firstRun([opts])

Check if it's the first time the process is run. See: first-run.

fixPath()

Fix the $PATH on macOS when run from a GUI app. See: fix-path.

isDev

Check if Electron is running in Development. See: electron-is-dev.

move()

Automatically move Electron apps to the Applications directory. See: electron-lets-move.

rootPath

Determine the root path to your project. Read-only value. See: app-root-path.

resolvePath(resource)

Determine the path of a resource relative to the application root. app-root-path.

shouldStart = squirrelStartup()

Default Squirrel.Windows event handler for your Electron apps. Returns a boolean. See: electron-squirrel-startup.

License

MIT

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Crossbar:分布式的网络平台和microservice应用程序
下一篇:Spring Boot + Vue 如此强大?
相关文章

 发表评论

暂时没有评论,来抢沙发吧~