Skip to content

Commit

Permalink
Treat cscLink empty same as absent
Browse files Browse the repository at this point in the history
I think this is expected with env variables that empty string means disabled.

currently if set to empty string it crashes with:
Error: Env WIN_CSC_LINK is not correct, cannot resolve: D:\a\path\to\project not a file
  • Loading branch information
mifi committed Apr 25, 2024
1 parent 3ae3589 commit 53014ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/winPackager.ts
Expand Up @@ -63,7 +63,7 @@ export class WinPackager extends PlatformPackager<WindowsConfiguration> {
}

const cscLink = this.getCscLink("WIN_CSC_LINK")
if (cscLink == null) {
if (cscLink == null || cscLink === '') {
return Promise.resolve(null)
}

Expand Down

0 comments on commit 53014ef

Please sign in to comment.