mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-09 08:47:31 +00:00
cd: fix copy linux command
This commit is contained in:
parent
a7dcf47132
commit
fe49085b41
@ -1,6 +1,7 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:io/io.dart';
|
||||||
import 'package:args/command_runner.dart';
|
import 'package:args/command_runner.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
import 'package:path/path.dart';
|
import 'package:path/path.dart';
|
||||||
@ -45,6 +46,9 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps {
|
|||||||
final tempDir = Directory(join(Directory.systemTemp.path, "spotube-tar"))
|
final tempDir = Directory(join(Directory.systemTemp.path, "spotube-tar"))
|
||||||
..createSync(recursive: true);
|
..createSync(recursive: true);
|
||||||
|
|
||||||
|
final bundleDirPath =
|
||||||
|
join(cwd.path, "build", "linux", "x64", "release", "bundle", "*");
|
||||||
|
|
||||||
final tarPath = join(
|
final tarPath = join(
|
||||||
cwd.path,
|
cwd.path,
|
||||||
"build",
|
"build",
|
||||||
@ -52,9 +56,11 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps {
|
|||||||
"${CliEnv.channel == BuildChannel.nightly ? "nightly" : versionWithoutBuildNumber}"
|
"${CliEnv.channel == BuildChannel.nightly ? "nightly" : versionWithoutBuildNumber}"
|
||||||
"-x86_64.tar.xz",
|
"-x86_64.tar.xz",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await copyPath(bundleDirPath, tempDir.path);
|
||||||
|
|
||||||
await shell.run(
|
await shell.run(
|
||||||
"""
|
"""
|
||||||
cp -r build/linux/x64/release/bundle/* ${tempDir.path}
|
|
||||||
cp ${join(cwd.path, "linux", "spotube.desktop")} ${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, "linux", "com.github.KRTirtho.Spotube.appdata.xml")} ${tempDir.path}
|
||||||
cp ${join(cwd.path, "assets", "spotube-logo.png")} ${tempDir.path}
|
cp ${join(cwd.path, "assets", "spotube-logo.png")} ${tempDir.path}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user