build dosyası düzenleme 11
All checks were successful
MusicPlayer Fedora RPM Build / fedora-compilation (push) Successful in 2m33s
All checks were successful
MusicPlayer Fedora RPM Build / fedora-compilation (push) Successful in 2m33s
This commit is contained in:
@@ -44,13 +44,9 @@ jobs:
|
||||
- name: RPM Paketi Oluştur (Full Plugin Support)
|
||||
run: |
|
||||
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
|
||||
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
|
||||
Name: cmus-custom
|
||||
Version: 1.0
|
||||
@@ -61,25 +57,20 @@ jobs:
|
||||
%global debug_package %{nil}
|
||||
|
||||
%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
|
||||
# Program dosyaları
|
||||
/usr/bin/cmus
|
||||
/usr/bin/cmus-remote
|
||||
# Eklentiler (Hata aldığın yer burasıydı)
|
||||
/usr/lib/cmus/
|
||||
# Ayar ve tema dosyaları
|
||||
/usr/share/cmus/
|
||||
# Yardım sayfaları (Opsiyonel ama iyi olur)
|
||||
/usr/share/man/man1/cmus*
|
||||
/usr/share/man/man7/cmus*
|
||||
# Eksik olan dosyayı ve gelebilecek diğer dokümanları kapsıyoruz:
|
||||
/usr/share/doc/cmus/
|
||||
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
|
||||
|
||||
# 4. RPM'i çalışma dizinine al
|
||||
cp ~/rpmbuild/RPMS/x86_64/*.rpm .
|
||||
|
||||
- name: Release Kontrol Et ve RPM'i Yükle
|
||||
@@ -88,13 +79,11 @@ jobs:
|
||||
NEW_RPM_NAME="cmus-full-${SHORT_SHA}.x86_64.rpm"
|
||||
mv *.rpm $NEW_RPM_NAME
|
||||
|
||||
# Release oluştur
|
||||
curl -s -X 'POST' "https://git.y1lm0z.me/api/v1/repos/${{ gitea.repository }}/releases" \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-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
|
||||
|
||||
# ID al (jq ile güvenli)
|
||||
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')
|
||||
|
||||
@@ -103,7 +92,6 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Yükle
|
||||
curl -X 'POST' \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-F "attachment=@$NEW_RPM_NAME" \
|
||||
|
||||
Reference in New Issue
Block a user