From ec62cff81237f781b5f6cee3f045fa2ad0583189 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Tue, 7 May 2024 21:22:24 +0600 Subject: [PATCH] cd: linux why??? --- cli/commands/build/linux.dart | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cli/commands/build/linux.dart b/cli/commands/build/linux.dart index 64c2e0de..0ba895ed 100644 --- a/cli/commands/build/linux.dart +++ b/cli/commands/build/linux.dart @@ -43,7 +43,7 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps { """, ); - final tempDir = Directory(join(Directory.systemTemp.path, "spotube-tar")); + final tempDir = join(Directory.systemTemp.path, "spotube-tar"); final bundleDirPath = join(cwd.path, "build", "linux", "x64", "release", "bundle"); @@ -56,19 +56,17 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps { "-x86_64.tar.xz", ); - await copyPath(bundleDirPath, tempDir.path); + await copyPath(bundleDirPath, tempDir); await shell.run( """ - 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} - tar -cJf $tarPath -C ${tempDir.path} . + cp ${join(cwd.path, "linux", "spotube.desktop")} $tempDir + cp ${join(cwd.path, "linux", "com.github.KRTirtho.Spotube.appdata.xml")} $tempDir + cp ${join(cwd.path, "assets", "spotube-logo.png")} $tempDir + tar -cJf $tarPath -C $tempDir . """, ); - await tempDir.delete(); - await File(tarPath).copy(join(cwd.path, "dist")); final ogDeb = File(