Skip to content

Commit 8bf0e2c

Browse files
authored
Update build.bat
1 parent b339ee6 commit 8bf0e2c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Windows/build.bat

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22

3-
:: 获取当前目录名
3+
:: 获取当前目录名
44
set curf=%~p0%
55
set curf=%curf:~0,-1%
66
:getfolder
@@ -14,55 +14,55 @@ FOR /F "tokens=1,* delims=\/" %%i in ("%curf%") do (
1414
echo %curf%
1515
chdir
1616
::set name="Aopo"
17-
echo "正在编译: %curf%_Linux-amd64..."
17+
echo "正在编译: %curf%_Linux-amd64..."
1818
set CGO_ENABLED=0
1919
set GOOS=linux
2020
set GOARCH=amd64
2121
go build -ldflags "-s -w" -o ./releases/%curf%_Linux_amd64
2222

2323
@echo off
24-
echo "正在编译: %curf%_Linux-amd..."
24+
echo "正在编译: %curf%_Linux-amd..."
2525
set CGO_ENABLED=0
2626
set GOOS=linux
2727
set GOARCH=386
2828
go build -ldflags "-s -w" -o ./releases/%curf%_Linux_amd
2929

3030
@echo off
31-
echo "正在编译: %curf%_Linux-arm64..."
31+
echo "正在编译: %curf%_Linux-arm64..."
3232
set CGO_ENABLED=0
3333
set GOOS=linux
3434
set GOARCH=arm64
3535
go build -ldflags "-s -w" -o ./releases/%curf%_Linux_arm64
3636

3737
@echo off
38-
echo "正在编译: %curf%_Linux-arm..."
38+
echo "正在编译: %curf%_Linux-arm..."
3939
set CGO_ENABLED=0
4040
set GOOS=linux
4141
set GOARCH=386
4242
go build -ldflags "-s -w" -o ./releases/%curf%_Linux_arm
4343

44-
echo "正在编译: %curf%_Windows-64..."
44+
echo "正在编译: %curf%_Windows-64..."
4545
set CGO_ENABLED=0
46-
set GOOS=linux
46+
set GOOS=windows
4747
set GOARCH=amd64
4848
go build -ldflags "-s -w" -o ./releases/%curf%_Windows_64.exe
4949

50-
echo "正在编译: %curf%_Windows-86..."
50+
echo "正在编译: %curf%_Windows-86..."
5151
set CGO_ENABLED=0
5252
set GOOS=windows
5353
set GOARCH=386
5454
go build -ldflags "-s -w" -o ./releases/%curf%_Windows_86.exe
5555

56-
echo "正在编译: %curf%_Mac-Intel..."
56+
echo "正在编译: %curf%_Mac-Intel..."
5757
set CGO_ENABLED=0
5858
set GOOS=darwin
5959
set GOARCH=amd64
6060
go build -ldflags "-s -w" -o ./releases/%curf%_Intel_amd64
6161

62-
echo "正在编译: %curf%_Mac-M1..."
62+
echo "正在编译: %curf%_Mac-M1..."
6363
set CGO_ENABLED=0
6464
set GOOS=darwin
6565
set GOARCH=arm64
6666
go build -ldflags "-s -w" -o ./releases/%curf%_M1_arm64
6767

68-
echo "=======================================END结束======================================="
68+
echo "=======================================END结束======================================="

0 commit comments

Comments
 (0)