From 7ece4b076ef6b78c53d44dbe0c56873a1a793d13 Mon Sep 17 00:00:00 2001 From: Nanashi Date: Tue, 23 May 2023 00:45:46 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20sha256sum=E3=81=AE=E3=83=91=E3=82=B9?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-mobile.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.yml index 2805fc5d4c..59b7ee3846 100644 --- a/.github/workflows/build-mobile.yml +++ b/.github/workflows/build-mobile.yml @@ -52,15 +52,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Replace package name & version - shell: bash - run: | - sed -i 's/"version": "999.999.999"/"version": "${{ env.VOICEVOX_EDITOR_VERSION }}"/' package.json - - echo "VersionCode: ${{ github.run_number }}" - sed -i "s/versionCode 1/versionCode ${{ github.run_number }}/" android/app/build.gradle - sed -i 's/versionName "999.999.999"/versionName "${{ env.VOICEVOX_EDITOR_VERSION }}"/' android/app/build.gradle - - name: Setup environment uses: ./.github/actions/setup-environment @@ -98,6 +89,15 @@ jobs: gtm_id=$(jq -r '.gtm_container_id' resource/editor/metas.json) sed -i 's/VITE_GTM_CONTAINER_ID=.*/VITE_GTM_CONTAINER_ID='"$gtm_id"'/' .env.production + - name: Replace package version + shell: bash + run: | + sed -i 's/"version": "999.999.999"/"version": "${{ env.VOICEVOX_EDITOR_VERSION }}"/' package.json + + echo "VersionCode: ${{ github.run_number }}" + sed -i "s/versionCode 1/versionCode ${{ github.run_number }}/" android/app/build.gradle + sed -i 's/versionName "999.999.999"/versionName "${{ env.VOICEVOX_EDITOR_VERSION }}"/' android/app/build.gradle + - name: Generate public/licenses.json shell: bash run: npm run license:generate -- -o public/licenses.json @@ -173,7 +173,7 @@ jobs: EOF if [ -s /tmp/keystore.jks ]; then echo "Created keystore.jks" - SHA256=$(sha256sum keystore.jks | cut -d ' ' -f 1) + SHA256=$(sha256sum /tmp/keystore.jks | cut -d ' ' -f 1) echo "SHA256: $SHA256" else echo "Failed to create keystore.jks"