mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 09:20:01 +02:00
chore: Update package.json version to 1.0.24 and optimize Linux platform flags
This commit is contained in:
parent
730d3ff907
commit
38d69f118a
2 changed files with 24 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@zen-browser/surfer",
|
"name": "@zen-browser/surfer",
|
||||||
"version": "1.0.23",
|
"version": "1.0.24",
|
||||||
"description": "Simplifying building firefox forks!",
|
"description": "Simplifying building firefox forks!",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -65,6 +65,18 @@ async function unpackFirefoxSource(name: string): Promise<void> {
|
||||||
tarExec = 'gtar'
|
tarExec = 'gtar'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
tarExec = "7z";
|
||||||
|
await execa(
|
||||||
|
tarExec,
|
||||||
|
[
|
||||||
|
'x',
|
||||||
|
resolve(MELON_TMP_DIR, name),
|
||||||
|
`-o${windowsPathToUnix(ENGINE_DIR)}`,
|
||||||
|
'-y',
|
||||||
|
].filter(Boolean) as string[]
|
||||||
|
)
|
||||||
|
} else {
|
||||||
await execa(
|
await execa(
|
||||||
tarExec,
|
tarExec,
|
||||||
[
|
[
|
||||||
|
@ -75,6 +87,7 @@ async function unpackFirefoxSource(name: string): Promise<void> {
|
||||||
ENGINE_DIR,
|
ENGINE_DIR,
|
||||||
].filter(Boolean) as string[]
|
].filter(Boolean) as string[]
|
||||||
)
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function downloadFirefoxSource(version: string) {
|
async function downloadFirefoxSource(version: string) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue