Add release script

This commit is contained in:
Kaan Barmore-Genç 2023-05-09 18:44:33 -05:00
parent 037fd6bedb
commit ac4137d905
Signed by: kaan
GPG Key ID: B2E280771CD62FCF
3 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
CFLAGS=-Wall -Wextra -Werror -std=c99 -pedantic -O2
CFLAGS=-Wall -Wextra -Werror -std=c99 -pedantic -O3 -s
backlight-control: main.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

View File

@ -35,3 +35,7 @@ bindsym XF86MonBrightnessDown exec backlight-control -1
"on-scroll-down": "backlight-control -1"
},
```
## Building a release
Run `./build.sh` to build using Docker. This builds with a Debian container.

2
build.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env sh
docker run --rm -it -w /backlight-control -v ./:/backlight-control gcc:12-bullseye make