Skip to content

Commit 6ded158

Browse files
committed
Add build step
1 parent a0f33d8 commit 6ded158

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/*.woff2
33
/*.ttf
44
/style.css
5+
/google-font-localizer*

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
go build -o google-font-localizer
4+
GOOS=linux GOARCH=amd64 go build -o google-font-localizer-linux-amd64
5+
GOOS=linux GOARCH=arm go build -o google-font-localizer-linux-arm
6+
GOOS=linux GOARCH=arm64 go build -o google-font-localizer-linux-arm64
7+
GOOS=darwin GOARCH=amd64 go build -o google-font-localizer-darwin-amd64
8+
GOOS=darwin GOARCH=arm64 go build -o google-font-localizer-darwin-arm64

main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"regexp"
1414
"sync"
1515

16-
validator "github.com/go-playground/validator/v10"
1716
"github.com/urfave/cli/v2"
1817
)
1918

@@ -22,7 +21,6 @@ const (
2221
filePerm = 0663
2322
)
2423

25-
var validate = validator.New()
2624
var reUrl = regexp.MustCompile(`url\((https:\/\/[^\)]+)\)`)
2725

2826
func main() {

0 commit comments

Comments
 (0)