Skip to content

Commit

Permalink
Output a SHA256 sum together with the release ZIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Roboe committed Jun 8, 2018
1 parent d6d8d86 commit 37bc66c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SHELL := /bin/bash
# Version and release
VERSION := 18.04.1
FLASHABLEZIP := ./build/modem.zip
RELEASENAME := "modem-$(VERSION)_%Y-%m-%d.zip"
RELEASENAME := $(shell date +"modem-$(VERSION)_%Y-%m-%d.zip")

# Paths
ROOT := $(shell pwd)
Expand Down Expand Up @@ -92,9 +92,11 @@ clean:
rm -f "$(EDIFY_BINARY)"

release: $(FLASHABLEZIP)
@echo "Release file location:"
@mkdir -pv release/
@cp -v "$(FLASHABLEZIP)" "release/$$(date +$(RELEASENAME))"
@echo -n "Release file: "
@cp -v "$(FLASHABLEZIP)" "release/$(RELEASENAME)"
@echo "Release checksum: release/$(RELEASENAME).sha256sum"
@cd release/ && $(SHA256SUM) $(RELEASENAME) > $(RELEASENAME).sha256sum

install: $(FLASHABLEZIP)
@echo "Waiting for ADB sideload mode"
Expand Down

0 comments on commit 37bc66c

Please sign in to comment.