This commit is contained in:
siim-m
2024-06-14 18:35:25 +03:00
parent 5a1adc441f
commit f873e07db4
19 changed files with 3549 additions and 0 deletions

16
cc_website/Makefile Normal file
View File

@@ -0,0 +1,16 @@
.PHONY: install
install:
npm install
.PHONY: build
build: install
npm run build && PUSHTX_SINGLE_FILE=1 npm run build
# hash and sign all important files - both the source and built versions
.PHONY: sign
sign:
find . -type f \
\( -iname '*.js' -o -iname '*.ts' -o -iname '*.html' -o -iname '*.css' -o -iname '*.json' \) \
! -path './node_modules/*' \
-exec shasum -a 256 {} \; > SHA256SUMS && \
gpg --detach-sign --armor --digest-algo SHA256 --yes SHA256SUMS