Skip to content

Commit

Permalink
downloadコマンド・download実行バイナリはdownloadへ
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Oct 16, 2023
1 parent 734ab5f commit cda80d3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_and_deploy_downloader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@ jobs:
strategy:
matrix:
include:
- name: downloader-windows-x64.exe
- name: download-windows-x64.exe
target: x86_64-pc-windows-msvc
os: windows-2019

- name: downloader-linux-x64
- name: download-linux-x64
target: x86_64-unknown-linux-gnu
os: ubuntu-20.04

- name: downloader-linux-arm64
- name: download-linux-arm64
target: aarch64-unknown-linux-gnu
os: ubuntu-20.04

- name: downloader-osx-x64
- name: download-osx-x64
target: x86_64-apple-darwin
os: macos-11

- name: downloader-osx-arm64
- name: download-osx-arm64
target: aarch64-apple-darwin
os: macos-11

Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
Windows) exe_suffix=.exe;;
Linux | macOS) exe_suffix=;;
esac
mv $"target/${{ matrix.target }}/release/downloader$exe_suffix" ./${{ matrix.name }}
mv $"target/${{ matrix.target }}/release/download$exe_suffix" ./${{ matrix.name }}
- name: Code signing (Windows)
if: startsWith(matrix.os, 'windows') && inputs.code_signing
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ Downloader を用いて環境構築を行う場合
PowerShell で下記コマンドを実行してください

```PowerShell
Invoke-WebRequest https://github.com/VOICEVOX/voicevox_core/releases/latest/download/downloader-windows-x64.exe -OutFile ./downloader.exe
./downloader.exe
Invoke-WebRequest https://github.com/VOICEVOX/voicevox_core/releases/latest/download/download-windows-x64.exe -OutFile ./download.exe
./download.exe
```

### Linux/macOS の場合

[最新のリリース](https://github.com/VOICEVOX/voicevox_core/releases/latest)から環境に合わせてダウンローダーのバイナリをダウンロードしてください。
現在利用可能なのは以下の 4 つです。

- downloader-linux-arm64
- downloader-linux-x64
- downloader-osx-arm64
- downloader-osx-x64
- download-linux-arm64
- download-linux-x64
- download-osx-arm64
- download-osx-x64

以下は Linux の x64 での実行例です。

```bash
binary=downloader-linux-x64
curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/${binary} -o downloader
chmod +x downloader
./downloader
binary=download-linux-x64
curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/${binary} -o download
chmod +x download
./download
```

詳細な Downloader の使い方については [こちら](./docs/downloader.md) を参照してください
Expand Down
14 changes: 7 additions & 7 deletions example/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ https://github.com/VOICEVOX/voicevox_core/releases/latest

linux/mac の場合

downloader-linux-x64 のところはアーキテクチャや OS によって適宜読み替えてください。
download-linux-x64 のところはアーキテクチャや OS によって適宜読み替えてください。
https://github.com/VOICEVOX/voicevox_core/releases/latest#%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%80

```console
binary=downloader-linux-x64
curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/${binary} -o downloader
chmod +x downloader
./downloader -o ./example/python
binary=download-linux-x64
curl -sSfL https://github.com/VOICEVOX/voicevox_core/releases/latest/download/${binary} -o download
chmod +x download
./download -o ./example/python
# いくつかのファイルは不要なので消すことができます
#rm -r ./example/python/{model,VERSION,*voicevox_core*}
```

windows の場合

```console
Invoke-WebRequest https://github.com/VOICEVOX/voicevox_core/releases/latest/download/downloader-windows-x64.exe -OutFile ./downloader.exe
./downloader -o ./example/python
Invoke-WebRequest https://github.com/VOICEVOX/voicevox_core/releases/latest/download/download-windows-x64.exe -OutFile ./download.exe
./download -o ./example/python
# いくつかのファイルは不要なので消すことができます
#Remove-Item -Recurse ./example/python/model,./example/python/VERSION,./example/python/*voicevox_core*
```
Expand Down

0 comments on commit cda80d3

Please sign in to comment.