5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-08 12:19:18 +08:00

[v2] Delete .git for remote templates

This commit is contained in:
Lea Anthony 2021-09-08 21:38:46 +10:00
parent 6204e63c56
commit 5d2242f7a4

View File

@ -225,6 +225,15 @@ func Install(options *Options) (bool, error) {
log.Fatal(err)
}
}(tempdir)
if err != nil {
return false, err
}
// Remove the .git directory
err = os.RemoveAll(filepath.Join(tempdir, ".git"))
if err != nil {
return false, err
}
templateFS := os.DirFS(tempdir)
template, err = parseTemplate(templateFS)
if err != nil {