require '-tags exp' for hybrid / server builds

This commit is contained in:
Travis McLane
2024-05-01 14:08:13 -05:00
parent cc6158b155
commit 4cdc166165
4 changed files with 13 additions and 6 deletions
@@ -146,6 +146,13 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
}
}
// Validate experimental
if slicer.String([]string{"hybrid", "server"}).Contains(outputType) {
if !slicer.String(userTags).Contains("exp") {
return fmt.Errorf("output type '%s' requires the '-tags exp'", outputType)
}
}
// Webview2 installer strategy (download by default)
wv2rtstrategy := ""
webview2 = strings.ToLower(webview2)
+2 -2
View File
@@ -1,5 +1,5 @@
//go:build hybrid || server
// +build hybrid server
//go:build (exp && hybrid) || (exp && server)
// +build exp,hybrid exp,server
package app
+2 -2
View File
@@ -1,5 +1,5 @@
//go:build hybrid
// +build hybrid
//go:build exp && hybrid
// +build exp,hybrid
package hybrid
+2 -2
View File
@@ -1,5 +1,5 @@
//go:build server
// +build server
//go:build exp && server
// +build exp,server
package hybrid