From a7dcf471322e73d2d92af95b8692daa741a6b858 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Tue, 7 May 2024 20:40:02 +0600 Subject: [PATCH] cd: fix tar copy path --- cli/commands/build/linux.dart | 5 +---- pubspec.lock | 2 +- pubspec.yaml | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cli/commands/build/linux.dart b/cli/commands/build/linux.dart index ffe15728..d2fb5a5c 100644 --- a/cli/commands/build/linux.dart +++ b/cli/commands/build/linux.dart @@ -45,9 +45,6 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps { final tempDir = Directory(join(Directory.systemTemp.path, "spotube-tar")) ..createSync(recursive: true); - final bundleDirPath = - join(cwd.path, "build", "linux", "x64", "release", "bundle", "*"); - final tarPath = join( cwd.path, "build", @@ -57,7 +54,7 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps { ); await shell.run( """ - cp -r $bundleDirPath ${tempDir.path} + cp -r build/linux/x64/release/bundle/* ${tempDir.path} cp ${join(cwd.path, "linux", "spotube.desktop")} ${tempDir.path} cp ${join(cwd.path, "linux", "com.github.KRTirtho.Spotube.appdata.xml")} ${tempDir.path} cp ${join(cwd.path, "assets", "spotube-logo.png")} ${tempDir.path} diff --git a/pubspec.lock b/pubspec.lock index 80d29545..192bac0f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1271,7 +1271,7 @@ packages: source: hosted version: "3.1.14" io: - dependency: transitive + dependency: "direct dev" description: name: io sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" diff --git a/pubspec.yaml b/pubspec.yaml index 48fe04a0..7435e077 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -146,6 +146,7 @@ dev_dependencies: riverpod_lint: ^2.3.10 process_run: ^0.14.2 xml: ^6.5.0 + io: ^1.0.4 dependency_overrides: uuid: ^4.4.0