chore: Improve packaging process and update app copying logic

This commit is contained in:
mauro-balades 2024-09-05 21:53:03 +02:00
parent 7ae2a6b249
commit 8f4579dee7
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@zen-browser/surfer",
"version": "1.3.9",
"version": "1.3.10",
"description": "Simplifying building firefox forks!",
"main": "index.js",
"bin": {

View file

@ -93,7 +93,8 @@ export const surferPackage = async () => {
return;
}
await rmdirSync(join(currentCWD, `obj-${compatMode ? 'x86_64' : 'aarch64'}-apple-darwin/dist`), { recursive: true })
await dispatch('cp', ['-R', `/Volumes/${mountedPath}/Zen Browser.app`, `obj-${compatMode ? 'x86_64' : 'aarch64'}-apple-darwin/dist`], currentCWD, true)
log.info('Copying the app to the current working directory, into the dist folder')
await dispatch('cp', ['-R', `/Volumes/${mountedPath}/Zen Browser.app`, `obj-${compatMode ? 'x86_64' : 'aarch64'}-apple-darwin/dist`], ENGINE_DIR, true)
await dispatch('hdiutil', ['detach', `/Volumes/${mountedPath}`], currentCWD, true)
await dispatch(machPath, ['macos-sign', '--verbose',