-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakego.cmd
More file actions
55 lines (48 loc) · 1.55 KB
/
Copy pathmakego.cmd
File metadata and controls
55 lines (48 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
setlocal
cd /d "%~dp0"
go mod tidy
if errorlevel 1 exit /b 1
echo Building Windows (amd64)...
set GOOS=windows
set GOARCH=amd64
go build -o dist\windows-amd64\binktermphp-pm.exe .\cmd\pm
if errorlevel 1 exit /b 1
go build -o dist\windows-amd64\binktermphp-ctl.exe .\cmd\ctl
if errorlevel 1 exit /b 1
echo Building Linux (amd64)...
set GOOS=linux
set GOARCH=amd64
go build -o dist\linux-amd64\binktermphp-pm .\cmd\pm
if errorlevel 1 exit /b 1
go build -o dist\linux-amd64\binktermphp-ctl .\cmd\ctl
if errorlevel 1 exit /b 1
echo Building Linux (arm64)...
set GOOS=linux
set GOARCH=arm64
go build -o dist\linux-arm64\binktermphp-pm .\cmd\pm
if errorlevel 1 exit /b 1
go build -o dist\linux-arm64\binktermphp-ctl .\cmd\ctl
if errorlevel 1 exit /b 1
echo Building macOS (amd64)...
set GOOS=darwin
set GOARCH=amd64
go build -o dist\darwin-amd64\binktermphp-pm .\cmd\pm
if errorlevel 1 exit /b 1
go build -o dist\darwin-amd64\binktermphp-ctl .\cmd\ctl
if errorlevel 1 exit /b 1
echo Building macOS (arm64)...
set GOOS=darwin
set GOARCH=arm64
go build -o dist\darwin-arm64\binktermphp-pm .\cmd\pm
if errorlevel 1 exit /b 1
go build -o dist\darwin-arm64\binktermphp-ctl .\cmd\ctl
if errorlevel 1 exit /b 1
echo.
echo Done. Binaries written to dist\:
echo dist\windows-amd64\ binktermphp-pm.exe binktermphp-ctl.exe
echo dist\linux-amd64\ binktermphp-pm binktermphp-ctl
echo dist\linux-arm64\ binktermphp-pm binktermphp-ctl
echo dist\darwin-amd64\ binktermphp-pm binktermphp-ctl
echo dist\darwin-arm64\ binktermphp-pm binktermphp-ctl
endlocal