Electron Forge packaging configuration not working
I am trying to package my application with using the electron-forge package
following configuration:
"config": {
"forge": {
"make_targets": {
"linux": [
"deb"
],
"win32": [
"squirrel"
]
},
"electronPackagerConfig": {
"asar": false,
"dir": "./src",
"platform": [
"linux",
"win32"
],
"arch": [
"ia32",
"x64"
],
"ignore": [
".idea"
]
}
}
}
The version electron-forge
I am using is 3.0.1.
Only values asar
and are ignore
recognized, and dir
, platform
and are arch
ignored. I see no error and really appreciate help, hint or link to any working example.
Update:
It has since been suggested here to use the command line to provide these options.
While
electron-forge package --arch=ia32,x64 --platform=win32,linux
makes this app for all specified systems, although the output looks like this:
✔ Checking your system
✔ Preparing to Package Application for arch: ia32,x64
✔ Compiling Application
✔ Preparing native dependencies
✔ Packaging Application
✔ Preparing to Package Application for arch: x64
✔ Compiling Application
✔ Preparing native dependencies
✔ Packaging Application
✔ Preparing to Package Application for arch: armv7l <-- ???
✔ Compiling Application
✔ Preparing native dependencies
✔ Packaging Application
✔ Preparing to Package Application for arch: x64
✔ Compiling Application
✔ Preparing native dependencies
✔ Packaging Application
It looks like it doesn't really need to package the app for architecture armv7l
as it says there, I think this is just a bug with the console output, the results in the output directory look good.
Anyway .. providing packaging options via the command line does not solve my original problem, because I still cannot specify an option dir
for electron-packer
that way. So, while the documentation for electronPackagerConfig
assumes that all parameters for electron-packer
can be set using this config object:
This config object provides parameters directly to the e-package, the tool we use to package your application behind the scenes.
And although it electron-forge package --help
says that I can set the current working directory after the parameters:
Usage: electron-forge-package [options] [cwd]
This is not actually the case, it just sets the directory out
where everything is written.
I still stick with it. Is there a way to provide the option dir
via electron-forge
? Otherwise, my suggestion to the developers electron-forge
was to implement the config for this in such a way that my initial config from above would work, because I believe this is an intuitive way of setting these parameters using the command line for Perhaps overriding them might be an option ...
source to share
No one has answered this question yet
Check out similar questions: