mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 03:59:59 +08:00
fix: minor fixes
This commit is contained in:
parent
0f36a88f0e
commit
1ac16d1933
@ -203,6 +203,8 @@ func (po *ProjectOptions) PromptForInputs() error {
|
|||||||
po.selectedTemplate = templateList.AsSlice()[templateIndex].(*TemplateDetails)
|
po.selectedTemplate = templateList.AsSlice()[templateIndex].(*TemplateDetails)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("Template: " + po.selectedTemplate.Metadata.Name)
|
||||||
|
|
||||||
// Setup NPM Project name
|
// Setup NPM Project name
|
||||||
po.NPMProjectName = strings.ToLower(strings.Replace(po.Name, " ", "_", -1))
|
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")
|
po.Name = Prompt("The name of the project", "My Project")
|
||||||
}
|
}
|
||||||
fmt.Println("Project Name: " + po.Name)
|
fmt.Println("Project Name: " + po.Name)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func processBinaryName(po *ProjectOptions) {
|
func processBinaryName(po *ProjectOptions) {
|
||||||
|
@ -3,7 +3,6 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@ -79,14 +78,10 @@ func (t *TemplateHelper) GetTemplateDetails() (map[string]*TemplateDetails, erro
|
|||||||
|
|
||||||
// Get the subdirectory details
|
// Get the subdirectory details
|
||||||
templateDirs, err := t.templateDir.GetSubdirs()
|
templateDirs, err := t.templateDir.GetSubdirs()
|
||||||
|
|
||||||
// templateDirs, err := t.fs.GetSubdirs(t.templateDir)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("%+v\n", templateDirs)
|
|
||||||
|
|
||||||
result := make(map[string]*TemplateDetails)
|
result := make(map[string]*TemplateDetails)
|
||||||
|
|
||||||
for name, dir := range templateDirs {
|
for name, dir := range templateDirs {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
// Version - Wails version
|
// Version - Wails version
|
||||||
const Version = "v0.14.0-pre"
|
const Version = "v0.14.4-pre"
|
||||||
|
Loading…
Reference in New Issue
Block a user