From 8af93a2345aea0b1fc97f8c7cb44bb12dabc53a1 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Tue, 7 May 2024 21:01:07 +0600 Subject: [PATCH] cd: fix windows inno depend and fix android aab path --- cli/commands/build/android.dart | 2 +- cli/commands/build/windows.dart | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/cli/commands/build/android.dart b/cli/commands/build/android.dart index e41761be..800522b8 100644 --- a/cli/commands/build/android.dart +++ b/cli/commands/build/android.dart @@ -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"); diff --git a/cli/commands/build/windows.dart b/cli/commands/build/windows.dart index e675ff26..c44a6074 100644 --- a/cli/commands/build/windows.dart +++ b/cli/commands/build/windows.dart @@ -12,17 +12,11 @@ class WindowsBuildCommand extends Command with BuildCommandCommonSteps { @override String get name => "windows"; - Future innoInstall() async { - final innoInstallerPath = join(cwd.path, "build", "installer.exe"); - const innoVersion = "6.2.0"; + Future 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",