Unable to create windows version build on macOS using -mw option.
See original GitHub issueDependencies
“electron”: “^3.0.6”, “electron-builder”: “^20.38.4”, “node” : 10.15.0 “vue”: “^2.3.3”, “vue-electron”: “^1.0.6”, “electron-updater”: “^4.0.4”,
Target
macOS and Windows
"mac": {
"target": [
"dmg",
"zip"
],
"icon": "icons/icon.icns",
"identity": "identity",
"artifactName": "Application.${ext}"
},
"publish": {
"provider": "generic",
"url": "https://www.test.com",
"publishAutoUpdate": true,
"channel": "latest"
},
"win": {
"target":["nsis"],
"icon": "icons/icon.ico",
"artifactName": "Application.${ext}",
"certificateSubjectName": "subject Name",
}
Requirnment
I am trying to create windows version build on macOS system using electron-builder -mw option.
Command to create build npm run electron-builder -mw
Issue
The above command is able to generate .dmg file but as it starts to build for windows it gives following error and terminates the operation.
packaging platform=win32 arch=x64 electron=3.0.13 appOutDir=build/win-unpacked
⨯ Get https://github.com/electron/electron/releases/download/v3.0.13/electron-v3.0.13-win32-x64.zip: proxyconnect tcp: dial tcp :0: connect: can't assign requested address
github.com/develar/app-builder/pkg/download.(*Downloader).follow.func1
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:167
github.com/develar/app-builder/pkg/download.(*Downloader).follow
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:200
github.com/develar/app-builder/pkg/download.(*Downloader).Download
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:75
github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).doDownload
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:191
github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).Download
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:171
github.com/develar/app-builder/pkg/electron.downloadElectron.func1.1
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:71
github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2
/Volumes/data/Documents/app-builder/pkg/util/async.go:67
runtime.goexit
/usr/local/Cellar/go/1.11.4/libexec/src/runtime/asm_amd64.s:1333
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top Results From Across the Web
Install Windows on your newer Mac using Boot Camp
Choose Apple menu > System Settings, click General in the sidebar, then click Software Update on the right. (You may need to scroll...
Read more >Windows SDK - Microsoft Developer
Use this SDK to build Universal Windows Platform (UWP) and Win32 applications for Windows 11, version 22H2 and previous Windows releases.
Read more >Bootcamp - No ISO Option - Apple StackExchange
Open Package content of Boot Camp Assistant app, backup Info.plist file somewhere, then open the old one with XCode. Edit file: Edit section's ......
Read more >How to Run Windows 10 on Mac Free with VirtualBox for Mac ...
How to Run Windows 10 on Mac with VirtualBox for Mac OS X · Open VirtualBox and click on the “New” button to...
Read more >Boot Camp Assistant not accepting Windows 10 .iso file
For me the solution was just to Unmount the windows 10 iso. If it's not working, I found another solution, you have to...
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
I added NO_PROXY=* (https://github.com/electron-userland/electron-builder/issues/2665) in the build command that resolved the current issue.
But now facing another issue related to code sign certificateSubjectName token (code sign via USB Token). I will create another ticket for the same if needed.
@ceharsh24 Thanks for your help.
Closing this ticket.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.