mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-09 08:47:31 +00:00
cd: linux why???
This commit is contained in:
parent
dfa81628e2
commit
ec62cff812
@ -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 =
|
final bundleDirPath =
|
||||||
join(cwd.path, "build", "linux", "x64", "release", "bundle");
|
join(cwd.path, "build", "linux", "x64", "release", "bundle");
|
||||||
@ -56,19 +56,17 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps {
|
|||||||
"-x86_64.tar.xz",
|
"-x86_64.tar.xz",
|
||||||
);
|
);
|
||||||
|
|
||||||
await copyPath(bundleDirPath, tempDir.path);
|
await copyPath(bundleDirPath, tempDir);
|
||||||
|
|
||||||
await shell.run(
|
await shell.run(
|
||||||
"""
|
"""
|
||||||
cp ${join(cwd.path, "linux", "spotube.desktop")} ${tempDir.path}
|
cp ${join(cwd.path, "linux", "spotube.desktop")} $tempDir
|
||||||
cp ${join(cwd.path, "linux", "com.github.KRTirtho.Spotube.appdata.xml")} ${tempDir.path}
|
cp ${join(cwd.path, "linux", "com.github.KRTirtho.Spotube.appdata.xml")} $tempDir
|
||||||
cp ${join(cwd.path, "assets", "spotube-logo.png")} ${tempDir.path}
|
cp ${join(cwd.path, "assets", "spotube-logo.png")} $tempDir
|
||||||
tar -cJf $tarPath -C ${tempDir.path} .
|
tar -cJf $tarPath -C $tempDir .
|
||||||
""",
|
""",
|
||||||
);
|
);
|
||||||
|
|
||||||
await tempDir.delete();
|
|
||||||
|
|
||||||
await File(tarPath).copy(join(cwd.path, "dist"));
|
await File(tarPath).copy(join(cwd.path, "dist"));
|
||||||
|
|
||||||
final ogDeb = File(
|
final ogDeb = File(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user