简体   繁体   English

电子窗安装程序太慢

[英]Electron windows installer too slow

我正在使用电子窗口安装程序: https : //github.com/electron/windows-installer,并且在Windows上运行安装程序时,确实需要很长时间(超过10分钟),这是否正常?

@danibuiza I have found that electron applications that include native modules (ones which require that you compile them with electron-rebuild .rebuild) take exceedingly long amounts of time to install, as compared with other apps. @danibuiza我发现,与其他应用程序相比,包含本机模块的电子应用程序(需要您使用electron-rebuild .rebuild对其进行编译的)的安装时间非常长。 This has less to do with the installer and more to do with the packaging of application. 这与安装程序无关,而与应用程序打包有关。 Since you can't package native modules into the electron blob app.asar (you must list your native packages in the unpackDir option of the asar configuration when doing the electron-packager), this means the entire tree structure of such packages must be used and installed as a collection of files. 由于您无法将本机模块打包到electronic blob app.asar (在执行电子打包程序时,必须在asar配置的unpackDir选项中列出您的本机软件包),这意味着必须使用此类软件包的整个树结构并作为文件集合安装。 This is often a large additional number of files in the electron application, as opposed to them all being compressed into the asar along with all other application components. 在电子应用程序中,这通常是大量额外的文件,而不是将它们与所有其他应用程序组件一起压缩到asar中。

In any case, its important to have your electron-packager option settings be as optimized as possible so that your installer will later have the most concise collection of assets as possible. 无论如何,最重要的是要使electron-packager选项设置尽可能优化,以使安装人员以后可以最简洁地收集资产。 In my opinion, this means properly using the asar and prune options when using electron-packager . 我认为,这意味着在使用electron-packager时正确使用asarprune选项。

Hopefully those suggestions will help with your resultant overall install time. 希望这些建议对您最终的整体安装时间有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为使用 Electron 创建的应用程序签名 Windows 安装程序 (.exe) - Signing a Windows installer (.exe) for application created using Electron Perl - 在 Windows 上解压缩 zip 文件太慢 - Perl - Uncompressing zip files on windows is too slow 与电子链接的msi安装程序 - Chained msi Installer with Electron 在Windows上Electron / Nw.js的启动时间很慢(2分钟!) - Electron / Nw.js slow startup time (2 minutes!) on Windows 安装 electron 应用程序太慢,因为需要安装到用户端 pc 的本机依赖项 - installing electron app is too slow because of native dependencies that need installing into user end pc Eclipse 4 用户界面慢。 CSS 引擎调用过于频繁 (Windows) - Eclipse 4 ui slow. CSS Engine called too often (Windows) mysql 查询在 windows 上太慢,但在 linux 上查询速度非常快 - mysql query is too slow on windows but very fast on linux 与MS SyncFrameWork 1.0的Windows Mobile 6.5.3同步太慢 - Windows Mobile 6.5.3 Syncronization with MS SyncFrameWork 1.0 too slow Qt 5.3中的Javascript Webkit QWebView速度太慢,并且在Windows上挂起了MainWindow - Javascript in Qt 5.3 Webkit QWebView is too slow, and hang the MainWindow on Windows XAMPP 在 Windows 上运行的 PHP 速度太慢了 100 倍 - PHP on Windows with XAMPP running 100 times too slow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM