Repository: electron/electron-packager (js)

Issue:
-all should not attempt to build Linux/ia32 since it fails to find required files
### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [ X] I have read the [contribution documentation](https://github.com/electron/electron-packager/blob/main/CONTRIBUTING.md) for this project.
* [X ] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project follows, as appropriate.
* X[ ] I have searched the issue tracker for a bug that matches the one I want to file, without success.

### Issue Details

* **Electron Packager Version:**
Electron Packager 17.1.1
Node v18.9.0
Host Operating system: win32 10.0.22621 (x64)
* **Electron Version:**
v21.3.0
* **Operating System:**
Host Operating system: win32 10.0.22621 (x64)* 
**Last Known Working Electron Packager version:**:
  * <!-- (if applicable) e.g. 11.0.0 -->

### Expected Behavior
Since Linux/ia32 is deprecated for the version of Electron electron-package should not attempt to build it when --all is specified

### Actual Behavior
electron-packager fails with 404 error

C:\Development\YADAMU>npx electron-packager ./src yadamu --all  --out=c:\dist --overwrite
Official Linux/ia32 support is deprecated.
For more info: https://electronjs.org/blog/linux-32bit-support
Packaging app for platform darwin universal using electron v21.3.0 - Building x64 and arm64 slices now
Packaging app for platform mas universal using electron v21.3.0 - Building x64 and arm64 slices now
Packaging app for platform win32 x64 using electron v21.3.0
Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v21.3.0/electron-v21.3.0-linux-ia32.zip


### To Reproduce
<!--
Your best chance of getting this bug looked at quickly is to provide a MINIMAL REPOSITORY that can be cloned and run. Also include:
* if you are using the `electron-packager` CLI: the command line arguments you are passing
* if you are using the API the parameters are you passing to the `packager()` function
-->

### Additional Information
<!--
Add any other context about the problem here.

For example:
* Console output when you run electron-packager with the environment variable `DEBUG=electron-packager`. Please include the stack trace if one exists.
-->


Pull request:
fix(targets): linux/ia32 official support was removed in Electron 19
* [x] I have read the [contribution documentation](https://github.com/electron/electron-packager/blob/main/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project follows, as appropriate.
* [x] The changes have sufficient test coverage (if applicable).
* [ ] The testsuite passes successfully on my local machine (if applicable).

**Summarize your changes:**

Compare the assets of [19.0.0-alpha.5](https://github.com/electron/electron/releases/tag/v19.0.0-alpha.5) with [19.0.0-beta.1](https://github.com/electron/electron/releases/tag/v19.0.0-beta.1).

Fixes #1447 

Patch:
diff --git a/src/targets.js b/src/targets.js
index f896aa4..aba6cc0 100644
--- a/src/targets.js
+++ b/src/targets.js
@@ -20,6 +20,7 @@ const buildVersions = {
   },
   linux: {
     arm64: '>= 1.8.0',
+    ia32: '<19.0.0-beta.1',
     mips64el: '^1.8.2-beta.5'
   },
   mas: {


Test patch:
diff --git a/test/targets.js b/test/targets.js
index b88f21b..7152f75 100644
--- a/test/targets.js
+++ b/test/targets.js
@@ -106,6 +106,10 @@ test('platform=linux and arch=arm64 with a supported official Electron version',
 test('platform=linux and arch=arm64 with a supported official Electron version (11.0.0-beta.22)', testMultiTarget({ arch: 'arm64', platform: 'linux', electronVersion: '11.0.0-beta.22' }, 1, 'Package should be generated for linux/arm64'))
 test('platform=linux and arch=arm64 with an unsupported official Electron version', testMultiTarget({ arch: 'arm64', platform: 'linux' }, 0, 'Package should not be generated for linux/arm64'))
 
+test('platform=linux and arch=ia32 with a supported official Electron version', testMultiTarget({ arch: 'ia32', platform: 'linux', electronVersion: '10.0.0' }, 1, 'Package should be generated for linux/ia32'))
+test('platform=linux and arch=ia32 with an unsupported official Electron version (19.0.0-beta.1)', testMultiTarget({ arch: 'ia32', platform: 'linux', electronVersion: '19.0.0-beta.1' }, 0, 'Package should not be generated for linux/ia32'))
+test('platform=linux and arch=ia32 with an unsupported official Electron version', testMultiTarget({ arch: 'ia32', platform: 'linux', electronVersion: '20.0.0' }, 0, 'Package should not be generated for linux/ia32'))
+
 test('platform=linux and arch=mips64el with a supported official Electron version', testMultiTarget({ arch: 'mips64el', platform: 'linux', electronVersion: '1.8.2-beta.5' }, 1, 'Package should be generated for mips64el'))
 test('platform=linux and arch=mips64el with an unsupported official Electron version', testMultiTarget({ arch: 'mips64el', platform: 'linux' }, 0, 'Package should not be generated for linux/mips64el'))
 test('platform=linux and arch=mips64el with an unsupported official Electron version (2.0.0)', testMultiTarget({ arch: 'mips64el', platform: 'linux', electronVersion: '2.0.0' }, 0, 'Package should not be generated for linux/mips64el'))