mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 01:10:03 +02:00
chore: Update package.json version to 1.0.35 and fix Windows platform check
This commit is contained in:
parent
ed9b6a7bc9
commit
213b688590
2 changed files with 5 additions and 3 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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,7 +96,9 @@ 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 {
|
||||||
log.error(
|
log.error(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue