mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
add server, hybrid build tags
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//go:build dev
|
||||
//go:build dev && desktop
|
||||
|
||||
package app
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build production
|
||||
//go:build production && desktop
|
||||
|
||||
package app
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//go:build dev
|
||||
// +build dev
|
||||
//go:build dev || server || hybrid
|
||||
// +build dev server hybrid
|
||||
|
||||
// Package devserver provides a web-based frontend so that
|
||||
// it is possible to run a Wails app in a browsers.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//go:build dev
|
||||
// +build dev
|
||||
//go:build dev || server || hybrid
|
||||
// +build dev server hybrid
|
||||
|
||||
package runtime
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//go:build dev
|
||||
// +build dev
|
||||
//go:build dev || hybrid || server
|
||||
// +build dev hybrid server
|
||||
|
||||
package assetserver
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ func Build(options *Options) (string, error) {
|
||||
switch options.OutputType {
|
||||
case "desktop":
|
||||
builder = newDesktopBuilder(options)
|
||||
case "dev":
|
||||
case "dev", "hybrid", "server":
|
||||
builder = newDesktopBuilder(options)
|
||||
default:
|
||||
return "", fmt.Errorf("cannot build assets for output type %s", options.ProjectData.OutputType)
|
||||
|
||||
Reference in New Issue
Block a user