我无法在Windows上使用代码签名工作。我在package.json中有以下内容:
"distwin": "ionic-app-scripts build && set CSC_LINK=C:\\Data\\Development\\Projects\\DocsOnTapV2\\build\\dotv2codesign.pfx && set CSC_KEY_PASSWORD=NotTelling && build"
但是当我运行它时,我总是会收到以下错误:
Error: C:\Data\Development\Projects\DocsOnTapV2\build\dotv2codesign.pfx doesn't exist
at C:\Data\Development\Projects\DocsOnTapV2\node_modules\electron-builder\src\codeSign.ts:45:11
at next (native)
at runCallback (timers.js:651:20)
at tryOnImmediate (timers.js:624:5)
at processImmediate [as _immediateCallback] (timers.js:596:5)
From previous event:
at downloadCertificate (C:\Data\Development\Projects\DocsOnTapV2\node_modules\electron-builder\out\codeSign.js:49:21)
at Lazy.WinPackager.cscInfo.Lazy (C:\Data\Development\Projects\DocsOnTapV2\node_modules\electron-builder\src\winPackager.ts:42:9)
at Lazy.get value [as value] (C:\Data\Development\Projects\DocsOnTapV2\node_modules\electron-builder-util\src\util.ts:248:24)
at C:\Data\Development\Projects\DocsOnTapV2\node_modules\electron-builder\src\winPackager.ts:168:32
at next (native)
它告诉我'pfx'文件不存在。但确实如此!我已经尝试过CSC_LINK变量的各种变体而没有成功。我需要做些什么才能让电子制造商找到'pfx'文件?