mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-08 16:27:31 +00:00
30 lines
694 B
Dart
30 lines
694 B
Dart
import 'dart:async';
|
|
|
|
import 'package:args/command_runner.dart';
|
|
import 'package:path/path.dart';
|
|
|
|
import '../../core/env.dart';
|
|
import 'common.dart';
|
|
|
|
class IosBuildCommand extends Command with BuildCommandCommonSteps {
|
|
@override
|
|
String get description => "iOS build command";
|
|
|
|
@override
|
|
String get name => "ios";
|
|
|
|
@override
|
|
FutureOr? run() async {
|
|
await bootstrap();
|
|
|
|
final buildDirPath = join(cwd.path, "build", "ios", "iphoneos");
|
|
await shell.run(
|
|
"""
|
|
flutter build ios --release --no-codesign --flavor ${CliEnv.channel}
|
|
ln -sf $buildDirPath Payload
|
|
zip -r9 Spotube-iOS.ipa ${join("Payload", "${CliEnv.channel}.app")}
|
|
""",
|
|
);
|
|
}
|
|
}
|