squirrel distributables built with on linux extremely slow
See original GitHub issueI have a problem regarding the build of my electron application. I try to build my apps with Jenkins so this is installed on a Linux system with mono. To build the application takes 50 to 65 minutes. That is not really usable.
I have read some things with asar and set that to “false”.
Making for the following targets:
⠋ Making for target: squirrel - On platform: win32 - For arch: x64 electron-windows-installer:main Using Mono: 'mono' +0ms
electron-windows-installer:main Using Wine: 'wine' +1ms
electron-windows-installer:spawn Spawning wine /var/lib/jenkins/workspace/xxx/node_modules/electron-winstaller/vendor/rcedit.exe /var/lib/jenkins/workspace/Ottec-GPU-Updater/out/GPU-Updater-win32-x64/Update.exe --set-icon ./src/assets/icons/logo.ico +5ms
⠋ Making for target: squirrel - On platform: win32 - For arch: x64 electron-windows-installer:fs-utils Error: ENOENT: no such file or directory, stat '/var/lib/jenkins/workspace/Ottec-GPU-Updater/out/GPU-Updater-win32-x64/resources/app.asar' +5s
electron-windows-installer:main Created NuSpec file:
electron-windows-installer:main <?xml version="1.0" encoding="utf-8"?>
electron-windows-installer:main <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
electron-windows-installer:main <metadata>
electron-windows-installer:main <id>xxx_gpu_updater</id>
electron-windows-installer:main <title>GPU-Updater</title>
electron-windows-installer:main <version>1.0.0</version>
electron-windows-installer:main <authors>rene.hoehle</authors>
electron-windows-installer:main <owners>rene.hoehle</owners>
electron-windows-installer:main <iconUrl>https://raw.githubusercontent.com/atom/electron/master/atom/browser/resources/win/atom.ico</iconUrl>
electron-windows-installer:main <requireLicenseAcceptance>false</requireLicenseAcceptance>
electron-windows-installer:main <description>GPU-Updater</description>
electron-windows-installer:main <copyright>Copyright © 2019 rene.hoehle</copyright>
electron-windows-installer:main </metadata>
electron-windows-installer:main <files>
electron-windows-installer:main <file src="locales/**" target="lib/net45/locales" />
electron-windows-installer:main <file src="resources/**" target="lib/net45/resources" />
electron-windows-installer:main <file src="*.bin" target="lib/net45" />
electron-windows-installer:main <file src="*.dll" target="lib/net45" />
electron-windows-installer:main <file src="*.pak" target="lib/net45" />
electron-windows-installer:main <file src="*.exe.sig" target="lib/net45" />
electron-windows-installer:main <file src="Update.exe" target="lib/net45/squirrel.exe" />
electron-windows-installer:main <file src="icudtl.dat" target="lib/net45/icudtl.dat" />
electron-windows-installer:main <file src="LICENSE" target="lib/net45/LICENSE" />
electron-windows-installer:main <file src="GPU-Updater.exe" target="lib/net45/GPU-Updater.exe" />
electron-windows-installer:main </files>
electron-windows-installer:main </package>
electron-windows-installer:main +4ms
⠙ Making for target: squirrel - On platform: win32 - For arch: x64 electron-windows-installer:spawn Spawning mono /var/lib/jenkins/workspace/xxx-GPU-Updater/node_modules/electron-winstaller/vendor/nuget.exe pack /tmp/si-119329-13052-151yqcz.plkhh/ottec_gpu_updater.nuspec -BasePath /var/lib/jenkins/workspace/Ottec-GPU-Updater/out/GPU-Updater-win32-x64 -OutputDirectory /tmp/si-119329-13052-151yqcz.plkhh -NoDefaultExcludes +3ms
⠧ Making for target: squirrel - On platform: win32 - For arch: x64
On that point it stuck now for 60 minutes. That is not really good and not really usable.
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"make:win": "electron-forge make --arch=x64 --platform=win32 -d",
"publish": "electron-forge publish"
},
And my WinstallerConfig
"electronWinstallerConfig": {
"name": "xxx_gpu_updater",
"setupIcon": "./src/assets/icons/logo.ico",
"icon": "./src/assets/icons/logo.ico",
"setupExe": "xxx-Updater-Installer.exe",
"exe": "xxx-Updater.exe",
"description": "xxx-Updater",
"noMsi": "false",
"asar": "false"
},
Mono JIT compiler version 5.20.1.19 (tarball Thu Apr 11 09:09:21 UTC 2019) Wine version: wine-1.6.2 My system is up to date
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Electron Forge stuck on squirrel - Stack Overflow
A quick solution is to add the parameter "asar": true to you packagerConfig 1. But unless you want to package the non-compiled files, ......
Read more >Squirrel.Windows - Electron Forge
Create a Windows installer for your Electron app using Electron Forge. ... Squirrel.Windows is a no-prompt, no-hassle, no-admin method of installing Windows ...
Read more >Embedded Scripting Languages
Squirrel is a embedded scripting language, similar to Lua, but with C-like syntax, designed to be embedded in larger C or C++ applications ......
Read more >TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi: 树 ...
A guide showing how to train TensorFlow Lite object detection models and run them on Android, the Raspberry Pi, and more! Introduction. TensorFlow...
Read more >Linux Too Slow? Here's How to Speed it Up Again - YouTube
The thing is, there's always an explanation, so we've put together a list of reasons why your Linux system may be slowing down, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No one an idea how to make it a bit fast? We need 1 hour for a build.
Same issue building on OSX, even with asar enabled, as I have a large amount of additional binaries/libs I need to include with the app. A full build takes an hour and a half 😦