Skip to content

Commit

Permalink
[release-0.13] publicディレクトリにキャラデータコピーは不要なので省く (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Dec 28, 2022
1 parent 9846824 commit 9f15955
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,42 +181,6 @@ jobs:
ref: ${{ env.VOICEVOX_RESOURCE_VERSION }}
path: resource

- name: Replace Character Info
shell: bash
run: |
cp -r resource/character_info public/characters
cd public/characters
# Explore characters directory.
# Character directory name is uuid, but this script can automatically detect character directory name.
# We don't need to change this code when add more characters.
# FILEPATH example: "./35b2c544-660e-401e-b503-0e14c635303a"
for FILEPATH in ./*
do
# Extract speaker name from metas.json by jq command
SPEAKER_NAME="$(jq -r '.speakerName' "$FILEPATH/metas.json")"
pushd "$FILEPATH/icons"
# Explore character icons directory.
# ICONPATH example: "./0.png"
for ICONPATH in ./*.png
do
# ":2" part is python slice like, can remove "./" part from ICONPATH
# For example, SPEAKER_NAME is "AAA", ICONPATH is "./0.png"
# If don't use ":2": "${SPEAKER_NAME}_${ICONPATH}" is "AAA_./0.png"
# If use ":2": "${SPEAKER_NAME}_${ICONPATH:2}" is "AAA_0.png"
mv $ICONPATH "${SPEAKER_NAME}_${ICONPATH:2}"
done
popd
pushd "$FILEPATH/voice_samples"
# Explore character voice_samples directory.
# VOICEPATH example: "./0_000.wav"
for VOICEPATH in ./*.wav
do
# Same as for ICONPATH
mv $VOICEPATH "${SPEAKER_NAME}_${VOICEPATH:2}"
done
popd
done
- name: Create and replace software resources
shell: bash
run: |
Expand Down

0 comments on commit 9f15955

Please sign in to comment.