From 484bfbe3cfb677bda7faabecbfa3cc25dfd39e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Czapli=C5=84ski?= Date: Thu, 10 Dec 2020 22:23:43 +0100 Subject: [PATCH] fix: default to -arch amd64 This is the default arch on most modern systems. --- README.txt | 2 +- rsrc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index bd797be..197974e 100644 --- a/README.txt +++ b/README.txt @@ -14,7 +14,7 @@ files in the same directory. OPTIONS: -arch string - architecture of output file - one of: 386, amd64, [EXPERIMENTAL: arm, arm64] (default "386") + architecture of output file - one of: 386, amd64, [EXPERIMENTAL: arm, arm64] (default "amd64") -ico string comma-separated list of paths to .ico files to embed -manifest string diff --git a/rsrc.go b/rsrc.go index 5c3d44f..7ba2606 100644 --- a/rsrc.go +++ b/rsrc.go @@ -29,7 +29,7 @@ func main() { flags.StringVar(&fnamein, "manifest", "", "path to a Windows manifest file to embed") flags.StringVar(&fnameico, "ico", "", "comma-separated list of paths to .ico files to embed") flags.StringVar(&fnameout, "o", "", "name of output COFF (.res or .syso) file; if set to empty, will default to 'rsrc_windows_{arch}.syso'") - flags.StringVar(&arch, "arch", "386", "architecture of output file - one of: 386, amd64, [EXPERIMENTAL: arm, arm64]") + flags.StringVar(&arch, "arch", "amd64", "architecture of output file - one of: 386, amd64, [EXPERIMENTAL: arm, arm64]") flags.Usage = func() { fmt.Fprintf(os.Stderr, usage, os.Args[0]) flags.PrintDefaults()