From 9a03e4a3594250f9f22ed9bfa8cd5faf0bf21cd2 Mon Sep 17 00:00:00 2001 From: songjc <969378911@qq.com> Date: Mon, 16 Oct 2023 16:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0arm64=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magefiles/main.go | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/magefiles/main.go b/magefiles/main.go index b1fa0db..2ee4010 100644 --- a/magefiles/main.go +++ b/magefiles/main.go @@ -10,6 +10,9 @@ import ( "gitlink.org.cn/cloudream/common/magefiles" + //mage:import + _ "gitlink.org.cn/cloudream/common/magefiles/targets" + cp "github.com/otiai10/copy" ) @@ -17,21 +20,6 @@ const ( BuildDir = "./build" ) -// [配置项]设置编译平台为windows -func Win() { - magefiles.Global.OS = "win" -} - -// [配置项]设置编译平台为linux -func Linux() { - magefiles.Global.OS = "linux" -} - -// [配置项]设置编译架构为amd64 -func AMD64() { - magefiles.Global.Arch = "amd64" -} - func All() error { if err := Bin(); err != nil { return err