Repository navigation
Add Windows install script and setup.exe builder - #4
Open
TomHolzknecht wants to merge 2 commits into
Open
TomHolzknecht wants to merge 2 commits into
TomHolzknecht wants to merge 2 commits into
Conversation
install.ps1 installs Dictate for the current user: finds or installs Python 3.10+, creates a venv, installs requirements-windows.txt, adds a Start Menu shortcut (optional autostart), and registers an uninstall entry. uninstall.ps1 removes it again. build-setup.ps1 packs the files with IExpress (ships with Windows) into setup.exe and zips it, so users unzip and double-click. The GUI needs the fcntl fix from PR #1 to start on Windows. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
At the end the script asks whether to download the ~640 MB local model now and shows the huggingface_hub progress bars. -DownloadModel answers yes without the question, -NoModel answers no. Without console input the script skips the download. An installed model is detected and not asked for. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
TomHolzknecht
force-pushed
the
windows-installer
branch
from
October 8, 2026 20:33
128490e to
3dd7aee
Compare
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.
Adds two ways to install Dictate on Windows. Both install for the current user and need no admin rights.
A.
install.ps1: finds Python 3.10+ (installs 3.12 withwingetif missing), creates a venv in%LOCALAPPDATA%\Programs\Dictate, installsrequirements-windows.txt, checks that all modules import, adds a Start Menu shortcut, and registers an uninstall entry. At the end it asks whether to download the ~640 MB offline model now and shows a progress bar. Options:-Autostart,-DownloadModel(yes without the question),-NoModel(no),-Proxy,-InstallDir,-NoPythonInstall.uninstall.ps1removes it again (-RemoveUserDataalso deletes settings and the model).B.
setup.exe:build-setup.ps1packs the files with IExpress (ships with Windows, no extra tools) intosetup.exeand zips it. Users unzip and double-click. It runsinstall.ps1with the defaults.Also adds
requirements-windows.txt, a "Windows install" section in the README, anddist/in.gitignore.Needs #1 to start the GUI.
gui.pyimportsfcntland does not start on Windows without that fix. This PR does not touchgui.py.Tested on Windows 11 with Windows PowerShell 5.1: direct install,
setup.exeinstall into a test folder, uninstall, and the model question with answers yes (model already present), no, and-NoModel.Not tested: the real model download with the progress bar, the
wingetPython install on a machine without Python, creating the shortcuts on a clean machine, and a double-click ofsetup.exewithout a test command.setup.exeis not code-signed, so SmartScreen can warn.🤖 Generated with Claude Code