Skip to content

Commit

Permalink
🚸 chore: Add Windows error to the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Dec 26, 2023
1 parent 5e674f8 commit 12fc7f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/core/src/cli/cliEntrypoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import path from 'node:path'
import chalk from 'chalk'
import { Command } from 'commander'
Expand Down Expand Up @@ -47,6 +48,18 @@ export const cliEntrypoint = async () => {
console.log('[DEBUG] Running with the following options:')
console.log({ cacheDir: walletSetupDir, ...flags, headless: Boolean(process.env.HEADLESS) ?? false }, '\n')

if (os.platform() === 'win32') {
console.log(
[
chalk.redBright('🚨 Sorry, Windows is currently not supported. Please use WSL instead! 🚨'),
chalk.gray(
'If you want to give it a crack over a hot coffee and add Windows support yourself, please get in touch with the team on Discord so we can offer some guidance! 😇'
)
].join('\n')
)
process.exit(1)
}

const compiledWalletSetupDirPath = await compileWalletSetupFunctions(walletSetupDir, flags.debug)

// TODO: We should be using `prepareExtension` function from the wallet itself!
Expand Down

0 comments on commit 12fc7f6

Please sign in to comment.