Skip to content

Commit

Permalink
fix: Added Store->Build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jul 27, 2023
1 parent d499cea commit a92ec8e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions packages/katana_cli/lib/command/store/build.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
part of katana_cli.store;

/// Build the Android appbundle for the first upload to the store.
///
/// Androidのappbundleをビルドしてストアへの初回アップロードを行います。
class StoreAndroidBuildCliCommand extends CliCommand {
/// Build the Android appbundle for the first upload to the store.
///
/// Androidのappbundleをビルドしてストアへの初回アップロードを行います。
const StoreAndroidBuildCliCommand();

@override
String get description =>
"Build the Android appbundle for the first upload to the store. Androidのappbundleをビルドしてストアへの初回アップロードを行います。";

@override
Future<void> exec(ExecContext context) async {
final bin = context.yaml.getAsMap("bin");
final flutter = bin.get("flutter", "flutter");
await command(
"Build for appbunle.",
[
flutter,
"build",
"appbundle",
"--release",
"--dart-define=FLAVOR=prod",
],
);
}
}
2 changes: 2 additions & 0 deletions packages/katana_cli/lib/command/store/store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'package:katana_cli/katana_cli.dart';

part 'screenshot.dart';
part 'android_token.dart';
part 'build.dart';

class StoreCliCommand extends CliCommandGroup {
const StoreCliCommand();
Expand All @@ -23,5 +24,6 @@ class StoreCliCommand extends CliCommandGroup {
Map<String, CliCommand> get commands => const {
"screenshot": StoreScreenshotCliCommand(),
"android_token": StoreAndroidTokenCliCommand(),
"build": StoreAndroidBuildCliCommand(),
};
}

0 comments on commit a92ec8e

Please sign in to comment.