-
Notifications
You must be signed in to change notification settings - Fork 4
/
Build.cmd
executable file
·49 lines (41 loc) · 1.53 KB
/
Build.cmd
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
@REM SPDX-FileCopyrightText: © 2019-2022 Nadim Kobeissi <[email protected]>
@REM SPDX-License-Identifier: GPL-3.0-only
@echo off
@echo|set /p="[Verifpal] Installing dependencies..."
@go get -u github.com/mna/pigeon
@go get -u github.com/logrusorgru/aurora
@go get -u github.com/josephspurrier/goversioninfo/cmd/goversioninfo
@echo OK
@echo|set /p="[Verifpal] Building Verifpal for Windows..."
@setx GOOS "" >nul
@go generate verifpal.com/cmd/verifpal
@setx GOOS "windows" >nul
@setx GOARCH "amd64" >nul
@go build -trimpath -gcflags="-e" -ldflags="-s -w" -o build\windows verifpal.com/cmd/verifpal
@echo OK
@echo|set /p="[Verifpal] Building Verifpal for Linux..."
@setx GOOS "" >nul
@go generate verifpal.com/cmd/verifpal
@setx GOOS "linux" >nul
@setx GOARCH "amd64" >nul
@go build -trimpath -gcflags="-e" -ldflags="-s -w" -o build\linux verifpal.com/cmd/verifpal
@echo OK
@echo|set /p="[Verifpal] Building Verifpal for macOS..."
@setx GOOS "" >nul
@go generate verifpal.com/cmd/verifpal
@setx GOOS "darwin" >nul
@setx GOARCH "amd64" >nul
@go build -trimpath -gcflags="-e" -ldflags="-s -w" -o build\macos verifpal.com/cmd/verifpal
@echo OK
@echo|set /p="[Verifpal] Building Verifpal for FreeBSD..."
@setx GOOS "" >nul
@go generate verifpal.com/cmd/verifpal
@setx GOOS "freebsd" >nul
@setx GOARCH "amd64" >nul
@go build -trimpath -gcflags="-e" -ldflags="-s -w" -o build\freebsd verifpal.com/cmd/verifpal
@echo OK
@echo|set /p="[Verifpal] Cleaning up..."
@setx GOOS "" >nul
@del cmd\verifpal\resource.syso
@echo OK
@exit /b