mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
linux packaging (noop) + list platforms
This commit is contained in:
committed by
Lea Anthony
parent
ea703acfed
commit
404cd7d14e
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user