Remove win-ca/pem before publish & catch inject error

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-07-12 15:58:59 -04:00
1 parent d0d6233869
commit afc06ab76d
2 files changed
+9

No files matched your search

+5
View File
@@ -51,6 +51,11 @@ jobs:
- script: make node_modules
displayName: Install dependencies
- base: |
rm -rf node_modules/win-ca/pem
displayName: Remove win-ca/pem
# https://github.com/ukoloff/win-ca#clear-pem-folder-on-publish
- script: make build-npm
displayName: Generate npm package
+4
View File
@@ -33,5 +33,9 @@ if (isMac) {
}
if (isWindows) {
try {
winca.inject("+"); // see: https://github.com/ukoloff/win-ca#caveats
} catch (error) {
logger.error(`[CA]: failed to force load: ${error}`);
}
}