diff --git a/.woodpecker/woodpecker.yml b/.woodpecker/woodpecker.yml new file mode 100644 index 0000000..a394c8a --- /dev/null +++ b/.woodpecker/woodpecker.yml @@ -0,0 +1,13 @@ +steps: + - name: build-archieve + when: + event: [tag, push] + image: alpine:3 + commands: + - echo "FIX ME" + - apk update && apk add libusb-dev make gcc musl-dev + - make + - mkdir -p /builds/argbColors + - cp bin/argbColors /builds/argbColors/ + volumes: + - /home/www/builds:/builds diff --git a/Makefile b/Makefile index 31f3555..44b4251 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,13 @@ all: $(APP_NAME) argbColors: ./src/$(APP_NAME).c $(MKDIR_P) ./bin - $(CC) -std=c17 -I/usr/include/ ./src/$(APP_NAME).c -lusb -lusb-1.0 -o ./bin/$(APP_NAME) + $(CC) -std=c17 -I/usr/include/ ./src/$(APP_NAME).c -lusb-1.0 -o ./bin/$(APP_NAME) clean: rm -rf ./bin/*.o \ ./bin/$(APP_NAME) -#install: -# install ./bin/$(APP_NAME) /usr/bin -# -#uninstall: -# rm /usr/bin/$(APP_NAME) +install: + install ./bin/$(APP_NAME) /usr/bin + +uninstall: + rm /usr/bin/$(APP_NAME) diff --git a/README.md b/README.md new file mode 100644 index 0000000..226ab4a --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# argb controls for 048d:5711 Integrated Technology Express, Inc. GIGABYTE Device + + +![License](https://img.shields.io/badge/License-GPLv3-blue.svg) [![status-badge](https://ci.redrise.ru/api/badges/13/status.svg)](https://ci.redrise.ru/repos/13) + +Reference hardware used: Z890 AORUS PRO ICE + +### udev rules + +To make application work once started by user, and not only from root: +``` +# vim /etc/udev/rules.d/99-gigabyte.rules +SUBSYSTEM=="input", MODE="0666" +SUBSYSTEM=="usb", ATTRS{idVendor}=="048d", ATTRS{idProduct}=="5711", MODE="0666" +# udevadm control --reload-rules && udevadm trigger +``` + +### License +GPLv3 or higher + +### Research + +See SPECIFICATION.md + +This application is in no way affiliated with GIGABYTE, Integrated Technology Express or any of its partners \ No newline at end of file