chore: Update package.json version to 1.0.35 and fix Windows platform check

This commit is contained in:
Mauro Balades 2024-07-22 12:48:00 +02:00
parent ed9b6a7bc9
commit 213b688590
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "@zen-browser/surfer", "name": "@zen-browser/surfer",
"version": "1.0.34", "version": "1.0.35",
"description": "Simplifying building firefox forks!", "description": "Simplifying building firefox forks!",
"main": "index.js", "main": "index.js",
"bin": { "bin": {

View file

@ -78,7 +78,7 @@ export const FTL_STRING_LINE_REGEX =
export let BASH_PATH: string | undefined export let BASH_PATH: string | undefined
// All windows specific code should be located inside of this if statement // All windows specific code should be located inside of this if statement
if ((process as any).platform == 'win32') { if (process.platform == 'win32') {
const gitPath = execa.sync('where.exe git.exe').stdout.toString() const gitPath = execa.sync('where.exe git.exe').stdout.toString()
if (gitPath.includes('git.exe')) { if (gitPath.includes('git.exe')) {
@ -96,6 +96,8 @@ if ((process as any).platform == 'win32') {
log.error('Could not find bash, aborting') log.error('Could not find bash, aborting')
} }
} }
// Replace .exe with .EXE
BASH_PATH = BASH_PATH.replace(/\.exe$/, '.EXE')
log.debug(`Found bash at ${BASH_PATH}`) log.debug(`Found bash at ${BASH_PATH}`)
} else { } else {