After setting win32metadata, it doesn't add a Windows desktop shortcut when the user installs the app
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 641
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 30
Description
### Pre-flight checklist
- [X] I have read the [contribution documentation](https://github.com/electron-userland/electron-forge/blob/master/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 uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
### Electron Forge version
6.0.0-beta.61
### Electron version
16.0.5
### Operating system
windows 11 (22H2)
### Last known working Electron Forge version
6.0.0-beta.61
### Expected behavior
it can add a Windows desktop shortcut when the user installs the app
### Actual behavior
it doesn't add a Windows desktop shortcut when the user installs the app
### Steps to reproduce
- set `packagerConfig` like this:
```
"platform": "win32",
"name": "xxx",
"icon": "xx",
"appCopyright": "xx",
"iconUrl": "xxx",
"win32metadata": {
"requested-execution-level": "requireAdministrator"
}
```
### Additional information
`package.json`:
```
...
"config": {
"forge": {
"packagerConfig": {
"platform": "win32",
"name": "xxx",
"icon": "xx",
"appCopyright": "xxx",
"iconUrl": "xxx",
"win32metadata": {
"requested-execution-level": "requireAdministrator"
}
},
....
}
```
Use the above configuration, it doesn't add a Windows desktop shortcut when the user installs the app. When `win32metadata` is removed, it will be normal
Contributor guide
Assessment
This issue has not been assessed yet.