mirror of
https://github.com/Coldcard/push-tx.git
synced 2026-04-26 08:54:02 +00:00
17 lines
470 B
Makefile
17 lines
470 B
Makefile
.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
|