diff --git a/launcher/Makefile b/launcher/Makefile index 49690f1..f13d906 100644 --- a/launcher/Makefile +++ b/launcher/Makefile @@ -155,14 +155,14 @@ $(CLI_EXE_FILE)-arm64: $(DEPENDENCIES_CLI) $(CLI_EXE_FILE): $(CLI_EXE_FILE)-amd64 $(CLI_EXE_FILE)-arm64 lipo -create -output $(@) $(CLI_EXE_FILE)-amd64 $(CLI_EXE_FILE)-arm64 else +ARCH := $(shell go env GOARCH) + .PHONY: $(GUI_EXE_FILE) $(GUI_EXE_FILE): freetype2 assets $(DEPENDENCIES_GUI) - $(eval ARCH := amd64) $(call run-build-gui) .PHONY: $(CLI_EXE_FILE) $(CLI_EXE_FILE): $(DEPENDENCIES_CLI) - $(eval ARCH := amd64) $(call run-build-cli) endif diff --git a/launcher/freetype2/Makefile b/launcher/freetype2/Makefile index 5c92605..3b8c814 100644 --- a/launcher/freetype2/Makefile +++ b/launcher/freetype2/Makefile @@ -65,7 +65,11 @@ build-amd64/bin/lib/libfreetype.a: $(eval ARCH_NAME := amd64) $(call run-build) -build: build-amd64/bin/lib/libfreetype.a +build-arm64/bin/lib/libfreetype.a: + $(eval ARCH_NAME := arm64) + $(call run-build) + +build: build-amd64/bin/lib/libfreetype.a build-arm64/bin/lib/libfreetype.a endif clean: