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 backlight-control: main.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

View file

@ -35,3 +35,7 @@ bindsym XF86MonBrightnessDown exec backlight-control -1
"on-scroll-down": "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