Skip to content
Merged
Show file tree
Hide file tree
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
197 changes: 170 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,38 @@ env:
# scripts/build-whisper.sh が取得する whisper.cpp のバージョン。
# ここを変えるとキャッシュも自動的に無効になる。
WHISPER_VERSION: v1.9.4
# Windows の whisper-cli のビルドに使う Vulkan SDK の版。ci.yml と揃える。
VULKAN_SDK_VERSION: 1.4.363.0

jobs:
# macOS と Windows のジョブが並んで走るので、Release は先にここで 1 度だけ作る。各ジョブが
# 「無ければ作る」をすると、両方が同時に作ろうとして片方が落ちる。
prepare:
runs-on: ubuntu-latest
steps:
- name: Release を用意
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
MAC_SIGNED: ${{ secrets.MAC_CERT_P12_BASE64 != '' }}
run: |
set -euo pipefail
if gh release view "$TAG" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
echo "Release $TAG は既にあります。成果物の添付だけを行います。"
exit 0
fi

MAC_NOTE=""
if [ "$MAC_SIGNED" != "true" ]; then
MAC_NOTE=$'\n\n> **注意**: このビルドは Apple Developer 証明書で署名されていません。\n> 初回起動時に Gatekeeper に阻まれるため、次のコマンドで隔離属性を外してください。\n>\n> ```sh\n> xattr -dr com.apple.quarantine "/Applications/Exolobe.app"\n> ```'
fi
WINDOWS_NOTE=$'\n\n**Windows**(`exolobe-<版>-x64.exe`): Windows 10 バージョン 2004 以降 / x64 向けのインストーラです。\n\n> **注意**: コード署名をしていないため、初回の実行で SmartScreen の「Windows によって PC が保護されました」が出ます。\n> 「詳細情報」を押し、「実行」を選んでください。'

BODY="**macOS**(\`exolobe-<版>-arm64.dmg\`): macOS 14.2 以上 / Apple Silicon 向けのビルドです。${MAC_NOTE}${WINDOWS_NOTE}"
gh release create "$TAG" -R "$GITHUB_REPOSITORY" --title "$TAG" --notes "$BODY" --generate-notes --verify-tag

build:
needs: prepare
# Apple Silicon 向けにビルドするため arm64 のランナーを使う。
# whisper-cli はホストのアーキテクチャ向けにビルドされるため、
# x64 版が必要になったら macos-13 のジョブを足して成果物を統合する。
Expand Down Expand Up @@ -133,43 +162,19 @@ jobs:
# キャッシュの whisper-cli は electron-builder.yml の最低対応 OS を変えても作り直されないので、ここで拾う。
bash scripts/check-min-macos.sh "$APP"/Contents/Resources/bin/{whisper-cli,micwatch,calendarevents,applelm}

- name: チェックサムを作成
working-directory: release
run: shasum -a 256 ./*.dmg > SHA256SUMS.txt

# チェックサムは checksums のジョブが、両方の OS の成果物からまとめて作る。
- name: 成果物を保存
uses: actions/upload-artifact@v4
with:
name: macos-arm64
path: |
release/*.dmg
release/SHA256SUMS.txt
path: release/*.dmg
retention-days: 14

- name: Release に添付
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
SIGNED: ${{ steps.signing.outputs.signed }}
run: |
set -euo pipefail

NOTE=""
if [ "$SIGNED" != "true" ]; then
NOTE=$'\n\n> **注意**: このビルドは Apple Developer 証明書で署名されていません。\n> 初回起動時に Gatekeeper に阻まれるため、次のコマンドで隔離属性を外してください。\n>\n> ```sh\n> xattr -dr com.apple.quarantine "/Applications/Exolobe.app"\n> ```'
fi

BODY="macOS 14.2 以上 / Apple Silicon 向けのビルドです。${NOTE}"

# 既存の Release があれば添付のみ、無ければ作成する。
if gh release view "$TAG" >/dev/null 2>&1; then
gh release upload "$TAG" ./release/*.dmg ./release/SHA256SUMS.txt --clobber
else
gh release create "$TAG" ./release/*.dmg ./release/SHA256SUMS.txt \
--title "$TAG" \
--notes "$BODY" \
--generate-notes
fi
run: gh release upload "$TAG" ./release/*.dmg --clobber

# 公式の homebrew/cask は公証されていないアプリを受け付けないので、自前の tap に置く。
# 書き込みは tap だけに効く deploy key で行い、fork など鍵の無い実行では飛ばす。
Expand Down Expand Up @@ -211,3 +216,141 @@ jobs:
git commit -am "exolobe $VERSION"
git push origin HEAD
echo "Homebrew の cask を $VERSION に更新しました。" >> "$GITHUB_STEP_SUMMARY"

# Windows 版(ADR-048)。NSIS のインストーラを作り、prepare が作った Release に添付する。
# 署名はしない(SmartScreen の案内は Release の本文と README にある)。
build-windows:
needs: prepare
runs-on: windows-latest
defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 24

# main の CI(test-windows)が作ったキャッシュを読むだけにする。キーは ci.yml と揃える。
- name: node_modules のキャッシュを復元
id: node-modules-cache
uses: actions/cache/restore@v4
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ runner.arch }}-node24-${{ hashFiles('package-lock.json') }}

- name: 依存関係をインストール
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: npm ci

- name: 型チェック
run: npm run typecheck

# 補助プログラムはテストより先に作る(audioconv の実物を通すテストが走る)。数十秒で済むので毎回作る。
- name: 補助プログラムをビルド
run: |
npm run build:syscapture
npm run build:audioconv
npm run build:micwatch

- name: テスト
run: npm test

# キーとパスは ci.yml の test-windows と揃える(ずれると毎回ビルドし直す)。
- name: whisper-cli のキャッシュを復元
id: whisper-cache
uses: actions/cache/restore@v4
with:
path: |
resources/bin/whisper-cli.exe
resources/bin/whisper.dll
resources/bin/ggml*.dll
resources/bin/msvcp140.dll
resources/bin/vcruntime140*.dll
key: whisper-${{ runner.os }}-${{ runner.arch }}-${{ env.WHISPER_VERSION }}-${{ hashFiles('scripts/build-whisper.mjs') }}

- name: Vulkan SDK を入れる
if: steps.whisper-cache.outputs.cache-hit != 'true'
shell: pwsh
run: |
$installer = Join-Path $env:RUNNER_TEMP 'vulkansdk.exe'
curl.exe -L -o $installer "https://sdk.lunarg.com/sdk/download/$env:VULKAN_SDK_VERSION/windows/vulkansdk-windows-X64-$env:VULKAN_SDK_VERSION.exe"
& $installer --accept-licenses --default-answer --confirm-command install
Add-Content $env:GITHUB_ENV "VULKAN_SDK=C:/VulkanSDK/$env:VULKAN_SDK_VERSION"
Add-Content $env:GITHUB_PATH "C:/VulkanSDK/$env:VULKAN_SDK_VERSION/Bin"

- name: whisper-cli をビルド
if: steps.whisper-cache.outputs.cache-hit != 'true'
run: npm run build:whisper

- name: アプリをビルド
run: npx electron-vite build

- name: パッケージ(.exe)を作成
env:
# electron-builder の自動 publish は使わず、後段の gh で明示的に添付する。
GH_TOKEN: ''
run: npx electron-builder --config electron-builder.yml --win --publish never

# 同梱物が欠けてもアプリは起動してしまう(その機能だけが黙って無効になる)ので、ここで止める。
- name: 同梱物を確認
run: |
set -euo pipefail
BIN=release/win-unpacked/resources/bin
for file in whisper-cli.exe whisper.dll ggml-vulkan.dll vcruntime140.dll syscapture.exe audioconv.exe micwatch.exe; do
test -f "$BIN/$file" || { echo "::error::$file が同梱されていません"; exit 1; }
done
# app.asar は out と package.json だけで数 MB。files の指定が崩れるとリポジトリが丸ごと入って数百 MB になる。
ASAR=$(stat -c %s release/win-unpacked/resources/app.asar)
if [ "$ASAR" -gt 52428800 ]; then
echo "::error::app.asar が $ASAR バイトあります(files の指定を確かめてください)"; exit 1
fi
# CUDA 版の node-llama-cpp は同梱しない(数百 MB、ADR-048)。
if ls release/win-unpacked/resources/app.asar.unpacked/node_modules/@node-llama-cpp | grep -q cuda; then
echo "::error::node-llama-cpp の CUDA 版が同梱されています"; exit 1
fi
ls -la release/*.exe

- name: 成果物を保存
uses: actions/upload-artifact@v4
with:
name: windows-x64
path: release/*.exe
retention-days: 14

- name: Release に添付
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
run: gh release upload "$TAG" release/*.exe --clobber

# 両方の OS の成果物から SHA256SUMS.txt をまとめて作る。各ジョブが自分の分だけを --clobber で
# 上げると、後から終わった方が先の分を消してしまう。片方が失敗しても、できた分で作る。
checksums:
needs: [build, build-windows]
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
steps:
- name: 成果物を取得
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true

- name: チェックサムを作成して添付
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
working-directory: dist
run: |
set -euo pipefail
shopt -s nullglob
files=(*.dmg *.exe)
if [ ${#files[@]} -eq 0 ]; then
echo "::error::成果物がありません"; exit 1
fi
sha256sum "${files[@]}" > SHA256SUMS.txt
cat SHA256SUMS.txt
gh release upload "$TAG" SHA256SUMS.txt --clobber -R "$GITHUB_REPOSITORY"
4 changes: 3 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ npx vitest run -t "テスト名の一部"
保存したキャッシュは次のタグから見えない)。キーは `ci.yml` と `release.yml` で揃える。Secrets に
`MAC_CERT_P12_BASE64` / `MAC_CERT_PASSWORD`(署名)と `APPLE_ID` /
`APPLE_APP_SPECIFIC_PASSWORD` / `APPLE_TEAM_ID`(公証)が揃えば正式に署名・公証し、
無ければ ad-hoc 署名になる。
無ければ ad-hoc 署名になる。Windows の NSIS のインストーラは `release.yml` の `build-windows` が作る(署名なし)。
Release は `prepare` が先に作り、`SHA256SUMS.txt` は `checksums` が両方の OS の成果物からまとめて作る。
手元で作るときは `npm run package:win`。
- `npm run lint` は **oxlint**(`.oxlintrc.json`)。TypeScript 7 が従来の JS コンパイラ
API を公開しなくなり typescript-eslint が動かないため、ESLint ではなく oxlint を使う。
`react/set-state-in-effect` と一部の `jsx-a11y` は既知の未対応として警告に留めてある
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Google Meet / Zoom などの Web 会議を Mac で録音し、**文字起こし
| メモリ | 16GB 以上を推奨 |
| 空き容量 | 約 10GB(モデル用) |

Windows 版(対応中)は、Windows 10 バージョン 2004 以降 / x64 で動きます。GPU は Vulkan で使い(NVIDIA・AMD・Intel)、
GPU が無い機体では CPU で動きます。カレンダー連携と Apple Intelligence での要約は Windows にはありません。

## インストール方法

Homebrewもしくは手動インストールどちらかをお選びください。
Expand Down Expand Up @@ -67,12 +70,22 @@ xattr -dr com.apple.quarantine "/Applications/Exolobe.app"

この手順は .dmg に同梱した「はじめにお読みください.txt」と、Release の説明文にも書いてあります。

### Windows

[Releases ページ](https://github.com/eddybean/exolobe/releases/latest) から `exolobe-<版>-x64.exe` を
ダウンロードして実行します。インストール先を選べ、スタートメニューに「Exolobe」が入ります。

コード署名をしていないため、初回の実行で SmartScreen の「Windows によって PC が保護されました」が出ます。
「詳細情報」を押し、「実行」を選んでください。アンインストールは、設定の「アプリ」から行えます。
モデル・設定・作業用のファイルは一緒に消えます。会議の録音は保存先に残ります。

### 更新

新しい版が出ると、画面上部の右端に「新しい版」の札が出ます。押すと設定の
「このアプリについて」に更新の手順が出ます(アプリが自分で更新を入れることはありません)。
Homebrew で入れた場合は `brew update && brew upgrade --cask exolobe`、.dmg で入れた場合は
Releases ページから新しい .dmg を取得してアプリを入れ替えてください。録音とモデルはそのまま残ります。
Releases ページから新しい .dmg を取得してアプリを入れ替えてください。Windows は新しい .exe を実行すれば
上書きで更新されます。録音とモデルはそのまま残ります。

## 使い始める

Expand Down
11 changes: 11 additions & 0 deletions docs/decisions.html
Original file line number Diff line number Diff line change
Expand Up @@ -4456,6 +4456,17 @@ <h4>残した判断</h4>
変換とチャンネルの混ぜ合わせは Source Reader に任せた(左右に別の音を入れたステレオで、両方が残ることを確かめた)。
読める形式は afconvert と違い、webm / mkv / mov / wma / avi を読み、ogg / opus / aiff / caf を読まない(実機で確認)。
webm の Opus のように、ストアの拡張機能が入っているかで変わるものもある。</li>
<li>配布は NSIS のインストーラ(exolobe-&lt;版&gt;-x64.exe、約 160MB)。Release は prepare のジョブが先に 1 度だけ作り、macOS と Windows の
ジョブは成果物を添付するだけにする(両方が「無ければ作る」をすると競合する)。SHA256SUMS.txt は両方の成果物から最後のジョブがまとめて作る
(各ジョブが --clobber で上げると、後から終わった方が先の分を消す)。片方の OS が失敗しても、できた分で作る。署名しないので、
SmartScreen の「詳細情報」→「実行」の手順を Release の本文と README に書く。新しい版の通知(ADR-044)は OS 共通の Release を見るので、
片方の OS だけの修正でも両方に知らせる。どちらの OS にも同じ版の配布物が載るので、更新しても害は無い。
Windows のアンインストールでは %APPDATA% のアプリのデータ(models・work・search・settings.json)を消す
(deleteAppDataOnUninstall)。ADR-023 が自動のクリーンアップを見送ったのは macOS に消すきっかけが無いからで、
Windows にはアンインストーラがある。新しい版での上書きでは消さない。会議の録音は保存先にあり、消さない。
macOS 専用の audiotee は Windows の配布物にも入るが、呼ばれないので残す(electron-builder の win の files は上の files を
置き換えるので、外そうとするとリポジトリが丸ごと入る)。展開した中身は約 590MB で、大きいのは node-llama-cpp の CPU 版(47MB)と
Vulkan 版(99MB)。どちらも要るので削らない(exFAT の上では du が実際より大きく出るので、--apparent-size で測る)。</li>
<li>画面・メニュー・トレイ・通知を Windows 11 の実機で見た(2026-10)。ウィンドウは標準の枠で、ナビとも重ならない。メニューバーは出したまま
(autoHideMenuBar にしない。録音の操作をメニューからも辿れるようにするため)。Windows では役割のメニューが Electron の既定の英語のまま
出て日英が混ざったので、役割の項目にも UI の言語の名前とアクセスキーを付ける(macOS は OS の訳に任せる)。トレイの待機中のアイコンは
Expand Down
6 changes: 6 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,15 @@ win:
filter:
- '*.exe'
- '*.dll'
# files はここに書かない。win の files は上の files に足されず置き換わり、リポジトリが丸ごと入る
# (試したら app.asar が 600MB になった)。macOS 専用の audiotee が入るが、Windows では呼ばれない。

nsis:
# 管理者権限を求めず、利用者ごとに入れる。インストール先を選ばせ、スタートメニューに置く。
oneClick: false
perMachine: false
allowToChangeInstallationDirectory: true
# アンインストールで %APPDATA% のアプリのデータ(models / work / search / settings.json)を消す。
# 新しい版での上書き(内部でアンインストールが走る)では消さない(electron-builder が isUpdated で分ける)。
# 会議の録音は利用者が選んだ保存先にあり、ここには無いので消えない(ADR-023 / ADR-048)。
deleteAppDataOnUninstall: true
11 changes: 9 additions & 2 deletions src/renderer/i18n/settings.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { AppPlatform } from '@shared/platform'
import { localized } from './locale'

const ja = {
Expand Down Expand Up @@ -43,7 +44,10 @@ const ja = {
vadModelLabel: '無音検出モデル',
vadModelHint: 'whisper.cpp 向けの ggml 形式 Silero VAD(.bin)。',
binaryPathLabel: 'whisper-cli のパス',
binaryPathHint: 'Homebrew で入れた場合は whisper-cli のままで動きます。'
binaryPathHint: (platform: AppPlatform): string =>
platform === 'windows'
? 'whisper-cli のままなら同梱版を使います。別にビルドしたものを使うときだけパスを指定します。'
: 'Homebrew で入れた場合は whisper-cli のままで動きます。'
},
diarization: {
speakerCardTitle: '話者の分け方',
Expand Down Expand Up @@ -173,7 +177,10 @@ const en: typeof ja = {
vadModelLabel: 'Voice activity detection model',
vadModelHint: 'A ggml-format Silero VAD (.bin) for whisper.cpp.',
binaryPathLabel: 'whisper-cli path',
binaryPathHint: 'If installed via Homebrew, leaving this as whisper-cli works.'
binaryPathHint: (platform: AppPlatform): string =>
platform === 'windows'
? 'Leave this as whisper-cli to use the bundled one. Set a path only to use a separate build.'
: 'If installed via Homebrew, leaving this as whisper-cli works.'
},
diarization: {
speakerCardTitle: 'How speakers are split',
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/views/SettingsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const SettingsView = ({
</div>
</Field>

<Field label={t.transcription.binaryPathLabel} hint={t.transcription.binaryPathHint}>
<Field label={t.transcription.binaryPathLabel} hint={t.transcription.binaryPathHint(platform())}>
<input
type="text"
defaultValue={settings.transcription.binaryPath}
Expand Down
Loading
Loading