Skip to content

Commit

Permalink
start of tool to buuild Info.plist
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Arrow committed Sep 27, 2016
1 parent 77e7b6a commit 0d7eafa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions macos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
macos
15 changes: 15 additions & 0 deletions macos/app/app.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package app

import "fmt"
import "os"

func Skeleton(name string) {
fmt.Println("creating dir")
os.Mkdir(name, os.ModePerm)
os.Mkdir(name+"/Contents", os.ModePerm)
os.Mkdir(name+"/Contents/MacOS", os.ModePerm)
os.Mkdir(name+"/Contents/Resources", os.ModePerm)

file, _ := os.Create(name + "/Contents/Info.plist")
fmt.Println(file)
}
15 changes: 15 additions & 0 deletions macos/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package main

import "fmt"
import "github.com/dontpanic92/wxGo/macos/app"
import "os"

func main() {
if len(os.Args) == 1 {
fmt.Println("macos <name>")
return
}
name := os.Args[1]
fmt.Println("building skeleton for", name)
app.Skeleton(name)
}

0 comments on commit 0d7eafa

Please sign in to comment.