docs: fix formatting in asar integrity (#48431)

This commit is contained in:
Erick Zhao
2025-10-01 22:27:28 -07:00
committed by GitHub
parent 61a7303531
commit b40a4befd4

View File

@@ -64,13 +64,10 @@ flipFuses(
) )
``` ```
:::tip Fuses in Electron Forge > [!TIP]
> With Electron Forge, you can configure your app's fuses with
With Electron Forge, you can configure your app's fuses with > [@electron-forge/plugin-fuses](https://www.electronforge.io/config/plugins/fuses)
[@electron-forge/plugin-fuses](https://www.electronforge.io/config/plugins/fuses) > in your Forge configuration file.
in your Forge configuration file.
:::
## Providing the header hash ## Providing the header hash
@@ -109,7 +106,7 @@ Valid `algorithm` values are currently `SHA256` only. The `hash` is a hash of th
The `@electron/asar` package exposes a `getRawHeader` method whose result can then be hashed to generate this value The `@electron/asar` package exposes a `getRawHeader` method whose result can then be hashed to generate this value
(e.g. using the [`node:crypto`](https://nodejs.org/api/crypto.html) module). (e.g. using the [`node:crypto`](https://nodejs.org/api/crypto.html) module).
### Windows #### Windows
When packaging for Windows, you must populate a valid [resource](https://learn.microsoft.com/en-us/windows/win32/menurc/resources) When packaging for Windows, you must populate a valid [resource](https://learn.microsoft.com/en-us/windows/win32/menurc/resources)
entry of type `Integrity` and name `ElectronAsar`. The value of this resource should be a JSON encoded dictionary entry of type `Integrity` and name `ElectronAsar`. The value of this resource should be a JSON encoded dictionary
@@ -125,9 +122,6 @@ in the form included below:
] ]
``` ```
:::info > [!NOTE]
> For an implementation example, see [`src/resedit.ts`](https://github.com/electron/packager/blob/main/src/resedit.ts)
For an implementation example, see [`src/resedit.ts`](https://github.com/electron/packager/blob/main/src/resedit.ts) > in the Electron Packager code.
in the Electron Packager code.
:::