From 4e06a0bce9b1f31858ddd951c236246dfb0ae56a Mon Sep 17 00:00:00 2001
From: Nick White <git@njw.name>
Date: Tue, 6 Feb 2024 20:13:01 +0000
Subject: Fix signing of MacOS build

---
 cmd/rescribe/makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'cmd')

diff --git a/cmd/rescribe/makefile b/cmd/rescribe/makefile
index d9302ea..9677fce 100644
--- a/cmd/rescribe/makefile
+++ b/cmd/rescribe/makefile
@@ -44,7 +44,8 @@ build/darwin/rescribe: build/darwin_amd64/rescribe build/darwin_arm64/rescribe
 
 build/darwin/Rescribe.app: build/darwin/rescribe
 	go install fyne.io/fyne/v2/cmd/fyne@v2.1.2
-	fyne package --tags embed --name Rescribe --exe build/darwin/rescribe --os darwin --icon icon.png
+	fyne package --release --certificate Rescribe --id xyz.rescribe.rescribe --tags embed --name Rescribe --exe build/darwin/rescribe --os darwin --icon icon.png
+	codesign -s Rescribe Rescribe.app
 	mv Rescribe.app $@
 
 dist/darwin/rescribe.zip: build/darwin/Rescribe.app
-- 
cgit v1.2.1-24-ge1ad