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
|
||||
hardenedRuntime: true
|
||||
gatekeeperAssess: false
|
||||
notarize:
|
||||
teamId: ${env.APPLE_TEAM_ID}
|
||||
icon: resources/icons/mac/icon.icns
|
||||
|
||||
dmg:
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ describe('pathDecoder', () => {
|
|||
|
||||
it('should prefer cwdHint over lossy decode for dashed project names', () => {
|
||||
// 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
|
||||
expect(
|
||||
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', () => {
|
||||
expect(extractProjectName('-Users-username-projectname', undefined)).toBe('projectname');
|
||||
expect(extractProjectName('-Users-username-projectname')).toBe('projectname');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue