Skip to content

Commit

Permalink
Remove rpm release builder
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Dec 1, 2024
1 parent adc9fac commit 5bf74fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/release-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,35 +160,3 @@ jobs:
asset_path: dist/OnTheSpot-x86_64.AppImage
asset_name: OnTheSpot-x86_64.AppImage
asset_content_type: application/octet-stream

rpm-x86_64-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y rpm python3-pip python3-dev python3-setuptools build-essential
- name: Run rpm Build Script
run: scripts/build_rpm.sh
shell: bash

- name: Upload AppImage Executable
uses: actions/upload-artifact@v4
with:
name: OnTheSpot.rpm
path: dist/OnTheSpot.rpm

- name: Upload to Release (AppImage)
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/OnTheSpot.rpm
asset_name: OnTheSpot-x86_64.rpm
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion distros/fedora/onthespot.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A music downloader.
mkdir -p %{buildroot}/usr/lib/python3/site-packages
python3 -m pip install --root %{buildroot} --no-deps --ignore-installed %{SOURCE0}
# Only here because I'm to lazy to write another spec and plan on dropping music-tag
python3 -m pip install librespot music-tag
python3 -m pip install --root %{buildroot} --no-deps --ignore-installed librespot music-tag

# Ensure that the executables are installed
mkdir -p %{buildroot}/usr/bin
Expand Down
4 changes: 2 additions & 2 deletions scripts/build_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
echo "========= OnTheSpot RPM Build Script ==========="


#echo " => Fetch Dependencies"
#sudo dnf install rpm-build python3-pip python3-devel python3-setuptools
echo " => Fetch Dependencies"
sudo dnf install rpm-build python3-pip python3-devel python3-setuptools


echo " => Build OnTheSpot.whl"
Expand Down

0 comments on commit 5bf74fd

Please sign in to comment.