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:
parent
6204e63c56
commit
5d2242f7a4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user