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

[release-0.13] publicディレクトリにキャラデータコピーは不要なので省く #1072

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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