Update electron-builder configuration for macOS notarization and fix pathDecoder tests
- Added notarization team ID configuration for macOS builds. - Corrected expected output in pathDecoder tests to reflect accurate project name extraction.
This commit is contained in:
parent
a8abe52eb2
commit
af9f559a94
2 changed files with 4 additions and 2 deletions
|
|
@ -21,6 +21,8 @@ mac:
|
||||||
- zip
|
- zip
|
||||||
hardenedRuntime: true
|
hardenedRuntime: true
|
||||||
gatekeeperAssess: false
|
gatekeeperAssess: false
|
||||||
|
notarize:
|
||||||
|
teamId: ${env.APPLE_TEAM_ID}
|
||||||
icon: resources/icons/mac/icon.icns
|
icon: resources/icons/mac/icon.icns
|
||||||
|
|
||||||
dmg:
|
dmg:
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ describe('pathDecoder', () => {
|
||||||
|
|
||||||
it('should prefer cwdHint over lossy decode for dashed project names', () => {
|
it('should prefer cwdHint over lossy decode for dashed project names', () => {
|
||||||
// Without cwdHint, dashes are decoded as slashes (lossy)
|
// Without cwdHint, dashes are decoded as slashes (lossy)
|
||||||
expect(extractProjectName('-Users-name-claude-devtools')).toBe('context');
|
expect(extractProjectName('-Users-name-claude-devtools')).toBe('devtools');
|
||||||
// With cwdHint, the actual project name is preserved
|
// With cwdHint, the actual project name is preserved
|
||||||
expect(
|
expect(
|
||||||
extractProjectName('-Users-name-claude-devtools', '/Users/name/claude-devtools')
|
extractProjectName('-Users-name-claude-devtools', '/Users/name/claude-devtools')
|
||||||
|
|
@ -108,7 +108,7 @@ describe('pathDecoder', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should fall back to decoded name when cwdHint is undefined', () => {
|
it('should fall back to decoded name when cwdHint is undefined', () => {
|
||||||
expect(extractProjectName('-Users-username-projectname', undefined)).toBe('projectname');
|
expect(extractProjectName('-Users-username-projectname')).toBe('projectname');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue