Skip to content

Commit 1111109

Browse files
authored
Create GHA build action, minor updates to the readme and help output (#1)
1 parent ee5fb7b commit 1111109

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Python
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: '3.x'
15+
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install meson ninja
19+
sudo apt update
20+
sudo apt install libwebsockets-dev
21+
22+
- name: Configure project
23+
run: meson setup builddir --buildtype=release
24+
25+
- name: Compile
26+
run: meson compile -C builddir
27+
28+
- name: Create archive
29+
run: tar czvf tshotkeytrigger-linux-amd64.tar.gz -C builddir tshotkeytrigger LICENSE THIRD_PARTY_LICENSES
30+
31+
- uses: actions/upload-artifact@v4
32+
with:
33+
name: tshotkeytrigger-linux-amd64.tar.gz
34+
path: tshotkeytrigger-linux-amd64.tar.gz

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This tool is built to be run on Linux.
1919

2020
Debian/Ubuntu
2121
```
22-
apt install libwebsockets
22+
apt install libwebsockets19t64
2323
```
2424

2525
Arch Linux
@@ -28,8 +28,6 @@ pacman -S libwebsockets
2828
```
2929

3030
2. Download the archive from the releases page, extract it and copy the executable to your selected directory.
31-
> **Note:** This application is still under development and has not been released.
32-
3331

3432
## Usage
3533

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ int main(int argc, const char **argv) {
276276

277277
if (!(button_id = lws_cmdline_option(argc, argv, "--button-id"))) {
278278
printf("Invalid parameters.\n");
279-
printf("Use: \"tshotkeytrigger --help\" to see the correct usage.");
279+
printf("Use: \"tshotkeytrigger --help\" to see the correct usage.\n");
280280

281281
return ERR_PARAMETERS;
282282
}

meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ configure_file(input : 'config.h.in',
88
output : 'config.h',
99
configuration : config)
1010

11+
fs = import('fs')
12+
fs.copyfile('LICENSE', 'LICENSE')
13+
fs.copyfile('THIRD_PARTY_LICENSES', 'THIRD_PARTY_LICENSES')
14+
1115
libwebsocketsdep = dependency('libwebsockets')
1216
executable('tshotkeytrigger', ['main.c', 'datafile.c'], dependencies: [libwebsocketsdep])
1317

0 commit comments

Comments
 (0)