linux packaging (noop) + list platforms

This commit is contained in:
Travis McLane 2020-03-27 08:16:43 -05:00 committed by Lea Anthony
commit 404cd7d14e
2 changed files with 12 additions and 2 deletions

View file

@ -87,12 +87,16 @@ func (b *PackageHelper) Package(po *ProjectOptions) error {
case "windows":
return b.PackageWindows(po, false)
case "linux":
return fmt.Errorf("linux is not supported at this time. Please see https://github.com/wailsapp/wails/issues/2")
return b.packageLinux(po)
default:
return fmt.Errorf("platform '%s' not supported for bundling yet", b.platform)
}
}
func (b *PackageHelper) packageLinux(po *ProjectOptions) error {
return nil
}
// Package the application for OSX
func (b *PackageHelper) packageOSX(po *ProjectOptions) error {

View file

@ -30,7 +30,13 @@ func init() {
BoolFlag("d", "Build in Debug mode", &debugMode).
BoolFlag("verbose", "Verbose output", &verbose).
StringFlag("t", "Generate Typescript definitions to given file (at runtime)", &typescriptFilename).
StringFlag("x", "Cross-compile application to specified platform via xgo", &platform)
StringFlag("x", `Cross-compile application to specified platform via xgo\n
Supported platforms:
- darwin
- windows
- linux/arm
`, &platform)
initCmd.Action(func() error {