Skip to content

Commit

Permalink
Support WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Jun 15, 2021
1 parent 5e02dbd commit f6ef2bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/api/core/src/api/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,18 @@ export default async ({
throw new Error(`Please set your application's 'version' in '${dir}/package.json'.`);
}

const platform = process.env.npm_config_platform || process.platform;
const arch = process.env.npm_config_arch || process.arch;

await rebuild(
dir,
await getElectronVersion(dir, packageJSON),
process.platform as ForgePlatform,
process.arch as ForgeArch,
platform as ForgePlatform,
arch as ForgeArch,
forgeConfig.electronRebuildConfig,
);

await runHook(forgeConfig, 'generateAssets', process.platform, process.arch);
await runHook(forgeConfig, 'generateAssets', platform, arch);

let lastSpawned: ElectronProcess | null = null;

Expand Down

0 comments on commit f6ef2bd

Please sign in to comment.