mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Unable to build for windows 32-bits #195
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PabloLilao on GitHub (Jul 11, 2018).
I followed the instructions in the getting started video choosing an Angular Template project.
I have my demo project and I'm able to run it with
dotnet electronize startand building it withdotnet electronize build /target winand the project builded runs fine.But when I try to build using
dotnet electronize build build /target custom win7-x86;win32 /electron-arch ia32I get the following error:Build Electron Application...
Unhandled Exception: System.AggregateException: One or more errors occurred. (Index was outside the bounds of the array.) ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ElectronNET.CLI.Commands.Actions.GetTargetPlatformInformation.Do(String desiredPlatform, String specifiedPlatfromFromCustom)
at ElectronNET.CLI.Commands.BuildCommand.b__13_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at ElectronNET.CLI.Program.Main(String[] args)
@PabloLilao commented on GitHub (Jul 11, 2018):
Just escape the semicolon if you are using powershell like this:
"dotnet electronize build build /target custom win7-x86`;win32 /electron-arch ia32"
@carlobonamico commented on GitHub (Nov 22, 2019):
I found this to be useful in determining which values you have to pass to
electronize build /custom...https://docs.microsoft.com/it-it/dotnet/core/rid-catalog
By looking at the electronize tool source code, you can see that the first value means the dotnet build Runtime Id, while hte second value represents electron builder architecture
I succeded in building a 32 bit version by means of
electronize.exe build /target custom win-x86;win /dotnet-configuration Debug /electron-arch ia32@yannisraft commented on GitHub (Jun 23, 2020):
Hi i am trying to build the application for the 32 bit version and i still receive the error
I am using the electron.NET CLI version 9.31.1 on a Windows 10 machine
I tried to build it using the following command:
electronize.exe build /target custom win-x86;win /dotnet-configuration Debug /electron-arch ia32@arun-chief commented on GitHub (Nov 1, 2020):
this method worked, i used finally
electronize.exe build /target custom "win-x86;win" /dotnet-configuration Debug /electron-arch ia32@arun-chief commented on GitHub (Nov 1, 2020):
This one worked for me 32 bit windows
electronize.exe build /target custom "win-x86;win" /dotnet-configuration Debug /electron-arch ia32@rjsgml5698 commented on GitHub (Sep 13, 2022):
Can I make this a single installer (.exe)?
@gpgpublickey commented on GitHub (Sep 13, 2022):
Short answer, no, you can try to use packers but is not a good idea, antivirus hates packers