cd: linux why???

This commit is contained in:
Kingkor Roy Tirtho 2024-05-07 21:22:24 +06:00
parent dfa81628e2
commit ec62cff812

View File

@ -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(