cd: fix windows inno depend and fix android aab path

This commit is contained in:
Kingkor Roy Tirtho 2024-05-07 21:01:07 +06:00
parent fe49085b41
commit 8af93a2345
2 changed files with 4 additions and 10 deletions

View File

@ -82,7 +82,7 @@ class AndroidBuildCommand extends Command with BuildCommandCommonSteps {
);
await ogAppbundleFile.copy(
join(cwd.path, "dist", "Spotube-playstore-all-arch.aab"),
join(cwd.path, "build", "Spotube-playstore-all-arch.aab"),
);
stdout.writeln("✅ Built Android Apk and Appbundle");

View File

@ -12,17 +12,11 @@ class WindowsBuildCommand extends Command with BuildCommandCommonSteps {
@override
String get name => "windows";
Future<void> innoInstall() async {
final innoInstallerPath = join(cwd.path, "build", "installer.exe");
const innoVersion = "6.2.0";
Future<void> innoDependInstall() async {
final innoDependencyPath = join(cwd.path, "build", "inno-depend");
await shell.run(
"""
curl -o $innoInstallerPath http://files.jrsoftware.org/is/6/innosetup-$innoVersion.exe
git clone https://github.com/DomGries/InnoDependencyInstaller.git $innoDependencyPath
$innoInstallerPath /verysilent /allusers /dir=build\\iscc
""",
"git clone https://github.com/DomGries/InnoDependencyInstaller.git $innoDependencyPath",
);
}
@ -45,7 +39,7 @@ class WindowsBuildCommand extends Command with BuildCommandCommonSteps {
}
await bootstrap();
// await innoInstall();
await innoDependInstall();
await shell.run(
"flutter_distributor package --platform=windows --targets=exe --skip-clean",