cd: add back rpm for x86_64

This commit is contained in:
Kingkor Roy Tirtho 2025-11-13 16:03:08 +06:00
parent 3462e32a6c
commit 5ea4df932f
2 changed files with 23 additions and 0 deletions

View File

@ -36,6 +36,7 @@ jobs:
arch: x86 arch: x86
files: | files: |
dist/Spotube-linux-x86_64.deb dist/Spotube-linux-x86_64.deb
dist/Spotube-linux-x86_64.rpm
dist/Spotube-linux-x86_64.AppImage dist/Spotube-linux-x86_64.AppImage
dist/spotube-linux-*-x86_64.tar.xz dist/spotube-linux-*-x86_64.tar.xz
- os: ubuntu-22.04-arm - os: ubuntu-22.04-arm

View File

@ -39,6 +39,11 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps {
await shell.run( await shell.run(
"fastforge package --platform=linux --targets=deb,appimage", "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 tempDir = join(Directory.systemTemp.path, "spotube-tar");
final bundleArchName = architecture == "x86" ? "x86_64" : "aarch64"; final bundleArchName = architecture == "x86" ? "x86_64" : "aarch64";
@ -93,6 +98,23 @@ class LinuxBuildCommand extends Command with BuildCommandCommonSteps {
); );
await ogDeb.delete(); 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( final ogAppImage = File(
join( join(
cwd.path, cwd.path,