mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-05 23:19:42 +00:00
cd: add back rpm for x86_64
This commit is contained in:
parent
3462e32a6c
commit
5ea4df932f
1
.github/workflows/spotube-release-binary.yml
vendored
1
.github/workflows/spotube-release-binary.yml
vendored
@ -36,6 +36,7 @@ jobs:
|
||||
arch: x86
|
||||
files: |
|
||||
dist/Spotube-linux-x86_64.deb
|
||||
dist/Spotube-linux-x86_64.rpm
|
||||
dist/Spotube-linux-x86_64.AppImage
|
||||
dist/spotube-linux-*-x86_64.tar.xz
|
||||
- os: ubuntu-22.04-arm
|
||||
|
||||
@ -39,6 +39,11 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps {
|
||||
await shell.run(
|
||||
"fastforge package --platform=linux --targets=deb,appimage",
|
||||
);
|
||||
if (architecture == "x86") {
|
||||
await shell.run(
|
||||
"fastforge package --platform=linux --targets=rpm",
|
||||
);
|
||||
}
|
||||
|
||||
final tempDir = join(Directory.systemTemp.path, "spotube-tar");
|
||||
final bundleArchName = architecture == "x86" ? "x86_64" : "aarch64";
|
||||
@ -93,6 +98,23 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps {
|
||||
);
|
||||
await ogDeb.delete();
|
||||
|
||||
if (architecture == "x86") {
|
||||
final ogRpm = File(
|
||||
join(
|
||||
cwd.path,
|
||||
"dist",
|
||||
pubspec.version.toString(),
|
||||
"spotube-${pubspec.version}-linux.rpm",
|
||||
),
|
||||
);
|
||||
|
||||
await ogRpm.copy(
|
||||
join(cwd.path, "dist", "Spotube-linux-$bundleArchName.rpm"),
|
||||
);
|
||||
|
||||
await ogRpm.delete();
|
||||
}
|
||||
|
||||
final ogAppImage = File(
|
||||
join(
|
||||
cwd.path,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user