]> git.lizzy.rs Git - micro.git/blobdiff - tools/info-plist.go
Fix info-plist script
[micro.git] / tools / info-plist.go
index d57a7b2479b4b30a6aba87a8698e71b7094bc392..22a1db0ef78afe83ea3393469ef1772ba4b673d8 100644 (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">