Skip to content

Commit

Permalink
chore: remove unnecessary rename
Browse files Browse the repository at this point in the history
  • Loading branch information
georgexu99 committed Oct 6, 2022
1 parent 52ae62b commit fa16c36
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/maker/flatpak/src/MakerFlatpak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ export default class MakerFlatpak extends MakerBase<MakerFlatpakConfig> {

requiredExternalBinaries: string[] = ['flatpak-builder', 'eu-strip'];

/**
* \@malept/electron-installer-flatpak has the default branch as master
* to avoid upstream changes we manually change the default
*/
private setDefaultBranchAndBaseVersionToMain() {
if (this.config.options && !this.config.options?.branch) {
this.config.options.branch = 'main';
}

if (this.config.options && !this.config.options.baseVersion) {
this.config.options.baseVersion = 'main';
}
}

isSupportedOnCurrentPlatform(): boolean {
return this.isInstalled('@malept/electron-installer-flatpak');
}
Expand All @@ -49,8 +35,6 @@ export default class MakerFlatpak extends MakerBase<MakerFlatpakConfig> {
// eslint-disable-next-line global-require, import/no-unresolved, node/no-missing-require
const installer = require('@malept/electron-installer-flatpak');

this.setDefaultBranchAndBaseVersionToMain();

const arch = flatpakArch(targetArch);
const outDir = path.resolve(makeDir, 'flatpak', arch);

Expand Down

0 comments on commit fa16c36

Please sign in to comment.