Skip to content

Commit

Permalink
cleanup types more
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqkancharla committed Nov 16, 2024
1 parent 7814699 commit ecdb212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/maker/dmg/src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ export interface AdditionalDMGOptions {
'code-sign'?: CodeSignOptions;
}

export type MakerDMGConfig = Omit<ElectronInstallerDMGOptions, 'name' | 'appPath'> & { name?: string };
export type MakerDMGConfig = Omit<ElectronInstallerDMGOptions, 'name' | 'appPath' | 'out'> & { name?: string };
4 changes: 3 additions & 1 deletion packages/maker/dmg/src/MakerDMG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import fs from 'fs-extra';

import { MakerDMGConfig } from './Config';

import type { ElectronInstallerDMGOptions } from 'electron-installer-dmg';

export default class MakerDMG extends MakerBase<MakerDMGConfig> {
name = 'dmg';

Expand All @@ -22,7 +24,7 @@ export default class MakerDMG extends MakerBase<MakerDMGConfig> {
const forgeDefaultOutPath = path.resolve(makeDir, `${appName}-${packageJSON.version}-${targetArch}.dmg`);

await this.ensureFile(outPath);
const dmgConfig = {
const dmgConfig: ElectronInstallerDMGOptions = {
overwrite: true,
name: appName,
...this.config,
Expand Down

0 comments on commit ecdb212

Please sign in to comment.