Prevent downloading the daemon if it's not necessary #1798
1 changed files with 0 additions and 2 deletions
|
@ -12,11 +12,9 @@ const downloadDaemon = require('./downloadDaemon');
|
||||||
module.exports = context => {
|
module.exports = context => {
|
||||||
|
|
||||||
let currentPlatform = os.platform();
|
let currentPlatform = os.platform();
|
||||||
if (currentPlatform === 'darwin') currentPlatform = 'macoss';
|
|
||||||
if (currentPlatform === 'win32') currentPlatform = 'windows';
|
if (currentPlatform === 'win32') currentPlatform = 'windows';
|
||||||
|
|
||||||
let buildingPlatformTarget = context.platform.toString();
|
let buildingPlatformTarget = context.platform.toString();
|
||||||
if (buildingPlatformTarget === 'mac') buildingPlatformTarget = 'macos';
|
|
||||||
|
|
||||||
if (buildingPlatformTarget !== currentPlatform) {
|
if (buildingPlatformTarget !== currentPlatform) {
|
||||||
console.log(
|
console.log(
|
||||||
|
|
Loading…
Add table
Reference in a new issue