mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 03:52:41 +08:00
use os specific path seperator
This commit is contained in:
parent
bf001f5ad2
commit
68651b77f4
@ -4,6 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
@ -190,7 +191,7 @@ func (po *ProjectOptions) PromptForInputs() error {
|
|||||||
po.NPMProjectName = strings.ToLower(strings.Replace(po.Name, " ", "_", -1))
|
po.NPMProjectName = strings.ToLower(strings.Replace(po.Name, " ", "_", -1))
|
||||||
|
|
||||||
// Fix template name
|
// Fix template name
|
||||||
po.Template = strings.Split(po.selectedTemplate.Path, "/")[0]
|
po.Template = strings.Split(po.selectedTemplate.Path, string(os.PathSeparator))[0]
|
||||||
|
|
||||||
// // Populate template details
|
// // Populate template details
|
||||||
templateMetadata := po.selectedTemplate.Metadata
|
templateMetadata := po.selectedTemplate.Metadata
|
||||||
|
Loading…
Reference in New Issue
Block a user