From 9267f9c96c1301a7f6920111518b002cf2ec4b33 Mon Sep 17 00:00:00 2001 From: Mark Karpeles Date: Tue, 3 Nov 2020 20:57:06 +0900 Subject: [PATCH 1/2] Do not build darwin/arm as it is not supported anymore in go1.15 see https://github.com/fyne-io/fyne/issues/1497 --- cmd/fyne/internal/mobile/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fyne/internal/mobile/build.go b/cmd/fyne/internal/mobile/build.go index 2b031232ce..0dea03f552 100644 --- a/cmd/fyne/internal/mobile/build.go +++ b/cmd/fyne/internal/mobile/build.go @@ -152,7 +152,7 @@ func runBuildImpl(cmd *command) (*packages.Package, error) { return nil, fmt.Errorf("-os=ios requires XCode") } if buildRelease { - targetArchs = []string{"arm", "arm64"} + targetArchs = []string{"arm64"} } if pkg.Name != "main" { From 8a1804d482d659c64fef3b9c6563b80f529536c0 Mon Sep 17 00:00:00 2001 From: Mark Karpeles Date: Wed, 4 Nov 2020 00:23:07 +0900 Subject: [PATCH 2/2] fix resize parameter passed to sips to be the requested size, see https://github.com/fyne-io/fyne/issues/1498 --- cmd/fyne/commands/package-mobile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fyne/commands/package-mobile.go b/cmd/fyne/commands/package-mobile.go index 18db3f77e3..966cd82727 100644 --- a/cmd/fyne/commands/package-mobile.go +++ b/cmd/fyne/commands/package-mobile.go @@ -34,6 +34,6 @@ func (p *packager) packageIOS() error { } func copyResizeIcon(size, dir string) error { - cmd := exec.Command("sips", "-o", dir+"/Icon_"+size+".png", "-Z", "120", dir+"/Icon.png") + cmd := exec.Command("sips", "-o", dir+"/Icon_"+size+".png", "-Z", size, dir+"/Icon.png") return cmd.Run() }