build scripts
Some checks failed
Build Go/Fyne App for macOS ARM64 / build (pull_request) Has been cancelled
Some checks failed
Build Go/Fyne App for macOS ARM64 / build (pull_request) Has been cancelled
This commit is contained in:
25
Makefile
25
Makefile
@@ -17,6 +17,7 @@ build-dev:
|
||||
build: build-dev
|
||||
|
||||
build-release:
|
||||
@rm -rf ./EpochSilicon.app
|
||||
@echo "Building optimized release version..."
|
||||
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build \
|
||||
-ldflags="-s -w -X main.appVersion=$$(grep Version FyneApp.toml | cut -d'"' -f2)" \
|
||||
@@ -40,15 +41,25 @@ build-release:
|
||||
clean:
|
||||
rm -rf EpochSilicon.app
|
||||
rm -f EpochSilicon.dmg
|
||||
rm -f EpochSilicon.zip
|
||||
rm -f epochsilicon
|
||||
|
||||
dmg: build-release
|
||||
@echo "Preparing DMG staging directory..."
|
||||
sign: build-release
|
||||
codesign --timestamp --options runtime -s "Developer ID Application: Evan Burkey (2TXG4AP658)" ./EpochSilicon.app/Contents/Resources/rosettax87/rosettax87
|
||||
codesign --timestamp --options runtime -s "Developer ID Application: Evan Burkey (2TXG4AP658)" ./EpochSilicon.app/Contents/Resources/rosettax87/libRuntimeRosettax87
|
||||
codesign --timestamp --options runtime -s "Developer ID Application: Evan Burkey (2TXG4AP658)" ./EpochSilicon.app
|
||||
@/usr/bin/ditto -c -k -rsrc --sequesterRsrc --keepParent ./EpochSilicon.app EpochSilicon.zip
|
||||
xcrun notarytool submit --keychain-profile "EpochSilicon" --wait ./EpochSilicon.zip
|
||||
xcrun stapler staple ./EpochSilicon.app
|
||||
|
||||
dmg: build-release sign
|
||||
echo "Preparing DMG staging directory..."
|
||||
@rm -rf dmg-staging
|
||||
@mkdir dmg-staging
|
||||
@cp -R EpochSilicon.app dmg-staging/
|
||||
@/usr/bin/ditto --rsrc ./EpochSilicon.app dmg-staging/EpochSilicon.app
|
||||
@ln -s /Applications dmg-staging/Applications
|
||||
@echo "Creating DMG file..."
|
||||
@hdiutil create -volname EpochSilicon -srcfolder dmg-staging -ov -format UDZO EpochSilicon.dmg
|
||||
@echo "DMG created: EpochSilicon.dmg"
|
||||
@rm -rf dmg-staging
|
||||
hdiutil create -volname EpochSilicon -srcfolder dmg-staging -ov -format UDZO EpochSilicon.dmg
|
||||
@rm -rf dmg-staging
|
||||
codesign --timestamp -i com.burkey.epochsilicon -s "Developer ID Application: Evan Burkey (2TXG4AP658)" ./EpochSilicon.dmg
|
||||
xcrun notarytool submit --keychain-profile "EpochSilicon" --wait ./EpochSilicon.dmg
|
||||
xcrun stapler staple ./EpochSilicon.dmg
|
||||
|
Reference in New Issue
Block a user