Fuse electron at build time

This commit is contained in:
Fedor Indutny 2021-12-17 18:50:42 +01:00 committed by GitHub
parent 770c80b9ee
commit 9e9e5274cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 33 deletions

11
ts/scripts/after-pack.ts Normal file
View file

@ -0,0 +1,11 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { AfterPackContext } from 'electron-builder';
import { afterPack as fuseElectron } from './fuse-electron';
import { afterPack as mergeASARs } from './merge-macos-asars';
export async function afterPack(context: AfterPackContext): Promise<void> {
await mergeASARs(context);
await fuseElectron(context);
}