5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 03:09:17 +08:00

fix: minor fixes

This commit is contained in:
Lea Anthony 2019-05-18 07:34:39 +10:00
parent 0f36a88f0e
commit 1ac16d1933
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
3 changed files with 3 additions and 7 deletions

View File

@ -203,6 +203,8 @@ func (po *ProjectOptions) PromptForInputs() error {
po.selectedTemplate = templateList.AsSlice()[templateIndex].(*TemplateDetails)
}
fmt.Println("Template: " + po.selectedTemplate.Metadata.Name)
// Setup NPM Project name
po.NPMProjectName = strings.ToLower(strings.Replace(po.Name, " ", "_", -1))
@ -282,7 +284,6 @@ func processProjectName(po *ProjectOptions) {
po.Name = Prompt("The name of the project", "My Project")
}
fmt.Println("Project Name: " + po.Name)
}
func processBinaryName(po *ProjectOptions) {

View File

@ -3,7 +3,6 @@ package cmd
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"path/filepath"
@ -79,14 +78,10 @@ func (t *TemplateHelper) GetTemplateDetails() (map[string]*TemplateDetails, erro
// Get the subdirectory details
templateDirs, err := t.templateDir.GetSubdirs()
// templateDirs, err := t.fs.GetSubdirs(t.templateDir)
if err != nil {
return nil, err
}
fmt.Printf("%+v\n", templateDirs)
result := make(map[string]*TemplateDetails)
for name, dir := range templateDirs {

View File

@ -1,4 +1,4 @@
package cmd
// Version - Wails version
const Version = "v0.14.0-pre"
const Version = "v0.14.4-pre"