This commit is contained in:
siim-m
2024-06-19 13:19:36 +03:00
committed by doc-hex
parent eddfa75c9a
commit b0e52cf356
19 changed files with 0 additions and 0 deletions

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