1
0
mirror of https://github.com/zyedidia/micro synced 2024-06-29 05:54:24 +00:00

Fix info-plist script

This commit is contained in:
Zachary Yedidia 2022-07-21 17:46:23 -07:00
parent ba11d98fef
commit 490ee93796
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ DATE = $(shell GOOS=$(shell go env GOHOSTOS) GOARCH=$(shell go env GOHOSTARCH) \
go run tools/build-date.go)
ADDITIONAL_GO_LINKER_FLAGS = $(shell GOOS=$(shell go env GOHOSTOS) \
GOARCH=$(shell go env GOHOSTARCH) \
go run tools/info-plist.go "$(GOOS)" "$(VERSION)")
go run tools/info-plist.go "$(shell go env GOOS)" "$(VERSION)")
GOBIN ?= $(shell go env GOPATH)/bin
GOVARS = -X github.com/zyedidia/micro/v2/internal/util.Version=$(VERSION) -X github.com/zyedidia/micro/v2/internal/util.CommitHash=$(HASH) -X 'github.com/zyedidia/micro/v2/internal/util.CompileDate=$(DATE)'
DEBUGVAR = -X github.com/zyedidia/micro/v2/internal/util.Debug=ON

View File

@ -7,6 +7,7 @@ import (
"fmt"
"io/ioutil"
"os"
"runtime"
)
func check(e error) {
@ -17,7 +18,7 @@ func check(e error) {
func main() {
if len(os.Args) == 3 {
if os.Args[1] == "darwin" {
if os.Args[1] == "darwin" && runtime.GOOS == "darwin" {
rawInfoPlistString := `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">