Repository navigation
Windows: インストーラを作り、Release に載せる - #146
Merged
Merged
Conversation
windows-latest のジョブ(build-windows)で whisper-cli(main の CI のキャッシュ)と補助プログラムを そろえ、NSIS のインストーラを作って Release に添付する。同梱物の欠け、CUDA 版の混入、app.asar の 膨らみ(files の指定が崩れてリポジトリが丸ごと入る)を確かめてから添付する。 macOS と Windows のジョブが並ぶので、Release は prepare のジョブが先に 1 度だけ作る(両方が 「無ければ作る」をすると競合する)。SHA256SUMS.txt は checksums のジョブが両方の成果物から まとめて作る(各ジョブが --clobber で上げると、後から終わった方が先の分を消す)。Release の本文に Windows の SmartScreen の手順を足す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
「Homebrew で入れた場合は whisper-cli のままで動きます」は Windows に当てはまらない。Windows では、 whisper-cli のままなら同梱版を使い、別にビルドしたものを使うときだけパスを指定すると案内する。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
アンインストールしても %APPDATA% にモデル(約 6GB)・作業用の WAV・意味検索の索引・設定が残っていた。 ADR-023 が自動のクリーンアップを見送ったのは macOS に消すきっかけが無いからで、Windows には アンインストーラがあるので、deleteAppDataOnUninstall で消す。新しい版での上書きでは electron-builder が 消さない。会議の録音は利用者が選んだ保存先にあり、消さない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更内容
Closes #135(#137 のフェーズ 2 の 8、最後)。Windows の NSIS インストーラを作れるようにし、Release で macOS の dmg と並べて配る。
Release のワークフロー(
.github/workflows/release.yml)今の形のまま macOS と Windows のジョブを並べると、2 つの問題が起きる。
SHA256SUMS.txtが消し合う:各ジョブが自分の分だけを--clobberで上げると、後から終わった方が先の分を消す。そこで、ジョブを次の形に分けた。
prepare(新設):Release を先に 1 度だけ作る。本文に macOS と Windows の案内を入れる。build(macOS):dmg を添付するだけにした。チェックサムはchecksumsへ移した。Homebrew の cask の更新はそのまま。build-windows(新設、windows-latest、shell: bash)electron-builder --winでインストーラを作る。app.asarが膨らんでいないか(50 MB 超で止める)。checksums(新設、!cancelled()):両方の成果物からSHA256SUMS.txtをまとめて作る。片方の OS が失敗しても、できた分で作る。インストーラ(
electron-builder.yml)deleteAppDataOnUninstall: true:アンインストールで%APPDATA%のアプリのデータ(models・work・search・settings.json)を消す。isUpdatedで分ける。テンプレートで確かめた)。filesを書かない:macOS 専用の audiotee を Windows の配布物から外そうとして書いたところ、上のfilesを置き換えてしまい、リポジトリ(.claudeまで)が丸ごと入ってapp.asarが 600 MB になった。取り消した。audiotee は Windows では呼ばれないので残す。アプリ
ドキュメント
確かめたこと(Windows 11)
electron-builder --winexolobe-0.3.3-x64.exe(163 MB)ができるresources/bin@node-llama-cpplocalesen-US.pakとja.pak(electronLanguagesの指定どおり)。日本語・英語の UI で起動したnpm run typecheck/lint/fmt:check/testレビューで見てほしいこと(まだ確かめていないこと)
npm run devと同じ%APPDATA%\exolobeを使うので、アンインストールすると開発中のデータ(モデル・設定)も消える。node-llama-cpp本体が 235 MB」と書いたのは誤り。exFAT の上でduが実際より大きく出ていただけで、実際は 38 MB。確認
npm run typecheck && npm run lint && npm testが通るdocs/decisions.html)を確認した🤖 Generated with Claude Code