Skip to content

Commit 53f2e82

Browse files
committed
Corrected RPM Build
1 parent b76fa4c commit 53f2e82

2 files changed

Lines changed: 33 additions & 3 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,34 @@ jobs:
6767
mkdir -p artifacts
6868
cp packaging/output/RunUpdates_* artifacts/ || true
6969
70+
- name: Install crc32 tool
71+
run: |
72+
sudo apt-get update
73+
sudo apt-get install -y libarchive-zip-perl
74+
75+
- name: Compute checksums and sizes
76+
id: sums
77+
run: |
78+
DEB=$(ls artifacts/*.deb | head -n 1)
79+
RPM=$(ls artifacts/*.rpm | head -n 1)
80+
ZIP=$(ls artifacts/*.zip | head -n 1)
81+
TGZ=$(ls artifacts/*.tgz | head -n 1)
82+
83+
echo "deb_size=$(stat -c%s "$DEB")" >> $GITHUB_OUTPUT
84+
echo "rpm_size=$(stat -c%s "$RPM")" >> $GITHUB_OUTPUT
85+
echo "zip_size=$(stat -c%s "$ZIP")" >> $GITHUB_OUTPUT
86+
echo "tgz_size=$(stat -c%s "$TGZ")" >> $GITHUB_OUTPUT
87+
88+
echo "deb_sha256=$(sha256sum "$DEB" | awk '{print $1}')" >> $GITHUB_OUTPUT
89+
echo "rpm_sha256=$(sha256sum "$DEB" | awk '{print $1}')" >> $GITHUB_OUTPUT
90+
echo "zip_sha256=$(sha256sum "$DEB" | awk '{print $1}')" >> $GITHUB_OUTPUT
91+
echo "tgz_sha256=$(sha256sum "$DEB" | awk '{print $1}')" >> $GITHUB_OUTPUT
92+
93+
echo "deb_crc32=$(crc32 "$DEB")" >> $GITHUB_OUTPUT
94+
echo "rpm_crc32=$(crc32 "$RPM")" >> $GITHUB_OUTPUT
95+
echo "zip_crc32=$(crc32 "$ZIP")" >> $GITHUB_OUTPUT
96+
echo "tgz_crc32=$(crc32 "$DEB")" >> $GITHUB_OUTPUT
97+
7098
- name: Upload nightly artifacts
7199
uses: actions/upload-artifact@v4
72100
with:

packaging/rpm/runupdates.spec

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ RunUpdates is a system update orchestration tool. This RPM installs the frozen R
2121

2222
%install
2323
rm -rf %{buildroot}
24-
INSTALLROOT=%{buildroot}/opt/RunUpdates
2524

26-
mkdir -p $INSTALLROOT
25+
# Create target directory
26+
mkdir -p %{buildroot}/opt/RunUpdates
2727

28-
install -D %{_sourcedir}/RunUpdates/RunUpdates $INSTALLROOT/RunUpdates
28+
# Install the binary
29+
install -m 0755 %{_sourcedir}/RunUpdates/RunUpdates \
30+
%{buildroot}/opt/RunUpdates/RunUpdates
2931

3032
%files
3133
/opt/RunUpdates

0 commit comments

Comments
 (0)