Skip to content

Commit

Permalink
chore: Update package.json version to 1.0.24 and optimize Linux platf…
Browse files Browse the repository at this point in the history
…orm flags
  • Loading branch information
mauro-balades committed Jul 22, 2024
1 parent 730d3ff commit 38d69f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zen-browser/surfer",
"version": "1.0.23",
"version": "1.0.24",
"description": "Simplifying building firefox forks!",
"main": "index.js",
"bin": {
Expand Down
33 changes: 23 additions & 10 deletions src/commands/download/firefox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,29 @@ async function unpackFirefoxSource(name: string): Promise<void> {
tarExec = 'gtar'
}

await execa(
tarExec,
[
'--strip-components=1',
'-xf',
resolve(MELON_TMP_DIR, name),
'-C',
ENGINE_DIR,
].filter(Boolean) as string[]
)
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(
tarExec,
[
'--strip-components=1',
'-xf',
resolve(MELON_TMP_DIR, name),
'-C',
ENGINE_DIR,
].filter(Boolean) as string[]
)
}
}

async function downloadFirefoxSource(version: string) {
Expand Down

0 comments on commit 38d69f1

Please sign in to comment.