Просмотр исходного кода

macOS server support, this is just to support iOS development, not for prod

Philipp Heckel 3 лет назад
Родитель
Сommit
a2825880bc
3 измененных файлов с 4 добавлено и 2 удалено
  1. 2 2
      .goreleaser.yml
  2. 2 0
      cmd/serve.go
  3. 0 0
      cmd/serve_test.go

+ 2 - 2
.goreleaser.yml

@@ -70,9 +70,9 @@ builds:
     id: ntfy_darwin_all
     binary: ntfy
     env:
-      - CGO_ENABLED=0 # explicitly disable, since we don't need go-sqlite3
+      - CGO_ENABLED=1 # explicitly disable, since we don't need go-sqlite3
     ldflags:
-      - "-X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
+      - "-linkmode=external -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
     goos: [darwin]
     goarch: [amd64, arm64] # will be combined to "universal binary" (see below)
 nfpms:

+ 2 - 0
cmd/serve_linux.go → cmd/serve.go

@@ -1,3 +1,5 @@
+//go:build !windows
+
 package cmd
 
 import (

+ 0 - 0
cmd/serve_linux_test.go → cmd/serve_test.go