bump version to 1.9.19 and update branding display name variable; remove obsolete test files
Some checks failed
CI / general (push) Has been cancelled

This commit is contained in:
mr. M 2025-02-18 12:14:10 +01:00
parent 414c9c0d94
commit 7e928eb3cc
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
7 changed files with 3 additions and 56 deletions

View file

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

View file

@ -1,16 +0,0 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
import { getPatchName } from './export-file'
describe('getPatchName', () => {
it('works on root files', () => {
const name = getPatchName('foo.js')
expect(name).toBe('foo-js.patch')
})
it('works on embedded files', () => {
const name = getPatchName('foo/bar.js')
expect(name).toBe('bar-js.patch')
})
})

View file

@ -162,7 +162,7 @@ function getCurrentBrandName(): string {
return 'Nightly'
}
return config.brands[brand].brandFullName
return config.brands[brand].brandShortName
}
async function createMarFile(

View file

@ -1,21 +0,0 @@
import { shouldSkipOptionalCopy } from './setup-project'
describe('shouldSkipOptionalCopy', () => {
it('Returns true if the file is not optional', () => {
expect(
shouldSkipOptionalCopy('something/somethingelse', ["doesn't matter"])
).toBe(true)
})
it('Returns true if the file is not in the array', () => {
expect(
shouldSkipOptionalCopy('something/somethingelse.optional', ['not_here'])
).toBe(true)
})
it('Returns false if the file is optional and in the array', () => {
expect(
shouldSkipOptionalCopy('something/somethingelse.optional', ['something'])
).toBe(false)
})
})

View file

@ -1,15 +0,0 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
import { validProducts } from './config'
import { getLatestFF } from './version'
const firefoxVersions = validProducts
describe('getLatestFF', () => {
for (const firefoxVersion of firefoxVersions) {
it(`returns the latest ${firefoxVersion} version`, async () =>
expect(await getLatestFF(firefoxVersion)).toBeTruthy())
}
})

View file

@ -2,7 +2,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOZ_APP_DISPLAYNAME="${brandFullName}"
MOZ_APP_DISPLAYNAME="${brandShortName}"
if test "$DEVELOPER_OPTIONS"; then
if test "$MOZ_DEBUG"; then

View file

@ -3,7 +3,6 @@ export MOZ_USER_DIR="${name}"
export MOZ_APP_VENDOR="${vendor}"
export MOZ_APP_BASENAME=${binName}
export MOZ_APP_PROFILE=${binName}
export MOZ_APP_DISPLAYNAME="${name}"
export MOZ_MACBUNDLE_ID=${appId}
export MOZ_DISTRIBUTION_ID=${appId}