Skip to content

Commit

Permalink
ワークアラウンド
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Oct 3, 2023
1 parent ffae0c6 commit 5d28c7b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ DEFAULT_ENGINE_INFOS=`[
]`
VUE_APP_GTM_CONTAINER_ID=GTM-DUMMY
VV_OUTPUT_LOG_UTF8=1
SIGNTOOL_PATH="C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x86/signtool.exe"
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ jobs:
echo "WIN_CERTIFICATE_SHA1=$(head -n 1 $THUMBPRINT_PATH)" >> $GITHUB_ENV
echo 'WIN_SIGNING_HASH_ALGORITHMS=["sha256"]' >> $GITHUB_ENV
echo "SIGNTOOL_PATH=$(head -n 1 $SIGNTOOL_PATH_PATH)" >> $GITHUB_ENV
# NOTE: electron-builder 22.14.13 は指定したsigntoolを使わないのでワークアラウンド
CACHE_SIGNTOOL_PATH=$ELECTRON_BUILDER_CACHE/winCodeSign/winCodeSign-2.6.0/windows-10/x64/signtool.exe
mv $CACHE_SIGNTOOL_PATH{,.bak}
cp $SIGNTOOL_PATH $CACHE_SIGNTOOL_PATH
env:
ESIGNERCKA_USERNAME: ${{ secrets.ESIGNERCKA_USERNAME }}
ESIGNERCKA_PASSWORD: ${{ secrets.ESIGNERCKA_PASSWORD }}
Expand Down Expand Up @@ -249,6 +254,10 @@ jobs:
echo 'WIN_CERTIFICATE_SHA1=' >> $GITHUB_ENV
echo 'WIN_SIGNING_HASH_ALGORITHMS=' >> $GITHUB_ENV
echo 'SIGNTOOL_PATH=' >> $GITHUB_ENV
# NOTE: electron-builder 22.14.13 は指定したsigntoolを使わないのでワークアラウンド
CACHE_SIGNTOOL_PATH=$ELECTRON_BUILDER_CACHE/winCodeSign/winCodeSign-2.6.0/windows-10/x64/signtool.exe
mv $CACHE_SIGNTOOL_PATH{.bak,}
env:
THUMBPRINT_PATH: /tmp/esignercka_thumbprint.txt

Expand Down Expand Up @@ -668,6 +677,11 @@ jobs:
echo "WIN_CERTIFICATE_SHA1=$(head -n 1 $THUMBPRINT_PATH)" >> $GITHUB_ENV
echo 'WIN_SIGNING_HASH_ALGORITHMS=["sha256"]' >> $GITHUB_ENV
echo "SIGNTOOL_PATH=$(head -n 1 $SIGNTOOL_PATH_PATH)" >> $GITHUB_ENV
# NOTE: electron-builder 22.14.13 は指定したsigntoolを使わないのでワークアラウンド
CACHE_SIGNTOOL_PATH=$ELECTRON_BUILDER_CACHE/winCodeSign/winCodeSign-2.6.0/windows-10/x64/signtool.exe
mv $CACHE_SIGNTOOL_PATH{,.bak}
cp $SIGNTOOL_PATH $CACHE_SIGNTOOL_PATH
env:
ESIGNERCKA_USERNAME: ${{ secrets.ESIGNERCKA_USERNAME }}
ESIGNERCKA_PASSWORD: ${{ secrets.ESIGNERCKA_PASSWORD }}
Expand Down Expand Up @@ -700,6 +714,10 @@ jobs:
echo 'WIN_CERTIFICATE_SHA1=' >> $GITHUB_ENV
echo 'WIN_SIGNING_HASH_ALGORITHMS=' >> $GITHUB_ENV
echo 'SIGNTOOL_PATH=' >> $GITHUB_ENV
# NOTE: electron-builder 22.14.13 は指定したsigntoolを使わないのでワークアラウンド
CACHE_SIGNTOOL_PATH=$ELECTRON_BUILDER_CACHE/winCodeSign/winCodeSign-2.6.0/windows-10/x64/signtool.exe
mv $CACHE_SIGNTOOL_PATH{.bak,}
env:
THUMBPRINT_PATH: /tmp/esignercka_thumbprint.txt

Expand Down

0 comments on commit 5d28c7b

Please sign in to comment.