diff --git a/cmd/fs.go b/cmd/fs.go index 31933f77a..88ba0d48c 100644 --- a/cmd/fs.go +++ b/cmd/fs.go @@ -41,6 +41,8 @@ func (fs *FSHelper) FileExists(path string) bool { return fi.Mode().IsRegular() } +// CreateFile creates a file at the given filename location with the contents +// set to the given data. It will create intermediary directories if needed. func (fs *FSHelper) CreateFile(filename string, data []byte) error { // Ensure directory exists fs.MkDirs(filepath.Dir(filename)) diff --git a/cmd/helpers.go b/cmd/helpers.go index 14f838ab0..d34c80eb2 100644 --- a/cmd/helpers.go +++ b/cmd/helpers.go @@ -174,7 +174,7 @@ func CheckWindres() (err error) { } programHelper := NewProgramHelper() if !programHelper.IsInstalled("windres") { - return fmt.Errorf("windres not installed. It comes by default with mingw. Ensure you have installed mingw correctly.") + return fmt.Errorf("windres not installed. It comes by default with mingw. Ensure you have installed mingw correctly") } return nil } diff --git a/cmd/log.go b/cmd/log.go index fb210ab43..416383935 100644 --- a/cmd/log.go +++ b/cmd/log.go @@ -17,6 +17,7 @@ func NewLogger() *Logger { return &Logger{errorOnly: false} } +// SetErrorOnly ensures that only errors are logged out func (l *Logger) SetErrorOnly(errorOnly bool) { l.errorOnly = errorOnly } @@ -99,6 +100,7 @@ func (l *Logger) Error(format string, a ...interface{}) { color.New(color.FgHiRed).PrintfFunc()("Error: "+format+"\n", a...) } +// PrintSmallBanner prints a condensed banner func (l *Logger) PrintSmallBanner(message ...string) { yellow := color.New(color.FgYellow).SprintFunc() red := color.New(color.FgRed).SprintFunc() diff --git a/cmd/package.go b/cmd/package.go index 22c2a080c..1144352e9 100644 --- a/cmd/package.go +++ b/cmd/package.go @@ -150,6 +150,7 @@ func (b *PackageHelper) packageOSX(po *ProjectOptions) error { return err } +// PackageWindows packages the application for windows platforms func (b *PackageHelper) PackageWindows(po *ProjectOptions, cleanUp bool) error { basename := strings.TrimSuffix(po.BinaryName, ".exe") diff --git a/cmd/templates/vuebasic/frontend/package.json.md5 b/cmd/templates/vuebasic/frontend/package.json.md5 deleted file mode 100644 index 8233eecf3..000000000 --- a/cmd/templates/vuebasic/frontend/package.json.md5 +++ /dev/null @@ -1 +0,0 @@ -2b79f883dc856221fc3265755d610e40 \ No newline at end of file diff --git a/cmd/version.go b/cmd/version.go index 7e185fc34..d43280140 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -2,4 +2,4 @@ package cmd // Version - Wails version // ...oO(There must be a better way) -const Version = "v0.9.5" +const Version = "v0.9.6"