From 8e729a1a57813d547da6d4604749b8f0d7d60366 Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Thu, 8 Aug 2019 08:07:56 -0700 Subject: [PATCH] fix(maker): allow Linux makers to run on non-Linux hosts if possible --- packages/maker/deb/src/MakerDeb.ts | 2 +- packages/maker/flatpak/src/MakerFlatpak.ts | 2 +- packages/maker/rpm/src/MakerRpm.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/maker/deb/src/MakerDeb.ts b/packages/maker/deb/src/MakerDeb.ts index e967e315fe..a86394e2be 100644 --- a/packages/maker/deb/src/MakerDeb.ts +++ b/packages/maker/deb/src/MakerDeb.ts @@ -20,7 +20,7 @@ export default class MakerDeb extends MakerBase { defaultPlatforms: ForgePlatform[] = ['linux']; isSupportedOnCurrentPlatform() { - return this.isInstalled('electron-installer-debian') && process.platform === 'linux'; + return this.isInstalled('electron-installer-debian'); } async make({ diff --git a/packages/maker/flatpak/src/MakerFlatpak.ts b/packages/maker/flatpak/src/MakerFlatpak.ts index b14d6e2c38..36420ba0df 100644 --- a/packages/maker/flatpak/src/MakerFlatpak.ts +++ b/packages/maker/flatpak/src/MakerFlatpak.ts @@ -22,7 +22,7 @@ export default class MakerFlatpak extends MakerBase { defaultPlatforms: ForgePlatform[] = ['linux']; isSupportedOnCurrentPlatform() { - return this.isInstalled('@malept/electron-installer-flatpak') && process.platform === 'linux'; + return this.isInstalled('@malept/electron-installer-flatpak'); } async make({ diff --git a/packages/maker/rpm/src/MakerRpm.ts b/packages/maker/rpm/src/MakerRpm.ts index 9480b50263..58ebd5e82b 100644 --- a/packages/maker/rpm/src/MakerRpm.ts +++ b/packages/maker/rpm/src/MakerRpm.ts @@ -20,7 +20,7 @@ export default class MakerRpm extends MakerBase { defaultPlatforms: ForgePlatform[] = ['linux']; isSupportedOnCurrentPlatform() { - return this.isInstalled('electron-installer-redhat') && process.platform === 'linux'; + return this.isInstalled('electron-installer-redhat'); } async make({