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

Merge: upstream追従 #38

Merged
merged 19 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
d98ab6c
feat: VITE_DEFAULT_ENGINE_INFOSのexecutionFilePathで相対パスが使えるようにする。 (#1599)
sabonerune Oct 8, 2023
e3f907e
Playwrightテストが落ちたらGithubでアノテーションされるように (#1587)
Hiroshiba Oct 9, 2023
8157827
AudioInfoコンポーネントに表示されるパラメータの初期値や範囲を構造化する (#1596)
weweweok Oct 9, 2023
80c64b3
複数選択:AudioInfo対応 (#1577)
sevenc-nanashi Oct 9, 2023
aafab3d
feat: モーラが編集不可な場合カーソルを変え、理由を表示する (#1573)
thiramisu Oct 10, 2023
6877558
Q&AにUbuntu 版のインストール先を追加 (#1608)
nohimazin Oct 14, 2023
bc1d6ab
build: エンジンの配置ディレクトリを変更 (#1611)
sabonerune Oct 18, 2023
653b9bc
feat: Linuxインストーラーでインストールするバージョンが0.15以上のときlibsndfileのチェックをスキップする (#1613)
sabonerune Oct 19, 2023
8763020
electron-storeから離脱する (#1610)
sevenc-nanashi Oct 21, 2023
895c8d0
複数選択:複数書き出しを追加 (#1604)
sevenc-nanashi Oct 23, 2023
a80def6
Fix: 複数選択の選択周りの細かいところを修正 (#1617)
sevenc-nanashi Oct 23, 2023
aaf0576
使い方のスクショ画像を入れ替えました (#1605)
Jun-1Il Oct 24, 2023
e2366a2
ショートカットキーを初期値に戻す際に、衝突チェックを行うようにしました (#1619)
yuriko0505 Oct 25, 2023
c2b742c
Change: Configをasyncに (#1618)
sevenc-nanashi Oct 26, 2023
efcea1f
fix: voicevox-cpu等の使用しないディレクトリが作成される問題を修正 (#1620)
sabonerune Oct 26, 2023
0346b31
Improve: e2eを改善 (#1623)
sevenc-nanashi Oct 26, 2023
9c70061
fix: electron-log初期化前にlog.error()を実行してしまう問題を修正 (#1624)
sabonerune Oct 27, 2023
db83901
Merge: 9c70061
sevenc-nanashi Oct 28, 2023
4d2d65a
Fix: configSchemaのリネームに追従
sevenc-nanashi Oct 28, 2023
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
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ VITE_DEFAULT_ENGINE_INFOS=`[
"uuid": "074fc39e-678b-4c13-8916-ffca8d505d1d",
"name": "VOICEVOX Engine",
"executionEnabled": true,
"executionFilePath": "run.exe",
"executionFilePath": "vv-engine/run.exe",
"executionArgs": [],
"host": "http://127.0.0.1:50021"
}
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,26 +278,24 @@ jobs:
- name: Merge VOICEVOX ENGINE into prepackage/
if: startsWith(matrix.artifact_name, 'windows-') || startsWith(matrix.artifact_name, 'linux-')
run: |
mv voicevox_engine/* prepackage/
rm -rf voicevox_engine
mv voicevox_engine/ prepackage/vv-engine/

- name: Merge VOICEVOX ENGINE into prepackage/VOICEVOX.app/Contents/MacOS/
if: startsWith(matrix.artifact_name, 'macos-')
run: |
mv voicevox_engine/* prepackage/VOICEVOX.app/Contents/MacOS/
rm -rf voicevox_engine
mv voicevox_engine/ prepackage/VOICEVOX.app/Contents/MacOS/vv-engine/

- name: Recover file permissions
if: startsWith(matrix.artifact_name, 'linux-') # linux
run: |
chmod +x "prepackage/${{ matrix.linux_executable_name }}"
chmod +x "prepackage/run"
chmod +x "prepackage/vv-engine/run"

- name: Recover file permissions for macOS build
if: startsWith(matrix.artifact_name, 'macos-') # macOS
run: |
chmod +x "prepackage/VOICEVOX.app/Contents/MacOS/${{ matrix.macos_executable_name }}"
chmod +x "prepackage/VOICEVOX.app/Contents/MacOS/run"
chmod +x "prepackage/VOICEVOX.app/Contents/MacOS/vv-engine/run"
chmod +x "prepackage/VOICEVOX.app/Contents/Frameworks/VOICEVOX Helper (GPU).app/Contents/MacOS/VOICEVOX Helper (GPU)"
chmod +x "prepackage/VOICEVOX.app/Contents/Frameworks/VOICEVOX Helper (Plugin).app/Contents/MacOS/VOICEVOX Helper (Plugin)"
chmod +x "prepackage/VOICEVOX.app/Contents/Frameworks/VOICEVOX Helper (Renderer).app/Contents/MacOS/VOICEVOX Helper (Renderer)"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ npm ci

## 実行

`.env.production`をコピーして`.env`を作成し、`VITE_DEFAULT_ENGINE_INFOS`内の`executionFilePath`に`voicevox_engine`のフルパスを指定します
`.env.production`をコピーして`.env`を作成し、`VITE_DEFAULT_ENGINE_INFOS`内の`executionFilePath`に`voicevox_engine`のパスを指定します

[製品版 VOICEVOX](https://voicevox.hiroshiba.jp/) のディレクトリのパスを指定すれば動きます。

Expand Down
60 changes: 32 additions & 28 deletions build/installer_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,25 +123,43 @@ EOS
fi
echo "[-] 7z command: ${COMMAND_7Z}"

echo "[+] Checking runtime prerequisites..."
LATEST_RELEASE_URL=$REPO_URL/releases/latest

PATH=${PATH}:/usr/local/sbin:/usr/sbin:/sbin
if ! command -v ldconfig &> /dev/null; then
cat << EOS && exit 1
if [ -z "${VERSION}" ]; then
echo "[+] Checking the latest version..."

# releases/tag/{version}
RELEASE_TAG_URL=$(curl -fsSL -o /dev/null -w '%{url_effective}' "${LATEST_RELEASE_URL}")

# extract version (release tag name) from URL
VERSION=$(echo "${RELEASE_TAG_URL}" | sed 's/.*\/\(.*\)$/\1/')
echo "[-] Install version: ${VERSION} (latest)"
else
echo "[-] Install version: ${VERSION}"
fi

IFS=" " read -r -a VERSION_ARRAY <<< "${VERSION//[.+-]/ }"
if [ "${VERSION_ARRAY[0]}" -eq 0 ] && [ "${VERSION_ARRAY[1]}" -le 14 ]; then
# Check when version < 0.15
echo "[+] Checking runtime prerequisites..."

PATH=${PATH}:/usr/local/sbin:/usr/sbin:/sbin
if ! command -v ldconfig &> /dev/null; then
cat << EOS && exit 1
[!] Command 'ldconfig' not found

Required to check existence of required libraries.
You must add a directory of contain ldconfig command to PATH environment variable.

EOS
fi
fi

if { ldconfig -p | grep 'libsndfile\.so';} &>/dev/null; then
echo "[-] libsndfile: OK"
elif [ -d /usr/local/Cellar/libsndfile ]; then
echo "[-] libsndfile: OK"
else
cat << 'EOS'
if { ldconfig -p | grep 'libsndfile\.so';} &>/dev/null; then
echo "[-] libsndfile: OK"
elif [ -d /usr/local/Cellar/libsndfile ]; then
echo "[-] libsndfile: OK"
else
cat << 'EOS'
[!] libsndfile: not found

Required to run VOICEVOX ENGINE
Expand All @@ -160,26 +178,12 @@ Arch Linux
MacOS:
brew install libsndfile
EOS
if [ "${IGNORE_RTCOND}" != "1" ]; then
exit 1
if [ "${IGNORE_RTCOND}" != "1" ]; then
exit 1
fi
fi
fi

LATEST_RELEASE_URL=$REPO_URL/releases/latest

if [ -z "${VERSION}" ]; then
echo "[+] Checking the latest version..."

# releases/tag/{version}
RELEASE_TAG_URL=$(curl -fsSL -o /dev/null -w '%{url_effective}' "${LATEST_RELEASE_URL}")

# extract version (release tag name) from URL
VERSION=$(echo "${RELEASE_TAG_URL}" | sed 's/.*\/\(.*\)$/\1/')
echo "[-] Install version: ${VERSION} (latest)"
else
echo "[-] Install version: ${VERSION}"
fi

RELEASE_URL=${REPO_URL}/releases/download/${VERSION}
ARCHIVE_LIST_URL=${RELEASE_URL}/${NAME}.7z.txt

Expand Down
6 changes: 4 additions & 2 deletions docs/res/終了シーケンス図.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ flowchart TD
916552 -->|"true"| 655722["何もしない"]
end
subgraph subgraph_2["app.before_quit"]
c["willQuit"] -->|"false"| node_9
c{{"willQuit"}} -->|"false"| node_9
c -->|"true"| 454139
454139 --> 177756
177756 -->|"false"| node_13["event.preventDefault"]
node_13 --> 322763["await"]
322763 --> node_15
925653["configManager.ensureSaved"] --> 177756
454139 --> 177756
c -->|"true"| 925653
end
subgraph subgraph_1["win.close"]
a -->|"false"| 442878
Expand Down
1 change: 1 addition & 0 deletions docs/コードの歩き方.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ TODO
- openapi ディレクトリ ・・・ エンジンの API を叩くためのコードのディレクトリ。OpenAPI で自動生成される。
- router ディレクトリ ・・・ Vue Router 用のディレクトリ。
- helpers ディレクトリ ・・・ 便利な関数を置くディレクトリ。
- shared ディレクトリ ・・・ UI と Electron 両方から参照されるコードを置くディレクトリ。
- public
- アプリのリソースファイルが置かれるディレクトリ。
- build
Expand Down
4 changes: 2 additions & 2 deletions electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const dotenvPath = path.join(process.cwd(), ".env.production");
dotenv.config({ path: dotenvPath });

const VOICEVOX_ENGINE_DIR =
process.env.VOICEVOX_ENGINE_DIR ?? "../voicevox_engine/run.dist/";
process.env.VOICEVOX_ENGINE_DIR ?? "../voicevox_engine/dist/run/";

// ${productName} Web Setup ${version}.${ext}
const NSIS_WEB_ARTIFACT_NAME = process.env.NSIS_WEB_ARTIFACT_NAME;
Expand Down Expand Up @@ -90,7 +90,7 @@ const builderOptions = {
},
{
from: VOICEVOX_ENGINE_DIR,
to: extraFilePrefix,
to: path.join(extraFilePrefix, "vv-engine"),
},
{
from: path.resolve(__dirname, "build", "vendored", "7z", sevenZipFile),
Expand Down
Loading
Loading