forked from VOICEVOX/voicevox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[project-s] mainブランチを追従 (VOICEVOX#1677)
## 内容 久しぶりにmainブランチに追従します。 大きな変更は無いはずですが、いくつか便利な機能が追加されてるはずです。 * 開発環境でconfig.jsonの読み込みに失敗した場合に、config.jsonを消して起動を続行できるダイアログを表示 * いろんなbranchを行き来する人にとても便利 * `=== undefined`や`=== null`がwarningに * 危ないので・・・ VOICEVOX#1513 ## 関連 Issue - VOICEVOX/voicevox_project#15 ## その他 `package-lock.json`がコンフリクトしました。 mainブランチ側の`package-lock.json`を持ってくる→`npm i`→できた`package-lock.json`をaddしました
- Loading branch information
Showing
105 changed files
with
9,101 additions
and
10,168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# !!! コードサイニング証明書を取り扱うので取り扱い注意 !!! | ||
|
||
# eSignerCKAで読み込んだコードサイニング証明書を破棄する | ||
|
||
set -eu | ||
|
||
if [ ! -v THUMBPRINT_PATH ]; then # THUMBPRINTの出力先 | ||
echo "THUMBPRINT_PATHが未定義です" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -v ESIGNERCKA_INSTALL_DIR ]; then # eSignerCKAのインストール先 | ||
ESIGNERCKA_INSTALL_DIR='..\eSignerCKA' | ||
fi | ||
|
||
# 証明書を破棄 | ||
powershell "& '$ESIGNERCKA_INSTALL_DIR\eSignerCKATool.exe' unload" | ||
|
||
# THUMBPRINTを削除 | ||
rm "$THUMBPRINT_PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# !!! コードサイニング証明書を取り扱うので取り扱い注意 !!! | ||
|
||
# eSignerCKAを使ってコードサイニング証明書を読み込む | ||
# electronから利用するためにTHUMBPRINTとsigntoolのパスを出力する | ||
|
||
set -eu | ||
|
||
if [ ! -v ESIGNERCKA_USERNAME ]; then # eSignerCKAのユーザー名 | ||
echo "ESIGNERCKA_USERNAMEが未定義です" | ||
exit 1 | ||
fi | ||
if [ ! -v ESIGNERCKA_PASSWORD ]; then # eSignerCKAのパスワード | ||
echo "ESIGNERCKA_PASSWORDが未定義です" | ||
exit 1 | ||
fi | ||
if [ ! -v ESIGNERCKA_TOTP_SECRET ]; then # eSignerCKAのTOTP Secret | ||
echo "ESIGNERCKA_TOTP_SECRETが未定義です" | ||
exit 1 | ||
fi | ||
if [ ! -v THUMBPRINT_PATH ]; then # THUMBPRINTの出力先 | ||
echo "THUMBPRINT_PATHが未定義です" | ||
exit 1 | ||
fi | ||
if [ ! -v SIGNTOOL_PATH_PATH ]; then # 対応しているsigntoolのパスの出力先 | ||
echo "SIGNTOOL_PATH_PATHが未定義です" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -v ESIGNERCKA_INSTALL_DIR ]; then | ||
ESIGNERCKA_INSTALL_DIR='..\eSignerCKA' | ||
fi | ||
|
||
# eSignerCKAのセットアップ | ||
if [ ! -d "$ESIGNERCKA_INSTALL_DIR" ]; then | ||
curl -LO "https://github.com/SSLcom/eSignerCKA/releases/download/v1.0.6/SSL.COM-eSigner-CKA_1.0.6.zip" | ||
unzip -o SSL.COM-eSigner-CKA_1.0.6.zip | ||
mv *eSigner*CKA_*.exe eSigner_CKA_Installer.exe | ||
powershell " | ||
& ./eSigner_CKA_Installer.exe /CURRENTUSER /VERYSILENT /SUPPRESSMSGBOXES /DIR="$ESIGNERCKA_INSTALL_DIR" | Out-Null | ||
& '$ESIGNERCKA_INSTALL_DIR\eSignerCKATool.exe' config -mode product -user '$ESIGNERCKA_USERNAME' -pass '$ESIGNERCKA_PASSWORD' -totp '$ESIGNERCKA_TOTP_SECRET' -key '$ESIGNERCKA_INSTALL_DIR\master.key' -r | ||
& '$ESIGNERCKA_INSTALL_DIR\eSignerCKATool.exe' unload | ||
" | ||
rm SSL.COM-eSigner-CKA_1.0.6.zip eSigner_CKA_Installer.exe | ||
fi | ||
|
||
# 証明書を読み込む | ||
powershell "& '$ESIGNERCKA_INSTALL_DIR\eSignerCKATool.exe' load" | ||
|
||
THUMBPRINT=$( | ||
powershell ' | ||
$CodeSigningCert = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1 | ||
echo "$($CodeSigningCert.Thumbprint)" | ||
' | ||
) | ||
|
||
# THUMBPRINTを出力 | ||
echo "$THUMBPRINT" >"$THUMBPRINT_PATH" | ||
|
||
# 対応しているsigntoolのパスを出力 | ||
SIGNTOOL_PATH=$(ls "C:/Program Files (x86)/Windows Kits/"10/bin/*/x86/signtool.exe | sort -V | tail -n 1) # なぜかこれじゃないと動かない | ||
echo "$SIGNTOOL_PATH" >"$SIGNTOOL_PATH_PATH" |
Oops, something went wrong.