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",
"version": "1.0.34",
"version": "1.0.35",
"description": "Simplifying building firefox forks!",
"main": "index.js",
"bin": {

View file

@ -78,7 +78,7 @@ export const FTL_STRING_LINE_REGEX =
export let BASH_PATH: string | undefined
// 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()
if (gitPath.includes('git.exe')) {
@ -96,7 +96,9 @@ if ((process as any).platform == 'win32') {
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}`)
} else {
log.error(