Skip to content

Commit

Permalink
cd: linux why???
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed May 7, 2024
1 parent dfa8162 commit ec62cff
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions cli/commands/build/linux.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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(
Expand Down

0 comments on commit ec62cff

Please sign in to comment.