Skip to content

Commit

Permalink
Initial work on arm64 darwin builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Mar 8, 2021
1 parent 4349298 commit 431a582
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Makefile
Expand Up @@ -45,7 +45,7 @@ freebsd:
$(GOBIN)fyne-cross freebsd -arch amd64 -app-id $(APPID) -icon $(ICON)

darwin:
$(GOBIN)fyne-cross darwin -arch amd64 -app-id $(APPID) -icon $(ICON) -output $(NAME)
$(GOBIN)fyne-cross darwin -arch amd64,arm64 -app-id $(APPID) -icon $(ICON) -output $(NAME)

linux:
$(GOBIN)fyne-cross linux -arch amd64,arm64 -app-id $(APPID) -icon $(ICON)
Expand All @@ -56,20 +56,26 @@ windows:
windows-debug:
$(GOBIN)fyne-cross windows -console -arch amd64 -app-id $(APPID) -icon $(ICON)

release: darwin freebsd linux windows
# Usage: make release VERSION=v2.x.x
# If no version is specified, it will default to "dev" instead.

bundle:
# Usage: make bundle VERSION=v2.x.x

# Move Linux package bundles to the root with correct naming.
mv fyne-cross/dist/linux-amd64/wormhole-gui.tar.gz $(NAME)-$(VERSION)-linux-amd64.tar.gz
mv fyne-cross/dist/linux-arm64/wormhole-gui.tar.gz $(NAME)-$(VERSION)-linux-arm64.tar.gz

# Move FreeBSD package bundles to the root with correct naming.
mv fyne-cross/dist/freebsd-amd64/wormhole-gui.tar.gz $(NAME)-$(VERSION)-freebsd-amd64.tar.gz

# Zip up the darwin package with correct name and move to the root.
# Zip up the darwin packages with correct name and move to the root.
(cd fyne-cross/dist/darwin-amd64/ && zip -r wormhole-gui-darwin-amd64.zip wormhole-gui.app/)
mv fyne-cross/dist/darwin-amd64/wormhole-gui-darwin-amd64.zip $(NAME)-$(VERSION)-darwin-amd64.zip

(cd fyne-cross/dist/darwin-arm64/ && zip -r wormhole-gui-darwin-arm64.zip wormhole-gui.app/)
mv fyne-cross/dist/darwin-arm64/wormhole-gui-darwin-arm64.zip $(NAME)-$(VERSION)-darwin-arm64.zip

# Move Windows package to the root with correct naming.
mv fyne-cross/dist/windows-amd64/wormhole-gui.exe.zip $(NAME)-$(VERSION)-windows-amd64.zip
mv fyne-cross/dist/windows-amd64/wormhole-gui.exe.zip $(NAME)-$(VERSION)-windows-amd64.zip

release: darwin freebsd linux windows bundle
# Usage: make release VERSION=v2.x.x
# If no version is specified, it will default to "dev" instead.

0 comments on commit 431a582

Please sign in to comment.