LoginSignup
0
0

More than 3 years have passed since last update.

electron-builderでCSC_LINKに適用したBASE64エンコード済みの証明書が使えない場合の対処

Last updated at Posted at 2020-05-11

目的

BASE64変換したコードサイニング証明書を利用して、
electron-builderでビルドしたElectronアプリをサイニングしようとした。
https://www.electron.build/code-signing

バージョン情報

electron-builder: 22.6.0

発生した現象

CSC_LINK 定数にBASE64文字列を指定しているにも関わらずURLと判定されてエラーになる。
CSC_LINK をWindows向けビルドに利用しているため WIN_CSC_LINK と表示されている

InvalidConfigurationError: Env WIN_CSC_LINK is not correct, cannot resolve: *** doesn't exist

解決方法

  • BASE64文字列から改行コードを除去する(ワンライナーにする)
  • BASE64文字列の末尾に「=」を付ける

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0