Skip to content

Commit 4c948e3

Browse files
committed
test
1 parent 585f8a5 commit 4c948e3

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
- name: Run Pyinstaller
3333
run: |
3434
poetry run pyinstaller keyboard.spec
35-
mv ./dist/keyboard ./dist/keyboard-linux-amd64
35+
version=$(ldd --version | head -n 1 | cut -d ' ' -f 4)
36+
pyversion=$(python --version 2>&1 | cut -d ' ' -f 2)
37+
mv ./dist/keyboard ./dist/virtual-keyboard-py$pyversion-glib$version-x86_64
3638
3739
- name: Store Dist
3840
uses: actions/upload-artifact@v4

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ I have been inspired by [this website](https://www.branah.com/) in my trilingual
1212

1313
### Dependencies
1414

15-
- Python (>=3.11) download [here](https://www.python.org/downloads/)
15+
- Python (>=3.12) download [here](https://www.python.org/downloads/)
1616
- GTK (>=4) download [here](https://gnome.pages.gitlab.gnome.org/pygobject/getting_started.html)
1717

1818
Note: please don't do global system installation of python dependencies through pip, poetry can install it safely for you
@@ -28,10 +28,16 @@ Or roll your own binary
2828

2929
```shell
3030
poetry shell && poetry install --with dev
31-
poetry run pyinstaller --clean --onefile -w --add-data "data/style.css:./data" --exclude-module=pytest keyboard.py
31+
poetry run pyinstaller keyboard.spec
3232
./dist/keyboard
3333
```
3434

35+
### Linux Binaries
36+
37+
Grab the binary from releases for your OS then rename it to `virtual-keyboard` and move to `/usr/local/bin`
38+
39+
Create the `virtual-keyboard.desktop` in `/usr/share/applications` and copy the contents of the [this desktop file](https://github.com/mrwormhole/virtual-keyboard/blob/main/virtual-keyboard.desktop)
40+
3541
### FAQs
3642

3743
- Do you plan to add more languages?

virtual-keyboard.desktop

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=Virtual Keyboard
4+
GenericName=On-screen Keyboard
5+
Comment=All-in-one virtual keyboard
6+
Exec=/usr/local/bin/virtual-keyboard

0 commit comments

Comments
 (0)