Skip to content

Commit

Permalink
Use release mode for 'fyne get'
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Dec 23, 2020
1 parent 0bf39e3 commit a029ede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fyne/commands/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func get(pkg, icon string) error {
return err
}

install := &installer{srcDir: path, icon: icon}
install := &installer{srcDir: path, icon: icon, release: true}
err = install.validate()
if err != nil {
return errors.Wrap(err, "Failed to set up installer")
Expand Down
3 changes: 3 additions & 0 deletions cmd/fyne/commands/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var _ Command = (*installer)(nil)
type installer struct {
installDir, srcDir, icon, os, appID string
packager *packager
release bool
}

// NewInstaller returns an install command that can install locally built Fyne apps.
Expand All @@ -31,6 +32,7 @@ func (i *installer) AddFlags() {
flag.StringVar(&i.installDir, "installDir", "", "A specific location to install to, rather than the OS default")
flag.StringVar(&i.icon, "icon", "Icon.png", "The name of the application icon file")
flag.StringVar(&i.appID, "appID", "", "For ios or darwin targets an appID is required, for ios this must \nmatch a valid provisioning profile")
flag.BoolVar(&i.release, "release", false, "Should this package be installed in release mode? (disable debug etc)")
}

func (i *installer) PrintHelp(indent string) {
Expand Down Expand Up @@ -139,5 +141,6 @@ func (i *installer) validate() error {
}
i.packager = &packager{appID: i.appID, os: os, install: true, srcDir: i.srcDir}
i.packager.icon = i.icon
i.packager.release = i.release
return i.packager.validate()
}

0 comments on commit a029ede

Please sign in to comment.