From 5ea4df932fa9bed806b3662163a23d6c3f4c1d06 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 13 Nov 2025 16:03:08 +0600 Subject: [PATCH] cd: add back rpm for x86_64 --- .github/workflows/spotube-release-binary.yml | 1 + cli/commands/build/linux.dart | 22 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.github/workflows/spotube-release-binary.yml b/.github/workflows/spotube-release-binary.yml index f7e9f808..dfec7d44 100644 --- a/.github/workflows/spotube-release-binary.yml +++ b/.github/workflows/spotube-release-binary.yml @@ -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 diff --git a/cli/commands/build/linux.dart b/cli/commands/build/linux.dart index 84a7b6bb..3ca792ea 100644 --- a/cli/commands/build/linux.dart +++ b/cli/commands/build/linux.dart @@ -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,