Skip to content

Commit

Permalink
chore: Update package.json version to 1.0.38 and optimize Windows pla…
Browse files Browse the repository at this point in the history
…tform flags
  • Loading branch information
mauro-balades committed Jul 23, 2024
1 parent b61c3df commit 94706db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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.37",
"version": "1.0.38",
"description": "Simplifying building firefox forks!",
"main": "index.js",
"bin": {
Expand Down
6 changes: 6 additions & 0 deletions src/commands/download/firefox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ async function unpackFirefoxSource(name: string): Promise<void> {
}

log.info(`Unpacking ${resolve(MELON_TMP_DIR, name)} to ${ENGINE_DIR}`)
if (process.platform === 'win32') {
await execa('7z', ['e', resolve(MELON_TMP_DIR, name)]);
await execa('7z', ['x', resolve(MELON_TMP_DIR, name.replace('.tar.xz', '.tar')), '-o' + ENGINE_DIR]);
return
}

await execa(
tarExec,
[
Expand Down

0 comments on commit 94706db

Please sign in to comment.