Push code

This commit is contained in:
2026-01-28 23:03:50 +01:00
parent 5bd203b516
commit 00bbd6534b
19 changed files with 1224 additions and 0 deletions

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
.PHONY: build package publish clean
# Variables
DIST_DIR := dist
VERSION := 1.0.2
build:
@echo "Building FeatherDDNS..."
@mkdir -p ./bin
@go build -buildmode=pie -trimpath -ldflags='-linkmode=external -extldflags="-Wl,-z,relro,-z,now" -s -w' -o ./bin/FeatherDDNS .
package: build
@echo "Packaging FeatherDDNS using Debian container..."
@chmod +x scripts/package.sh scripts/build-deb.sh
@VERSION=$(VERSION) ./scripts/package.sh
@echo ""
@echo "Package built successfully!"
publish:
@echo "Publishing to Gitea APT registry..."
@chmod +x scripts/publish-to-gitea.sh
@./scripts/publish-to-gitea.sh
clean:
@echo "Cleaning build artifacts..."
@rm -rf ./bin ./build ./$(DIST_DIR)