# Install, update and re-download behaviour (SesVer) Used by section 1a of SKILL.md. Facts read from code on `origin/main`; re-check the named lines if the installer or launcher changed. ## Where to look (read, do not guess) | Question | File | What decides it | |---|---|---| | Does the app update itself? | `guncelleme.py` module docstring | "Aşama 1": startup GET to GitHub `releases/latest`, shows a "Yeni sürüm var" banner with the download link; no download/install. Off via Settings, installer checkbox, `SESVER_GUNCELLEME_KONTROLU=0`. | | Does an over-the-top install re-download Python + packages? | `WINDOWS_BASLAT.bat` (`:kurulum`, `:esitle`), marker `python-embed\sesver_kurulum_tamam.txt` | Marker = `req_sha256= voxcpm=`. Same marker: nothing installed. Different: `:esitle` installs only missing/changed pinned packages; a working CUDA torch is kept via a constraint file. Missing marker: full first install. | | Does uninstall remove the ~3 GB? | `windows/SesVer.iss` `[UninstallDelete]` | Deletes `python-embed`, `.venv`, `pbs_tmp`, Fast Mode weights, logs. Keeps `voices\seslerim\` and `outputs\`. So uninstall + reinstall downloads everything again. | | Does the ~5 GB voice model re-download? | model loaded from the Hugging Face cache | Lives in the user-wide HF cache, outside the app folder; uninstall does not touch it. | | Mac | README › Güncelleme | Drag the new `SesVer.app` over the old one; data under `~/Library/Application Support/SesVer`. ZIP installs re-run setup in a new folder. | ## Predicting what an upgrade downloads Ask which version is installed (Settings or `VERSION` in the install folder), then diff the inputs that change the marker: ```bash git diff --stat v v -- requirements.txt kilit/ WINDOWS_BASLAT.bat ``` Empty diff: the setup page should finish without downloading. torch is pinned (`torch==2.14.1`) only from 1.3.1; from older versions torch alone may re-download (~2.5 GB on CUDA machines), the model does not. ## Component sizes (measure before proposing to reuse/skip one) - Portable Python (python-build-standalone 3.11.18, Windows x86_64 `install_only`): ~46 MB (`curl -sIL | grep -i content-length`; URL pattern in `WINDOWS_BASLAT.bat`). - Python + packages on Windows: ~3 GB, almost all PyTorch (CUDA build on NVIDIA). - Voice model: ~5 GB, one-time, shared HF cache. So "use the system Python" saves <2% of the download while giving up the pinned, hash-checked runtime (user-changed or Store/Anaconda Pythons break the app; more versions to test). The system-Python path already exists only as a fallback when the portable download fails. Steer the user to the real saving (keep `python-embed` across reinstalls) instead. ## "Is it downloading again every time?" (first-generation message) - The voice model is fetched with `snapshot_download(repo_id=MODEL_ID, revision=MODEL_REVISION)` (`app.py` `_model_yolu`); with a pinned commit SHA a cached snapshot is reused, so the ~5 GB download happens once per machine (per HF cache), not per launch or per app update. - What repeats on every launch is loading the model into RAM on the first Generate; the UI message "İlk kullanımda model indiriliyor/yükleniyor (internet ...)" shows on every launch and makes users think it re-downloads. - A ham `0/0 B | 0/0 B | s` line in the UI is huggingface_hub's progress for a cache hit: zero bytes downloaded. It leaks past the `_JS` tqdm-hiding regex, which does not match that format. - Answer the user with that distinction (once vs every launch), point to the screenshot's "0/0 B" as proof, and treat the wording + leaked line as a UI bug for the next patch. ## Improvements to brief for a "don't re-download 3 GB" release (need the user's yes) - Uninstaller option "keep downloaded components (~3 GB)"; silent uninstall (`/VERYSILENT`) keeps today's delete behaviour so CI and automation do not change; reinstall to the same folder reuses `python-embed` via the marker. - Windows CI check that an over-the-top install of the same lock set, and a keep-then-reinstall, download nothing (failing CI if they do). CI only runs on pushed `ci/windows-installer*` branches or `v*` tags, so the coder verifies locally what it can and lists the CI commands; the PM gets the push done via `default`. - First-generation message that distinguishes one-time download (with size) from load, and hides the raw byte line. - In-app one-click update ("Aşama 2"): scope Windows signing and Mac app-replacement risks before briefing.