mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
30 lines
691 B
Dart
30 lines
691 B
Dart
import 'package:args/command_runner.dart';
|
|
|
|
import 'build/android.dart';
|
|
import 'build/ios.dart';
|
|
import 'build/linux.dart';
|
|
import 'build/macos.dart';
|
|
import 'build/windows.dart';
|
|
|
|
class BuildCommand extends Command {
|
|
@override
|
|
String get description => "Build for different platforms";
|
|
|
|
@override
|
|
String get name => "build";
|
|
|
|
BuildCommand() {
|
|
addSubcommand(AndroidBuildCommand());
|
|
addSubcommand(IosBuildCommand());
|
|
addSubcommand(LinuxBuildCommand());
|
|
addSubcommand(MacosBuildCommand());
|
|
addSubcommand(WindowsBuildCommand());
|
|
argParser.addOption(
|
|
"arch",
|
|
abbr: "a",
|
|
defaultsTo: "x86",
|
|
allowed: ["x86", "arm64", "all"],
|
|
);
|
|
}
|
|
}
|