Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

コード署名する #852

Merged
merged 7 commits into from
Jul 12, 2022
Merged

コード署名する #852

merged 7 commits into from
Jul 12, 2022

Conversation

Hiroshiba
Copy link
Member

内容

VOICEVOX.exeやwindowsインストーラーを、electron-builderの仕組みを使ってコード署名します。

証明書.pfxファイルをbase64エンコードしたものをsecret.CERT_BASE64に登録し、
証明書のパスワードをsecret.CERT_PASSWORDに登録して、
workflow_dispatchで「コード署名する」にチェックを入れてbuild.ymlを起動すれば、
core.dllが署名されます。

もしくはcode_signingenvironmentを作成し、同様にCERT_BASE64とCERT_PASSWORDを登録して実行しても署名できます。
(こちらのフローは、OSSリポジトリ上でビルドする場合を想定しています。)

「コード署名する」にチェックを入れずにビルドしたり、releaseを作ってビルドした場合は署名用のコードが実行されないので、メンテナー以外の方は今まで通りにテストビルドができます。

関連 Issue

スクリーンショット・動画など

その他

実際にこちらでビルドを試しています。
https://github.com/Hiroshiba/voicevox/runs/7216557572?check_suite_focus=true

Copy link
Member

@y-chan y-chan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMですが、一点だけ気になった点があるのでコメントです

.github/workflows/build.yml Outdated Show resolved Hide resolved
Copy link
Member

@PickledChair PickledChair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

一応 artifact をダウンロードして署名されているかどうか見てみましたが、大丈夫そうな気がします……!(写真は VOICEVOX.exe の署名情報)

code_signing

@Hiroshiba
Copy link
Member Author

レビューありがとうございます! マージします!

@Hiroshiba Hiroshiba merged commit 2fc206b into VOICEVOX:main Jul 12, 2022
@Hiroshiba Hiroshiba deleted the コード署名 branch July 12, 2022 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants