signal-desktop/ts/scripts/after-pack.ts

16 lines
609 B
TypeScript
Raw Normal View History

2022-02-04 18:24:49 +00:00
// Copyright 2021-2022 Signal Messenger, LLC
2021-12-17 17:50:42 +00:00
// 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';
2022-02-04 18:24:49 +00:00
import { afterPack as copyPacks } from './copy-language-packs';
import { afterPack as pruneMacOSRelease } from './prune-macos-release';
2021-12-17 17:50:42 +00:00
export async function afterPack(context: AfterPackContext): Promise<void> {
await pruneMacOSRelease(context);
2021-12-17 17:50:42 +00:00
await mergeASARs(context);
await fuseElectron(context);
2022-02-04 18:24:49 +00:00
await copyPacks(context);
2021-12-17 17:50:42 +00:00
}