Skip to content
Merged
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
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install meson ninja
sudo apt update
sudo apt install libwebsockets-dev

- name: Configure project
run: meson setup builddir --buildtype=release

- name: Compile
run: meson compile -C builddir

- name: Create archive
run: tar czvf tshotkeytrigger-linux-amd64.tar.gz -C builddir tshotkeytrigger LICENSE THIRD_PARTY_LICENSES

- uses: actions/upload-artifact@v4
with:
name: tshotkeytrigger-linux-amd64.tar.gz
path: tshotkeytrigger-linux-amd64.tar.gz
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This tool is built to be run on Linux.

Debian/Ubuntu
```
apt install libwebsockets
apt install libwebsockets19t64
```

Arch Linux
Expand All @@ -28,8 +28,6 @@ pacman -S libwebsockets
```

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


## Usage

Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ int main(int argc, const char **argv) {

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

return ERR_PARAMETERS;
}
Expand Down
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ configure_file(input : 'config.h.in',
output : 'config.h',
configuration : config)

fs = import('fs')
fs.copyfile('LICENSE', 'LICENSE')
fs.copyfile('THIRD_PARTY_LICENSES', 'THIRD_PARTY_LICENSES')

libwebsocketsdep = dependency('libwebsockets')
executable('tshotkeytrigger', ['main.c', 'datafile.c'], dependencies: [libwebsocketsdep])