mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
linux packaging (noop) + list platforms
This commit is contained in:
parent
ea703acfed
commit
404cd7d14e
2 changed files with 12 additions and 2 deletions
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue