mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Only run default command if no args
Add custom template (Frameworks)
This commit is contained in:
19
cmd/templates/custom/main.go
Normal file
19
cmd/templates/custom/main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
wails "github.com/wailsapp/wails"
|
||||
)
|
||||
|
||||
var html = `<h1> Custom Project </h1>`
|
||||
|
||||
func main() {
|
||||
|
||||
// Initialise the app
|
||||
app := wails.CreateApp(&wails.AppConfig{
|
||||
Width: 800,
|
||||
Height: 600,
|
||||
Title: "My Project",
|
||||
HTML: html,
|
||||
})
|
||||
app.Run()
|
||||
}
|
||||
7
cmd/templates/custom/template.json
Normal file
7
cmd/templates/custom/template.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Custom",
|
||||
"shortdescription": "Choose your own CSS Framework",
|
||||
"description": "A basic template allowing use of CSS Frameworks",
|
||||
"author": "Lea Anthony<lea.anthony@gmail.com>",
|
||||
"created": "2018-10-22"
|
||||
}
|
||||
Reference in New Issue
Block a user