Skip to content

Commit

Permalink
bump version to 1.9.10 and remove unused zenMacDestDir variable from …
Browse files Browse the repository at this point in the history
…package command
  • Loading branch information
mauro-balades committed Jan 23, 2025
1 parent 64ca9e9 commit 89b2c39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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.9.9",
"version": "1.9.10",
"description": "Simplifying building firefox forks!",
"main": "index.js",
"bin": {
Expand Down
11 changes: 4 additions & 7 deletions src/commands/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export const surferPackage = async () => {
)

const currentCWD = process.cwd()
const zenMacDestDir = join(currentCWD, 'zen-browser')

if (!process.env.SURFER_SIGNING_MODE) {
await dispatch(machPath, arguments_, ENGINE_DIR, true)
Expand Down Expand Up @@ -155,8 +154,7 @@ export const surferPackage = async () => {
const marPath = await createMarFile(
version,
channel,
brandingDetails.release.github,
zenMacDestDir
brandingDetails.release.github
)
dynamicConfig.set('marPath', marPath)

Expand All @@ -181,8 +179,7 @@ function getCurrentBrandName(): string {
async function createMarFile(
version: string,
channel: string,
github?: { repo: string },
zenMacDestDir?: string
github?: { repo: string }
): Promise<string> {
log.info(`Creating mar file...`)
let marBinary: string = windowsPathToUnix(
Expand All @@ -197,8 +194,8 @@ async function createMarFile(
// <obj dir>/dist/${binaryName}/${brandFullName}.app and on everything else,
// the contents of the folder <obj dir>/dist/${binaryName}
const binary =
(process as any).surferPlatform == 'darwin' && zenMacDestDir
? join(zenMacDestDir, `${getCurrentBrandName()}.app`)
(process as any).surferPlatform == 'darwin'
? join(OBJ_DIR, 'dist', config.binaryName, `${getCurrentBrandName()}.app`)
: join(OBJ_DIR, 'dist', config.binaryName)

const marPath = resolve(DIST_DIR, 'output.mar')
Expand Down

0 comments on commit 89b2c39

Please sign in to comment.