From 571bea38d1b6c7bd92714d5d2070e3505aad28ca Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Fri, 27 Mar 2026 18:56:36 +0100 Subject: [PATCH 1/3] Add more build options --- resources/META-INF/plugin.xml | 8 +++ .../actions/FlutterBuildActionGroup.java | 52 ++++++++++++++++++- 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 5c943d83d..1ff9dccae 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -163,11 +163,19 @@ + + + + diff --git a/src/io/flutter/actions/FlutterBuildActionGroup.java b/src/io/flutter/actions/FlutterBuildActionGroup.java index 365514843..57fd07f43 100644 --- a/src/io/flutter/actions/FlutterBuildActionGroup.java +++ b/src/io/flutter/actions/FlutterBuildActionGroup.java @@ -68,8 +68,12 @@ public enum BuildType { AAR("aar"), APK("apk"), APP_BUNDLE("appbundle"), + BUNDLE("bundle"), IOS("ios"), - WEB("web"); + LINUX("linux"), + MACOS("macos"), + WEB("web"), + WINDOWS("windows"); final public String type; @@ -183,6 +187,13 @@ public static class AppBundle extends FlutterBuildAction { } } + public static class Bundle extends FlutterBuildAction { + @Override + protected @NotNull BuildType buildType() { + return BuildType.BUNDLE; + } + } + public static class Ios extends FlutterBuildAction { @Override protected @NotNull BuildType buildType() { @@ -196,6 +207,32 @@ public void update(@NotNull AnActionEvent event) { } } + public static class Linux extends FlutterBuildAction { + @Override + protected @NotNull BuildType buildType() { + return BuildType.LINUX; + } + + @Override + public void update(@NotNull AnActionEvent event) { + final Presentation presentation = event.getPresentation(); + presentation.setEnabled(SystemInfo.isLinux); + } + } + + public static class Macos extends FlutterBuildAction { + @Override + protected @NotNull BuildType buildType() { + return BuildType.MACOS; + } + + @Override + public void update(@NotNull AnActionEvent event) { + final Presentation presentation = event.getPresentation(); + presentation.setEnabled(SystemInfo.isMac); + } + } + public static class Web extends FlutterBuildAction { @Override @@ -203,4 +240,17 @@ public static class Web extends FlutterBuildAction { return BuildType.WEB; } } + + public static class Windows extends FlutterBuildAction { + @Override + protected @NotNull BuildType buildType() { + return BuildType.WINDOWS; + } + + @Override + public void update(@NotNull AnActionEvent event) { + final Presentation presentation = event.getPresentation(); + presentation.setEnabled(SystemInfo.isWindows); + } + } } From 751eb147fb32bd587d91cbabf5a16d5d580aa3e6 Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Fri, 27 Mar 2026 19:09:35 +0100 Subject: [PATCH 2/3] Follow contribution guide --- AUTHORS | 1 + CHANGELOG.md | 1 + 2 files changed, 2 insertions(+) diff --git a/AUTHORS b/AUTHORS index ab420d217..656e1ffbd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,3 +27,4 @@ Edwin Ludik Japnit Singh Dmitry Kandalov Kazuya Chikamatsu +Nico Mexis diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dd7877fa..f0bcbe81f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Changed - Updated gradle plugin version to re-enable running `./gradlew verifyPlugin` locally. (#8847) +- Added missing platforms and targets to Build menu. ### Removed From a3d646a6e93c9df2321637ca3d0a4da8869f681d Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Fri, 1 May 2026 21:00:22 +0200 Subject: [PATCH 3/3] Apply suggestion from @helin24 Co-authored-by: Helin Shiah --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 655cacc32..f7fd6d497 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ### Added -- Added missing platforms and targets to Build menu. +- Missing platforms and targets to Build menu. ### Changed