mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-13 23:49:35 +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)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}(tempdir)
|
}(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)
|
templateFS := os.DirFS(tempdir)
|
||||||
template, err = parseTemplate(templateFS)
|
template, err = parseTemplate(templateFS)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user