mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[v2] Delete .git for remote templates
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user