diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b7b2c93fd..c207e8f539 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ More detailed release notes can be found on the [releases page](https://github.c * Add internet permission by default for Android apps (#1715) * Child and Parent support in storage were missing for mobile appps * Various crashes with Entry and multiline selections (including #1989) +* Slider calls OnChanged for each value between steps (#1748) +* fyne command doesn't remove temporary binary from src (#1910) ## 2.0.1 - 4 March 2021 diff --git a/cmd/fyne/commands/package.go b/cmd/fyne/commands/package.go index ed29ed1227..86556640fa 100644 --- a/cmd/fyne/commands/package.go +++ b/cmd/fyne/commands/package.go @@ -3,6 +3,7 @@ package commands import ( "flag" "fmt" + "log" "strconv" "strings" @@ -105,6 +106,7 @@ func (p *packager) doPackage() error { if !util.Exists(p.exe) { return fmt.Errorf("unable to build directory to expected executable, %s", p.exe) } + defer p.removeBuild() } switch p.os { @@ -123,6 +125,13 @@ func (p *packager) doPackage() error { } } +func (p *packager) removeBuild() { + err := os.Remove(p.exe) + if err != nil { + log.Println("Unable to remove temporary build file", p.exe) + } +} + func (p *packager) validate() error { if p.os == "" { p.os = targetOS()