build dosyası düzenleme 11
All checks were successful
MusicPlayer Fedora RPM Build / fedora-compilation (push) Successful in 2m33s

This commit is contained in:
2026-03-29 15:27:04 +03:00
parent ece3dc7905
commit 856551e887

View File

@@ -44,13 +44,9 @@ jobs:
- name: RPM Paketi Oluştur (Full Plugin Support) - name: RPM Paketi Oluştur (Full Plugin Support)
run: | run: |
rpmdev-setuptree rpmdev-setuptree
# 1. Tüm dosyaları (binary, plugins, man pages, rc) geçici bir dizine kuruyoruz
# Bu adım /usr/lib/cmus ve /usr/share/cmus klasörlerini otomatik oluşturur.
mkdir -p ~/rpmbuild/BUILDROOT/cmus-custom-1.0-1.x86_64 mkdir -p ~/rpmbuild/BUILDROOT/cmus-custom-1.0-1.x86_64
make install DESTDIR=~/rpmbuild/BUILDROOT/cmus-custom-1.0-1.x86_64 make install DESTDIR=~/rpmbuild/BUILDROOT/cmus-custom-1.0-1.x86_64
# 2. SPEC dosyasını tüm klasörleri kapsayacak şekilde oluştur
cat <<EOF > cmus.spec cat <<EOF > cmus.spec
Name: cmus-custom Name: cmus-custom
Version: 1.0 Version: 1.0
@@ -61,25 +57,20 @@ jobs:
%global debug_package %{nil} %global debug_package %{nil}
%description %description
y1lm0z tarafından tüm giriş/çıkış eklentileri (ip/op) dahil edilerek derlenen cmus paketi. y1lm0z tarafından tüm eklentileriyle derlenen cmus paketi.
%files %files
# Program dosyaları
/usr/bin/cmus /usr/bin/cmus
/usr/bin/cmus-remote /usr/bin/cmus-remote
# Eklentiler (Hata aldığın yer burasıydı)
/usr/lib/cmus/ /usr/lib/cmus/
# Ayar ve tema dosyaları
/usr/share/cmus/ /usr/share/cmus/
# Yardım sayfaları (Opsiyonel ama iyi olur)
/usr/share/man/man1/cmus* /usr/share/man/man1/cmus*
/usr/share/man/man7/cmus* /usr/share/man/man7/cmus*
# Eksik olan dosyayı ve gelebilecek diğer dokümanları kapsıyoruz:
/usr/share/doc/cmus/
EOF EOF
# 3. Paketi inşa et (Hazırladığımız BUILDROOT'u kullanıyoruz)
rpmbuild -bb --buildroot $HOME/rpmbuild/BUILDROOT/cmus-custom-1.0-1.x86_64 cmus.spec rpmbuild -bb --buildroot $HOME/rpmbuild/BUILDROOT/cmus-custom-1.0-1.x86_64 cmus.spec
# 4. RPM'i çalışma dizinine al
cp ~/rpmbuild/RPMS/x86_64/*.rpm . cp ~/rpmbuild/RPMS/x86_64/*.rpm .
- name: Release Kontrol Et ve RPM'i Yükle - name: Release Kontrol Et ve RPM'i Yükle
@@ -88,13 +79,11 @@ jobs:
NEW_RPM_NAME="cmus-full-${SHORT_SHA}.x86_64.rpm" NEW_RPM_NAME="cmus-full-${SHORT_SHA}.x86_64.rpm"
mv *.rpm $NEW_RPM_NAME mv *.rpm $NEW_RPM_NAME
# Release oluştur
curl -s -X 'POST' "https://git.y1lm0z.me/api/v1/repos/${{ gitea.repository }}/releases" \ curl -s -X 'POST' "https://git.y1lm0z.me/api/v1/repos/${{ gitea.repository }}/releases" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{"tag_name": "v1.0", "name": "Fedora Build v1.0", "body": "Full Plugin Support RPM", "draft": false, "prerelease": false}' || true -d '{"tag_name": "v1.0", "name": "Fedora Build v1.0", "body": "Full Plugin Support RPM", "draft": false, "prerelease": false}' || true
# ID al (jq ile güvenli)
RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
"https://git.y1lm0z.me/api/v1/repos/${{ gitea.repository }}/releases/tags/v1.0" | jq -r '.id') "https://git.y1lm0z.me/api/v1/repos/${{ gitea.repository }}/releases/tags/v1.0" | jq -r '.id')
@@ -103,7 +92,6 @@ jobs:
exit 1 exit 1
fi fi
# Yükle
curl -X 'POST' \ curl -X 'POST' \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-F "attachment=@$NEW_RPM_NAME" \ -F "attachment=@$NEW_RPM_NAME" \