Skip to content

Commit f0f3b82

Browse files
author
opencode
committed
Add flatpak manifest, build job, and update README with flatpak download link
1 parent 3ff4675 commit f0f3b82

File tree

3 files changed

+66
-2
lines changed

3 files changed

+66
-2
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,28 @@ jobs:
7373
name: Voice2Text-Linux
7474
path: dist/Voice2Text
7575

76+
build-flatpak:
77+
runs-on: ubuntu-latest
78+
steps:
79+
- uses: actions/checkout@v4
80+
- name: Install flatpak
81+
run: sudo apt-get update && sudo apt-get install -y flatpak
82+
- name: Add flathub repo
83+
run: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
84+
- name: Install flatpak-builder
85+
run: flatpak install -y flathub org.flatpak.Builder
86+
- name: Build flatpak
87+
run: flatpak run org.flatpak.Builder --repo=repo build-dir com.voice2text.app.json
88+
- name: Bundle flatpak
89+
run: flatpak build-bundle repo com.voice2text.app.flatpak com.voice2text.app
90+
- name: Upload artifact
91+
uses: actions/upload-artifact@v4
92+
with:
93+
name: Voice2Text-Flatpak
94+
path: com.voice2text.app.flatpak
95+
7696
release:
77-
needs: [build-windows, build-macos, build-linux]
97+
needs: [build-windows, build-macos, build-linux, build-flatpak]
7898
runs-on: ubuntu-latest
7999
permissions:
80100
contents: write
@@ -90,5 +110,6 @@ jobs:
90110
Voice2Text-Windows/Voice2Text.exe
91111
Voice2Text-macOS/Voice2Text
92112
Voice2Text-Linux/Voice2Text
113+
Voice2Text-Flatpak/com.voice2text.app.flatpak
93114
draft: false
94115
prerelease: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- [Windows](https://github.com/crhy/Voice2Text-AI/releases/download/v0.2/Voice2Text.exe)
88
- [macOS](https://github.com/crhy/Voice2Text-AI/releases/download/v0.2/Voice2Text)
9-
- Linux: Not available (build issues)
9+
- [Linux (Flatpak)](https://github.com/crhy/Voice2Text-AI/releases/download/v0.2/com.voice2text.app.flatpak)
1010

1111
A cross-platform Python application that transcribes voice input using GPU-accelerated Whisper, sends text to local Ollama AI models for intelligent responses, and reads the output aloud with text-to-speech.
1212

com.voice2text.app.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"app-id": "com.voice2text.app",
3+
"runtime": "org.freedesktop.Platform",
4+
"runtime-version": "23.08",
5+
"sdk": "org.freedesktop.Sdk",
6+
"command": "voice_app.py",
7+
"finish-args": [
8+
"--share=network",
9+
"--share=ipc",
10+
"--socket=x11",
11+
"--socket=wayland",
12+
"--device=dri",
13+
"--socket=pulseaudio"
14+
],
15+
"modules": [
16+
{
17+
"name": "python3-pip",
18+
"buildsystem": "simple",
19+
"build-commands": [
20+
"pip3 install --user pip"
21+
],
22+
"sources": []
23+
},
24+
{
25+
"name": "voice2text",
26+
"buildsystem": "simple",
27+
"build-commands": [
28+
"pip3 install --prefix=/app -r requirements.txt",
29+
"mkdir -p /app/bin",
30+
"cp voice_app.py /app/bin/",
31+
"cp voice_config.json /app/bin/",
32+
"cp logo.png /app/bin/",
33+
"cp config.json /app/bin/"
34+
],
35+
"sources": [
36+
{
37+
"type": "dir",
38+
"path": "."
39+
}
40+
]
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)