From bb069ac546c233959a697a09e450bd62e3e4ff57 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Tue, 4 Oct 2022 15:23:12 +0800 Subject: [PATCH] opt some --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 830dceb2..fd2a4183 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,8 @@ def: @ [ -f src/version.go ] || echo "package main" > src/version.go @ [ -f src/binpack.go ] || echo "package main" > src/binpack.go -app: - CGO_ENABLED=1 go build -o usr/publish/contexts.app/Contents/MacOS/contexts src/webview.go src/binpack.go && open usr/publish/contexts.app +app: def + CGO_ENABLED=1 go build -o usr/publish/contexts.app/Contents/MacOS/contexts src/webview.go src/version.go src/binpack.go && open usr/publish/contexts.app # hdiutil create usr/publish/tmp.dmg -ov -volname "ContextsInstall" -fs HFS+ -srcfolder "usr/publish/contexts.app" # rm -f usr/publish/ContextsInstall.dmg # hdiutil convert usr/publish/tmp.dmg -format UDZO -o usr/publish/ContextsInstall.dmg