Added possibility to specify platform for dev command (#3117)

* Added possibility to specify platform for dev command

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Light
2023-12-18 07:30:05 +11:00
committed by GitHub
co-authored by Lea Anthony coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent 5c1d62bb6a
commit 4b4fcdd47c
7 changed files with 161 additions and 79 deletions
+4
View File
@@ -71,6 +71,10 @@ type Options struct {
SkipBindings bool // Skip binding generation
}
func (o *Options) IsWindowsTargetPlatform() bool {
return strings.Contains(strings.ToLower(o.Platform), "windows")
}
// Build the project!
func Build(options *Options) (string, error) {
// Extract logger