Skip to content
Open
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
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ A voice input method software built with Electron that allows you to dictate tex
- **Cross-platform**: Works on macOS, Windows, and Linux
- **Background Operation**: Runs silently in the system tray
- **Customizable Settings**: Configure API key, microphone, and languages
- **Auto-Update**: Automatically checks for and installs updates (production builds only)

## Installation

Expand All @@ -37,6 +38,16 @@ Access settings through the system tray menu or main window to configure:
- Default microphone
- Transcription language

## Auto-Update

WhispLine includes automatic update functionality that:
- Checks for updates on app startup (production builds only)
- Notifies you when a new version is available
- Downloads and installs updates with your permission
- Can be manually triggered via the "Check for Updates" menu item or button in the main window

**Note**: Auto-update only works in production builds. Development mode (using `npm run dev`) does not check for updates.

## Development

```bash
Expand All @@ -50,6 +61,22 @@ npm run dev
npm run build
```

## Publishing Releases

To enable auto-update functionality for users:

1. Build the app using `npm run build`
2. Create a new release on GitHub with a version tag (e.g., `v1.0.78`)
3. Upload the built artifacts from the `dist/` folder to the GitHub release
4. The auto-updater will automatically detect and download new releases for users

The app uses GitHub Releases as the update server. Each new release should include:
- macOS: `.dmg` file
- Windows: `.exe` installer
- Linux: `.AppImage` file

**Note**: For auto-update to work properly, ensure the `version` field in `package.json` matches the release tag on GitHub.

## Console Character Encoding (Windows)

On Windows, the console may display non-English characters as garbled text due to PowerShell/CMD output encoding settings.
Expand Down
114 changes: 107 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
},
"dependencies": {
"auto-launch": "^5.0.6",
"electron-log": "^5.4.3",
"electron-store": "^10.1.0",
"electron-updater": "^6.7.3",
"groq-sdk": "^0.30.0",
"koffi": "^2.13.0",
"openai": "^4.57.0",
"uiohook-napi": "^1.5.4",
"koffi": "^2.13.0"
"uiohook-napi": "^1.5.4"
},
"build": {
"appId": "com.tao.whispline",
Expand All @@ -44,6 +46,13 @@
"src/**/*",
"assets/**/*"
],
"publish": [
{
"provider": "github",
"owner": "hellotaotao",
"repo": "WhispLine"
}
],
"mac": {
"icon": "assets/icon.icns",
"category": "public.app-category.productivity",
Expand Down
Loading