Skip to content

Commit

Permalink
Begin transition to Python 3.12, new macOS signing
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Feb 29, 2024
1 parent 98ba69b commit 808fd09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ CXFREEZE_EXT ?= win-$(CXFREEZE_ARCH)-$(CXFREEZE_VER)
SIGNTOOL ?= "c:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86\signtool.exe"


# PY[3] is the target Python interpreter; require 3.9+. Detect if it is named python3 or python.
# PY[3] is the target Python interpreter; require 3.11+. Detect if it is named python3 or python.
PY3 ?= $(shell python3 --version >/dev/null 2>&1 && echo python3 || echo python )
VERSION = $(shell $(PY3) -c 'exec(open("slip39/version.py").read()); print( __version__ )')
PLATFORM ?= $(shell $(PY3) -c "import sys; print( sys.platform )" )
ifeq ($(PLATFORM),darwin)
INSTALLER := dmg
INSTALLER := pkg
else ifeq ($(PLATFORM),win32)
INSTALLER := msi
else
Expand Down Expand Up @@ -303,7 +303,7 @@ dist/slip39-$(VERSION)-win64.msi: build/exe.$(CXFREEZE_EXT)/SLIP-39.exe # signin
#
dist/SLIP-39-$(VERSION).dmg: dist/SLIP-39.app
@echo -e "\n\n*** Creating and signing DMG $@..."
npx create-dmg --overwrite $<
npx create-dmg -v --overwrite --identity "$(PKGID)" $< dist/
mv "SLIP-39 $(VERSION).dmg" "$@"
@echo "Checking signature..."; ./SLIP-39.metadata/check-signature $@

Expand Down

0 comments on commit 808fd09

Please sign in to comment.