chore: Update package.json version to 1.0.24 and optimize Linux platform flags

This commit is contained in:
Mauro Balades 2024-07-22 09:36:57 +02:00
parent 730d3ff907
commit 38d69f118a
2 changed files with 24 additions and 11 deletions

View file

@ -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": {

View file

@ -65,16 +65,29 @@ async function unpackFirefoxSource(name: string): Promise<void> {
tarExec = 'gtar' tarExec = 'gtar'
} }
await execa( if (process.platform === 'win32') {
tarExec, tarExec = "7z";
[ await execa(
'--strip-components=1', tarExec,
'-xf', [
resolve(MELON_TMP_DIR, name), 'x',
'-C', resolve(MELON_TMP_DIR, name),
ENGINE_DIR, `-o${windowsPathToUnix(ENGINE_DIR)}`,
].filter(Boolean) as string[] '-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) { async function downloadFirefoxSource(version: string) {