mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-08 00:17:29 +00:00
feat: add ios build support
This commit is contained in:
parent
fa13a62caf
commit
66d1ed4977
@ -0,0 +1,29 @@
|
||||
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")}
|
||||
""",
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user