mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 17:30:17 +08:00
Create dialog dir if missing
This commit is contained in:
parent
f4ca9a6b9e
commit
44c55d06a6
@ -121,8 +121,7 @@ func (d *DesktopBuilder) processDialogIcons(assetDir string, options *Options) e
|
|||||||
|
|
||||||
// If the directory does not exist, create it
|
// If the directory does not exist, create it
|
||||||
if !fs.DirExists(dialogIconDirectory) {
|
if !fs.DirExists(dialogIconDirectory) {
|
||||||
defaultDialogIconsDirectory := fs.RelativePath("./internal/packager/icons/default/dialog")
|
err = fs.MkDirs(dialogIconDirectory)
|
||||||
err := fs.CopyDir(defaultDialogIconsDirectory, dialogIconDirectory)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user