Skip to content

Commit

Permalink
Rename Apt Codename to "raspotify" from "jessie" (which was confusing…
Browse files Browse the repository at this point in the history
… + old)

However, we'll keep jessie for backward compatibility as to not break older
installations
  • Loading branch information
dtcooper committed Apr 29, 2019
1 parent 3dbe010 commit df5a09c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ sudo apt-get -y install curl apt-transport-https

# Add repo and its GPG key
curl -sSL https://dtcooper.github.io/raspotify/key.asc | sudo apt-key add -v -
echo 'deb https://dtcooper.github.io/raspotify jessie main' | sudo tee /etc/apt/sources.list.d/raspotify.list
echo 'deb https://dtcooper.github.io/raspotify raspotify main' | sudo tee /etc/apt/sources.list.d/raspotify.list

# Install package
sudo apt-get update
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

SOURCE_REPO="deb https://dtcooper.github.io/raspotify jessie main"
SOURCE_REPO="deb https://dtcooper.github.io/raspotify raspotify main"

# Install script for Raspotify. Adds the Debian repo and installs.
set -e
Expand Down
7 changes: 7 additions & 0 deletions make-apt-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,21 @@ cd apt-repo
rm -rf conf db pool dists

mkdir conf
# Keep jessie for backward compatibility
cat <<EOF > conf/distributions
Codename: jessie
Components: main
Architectures: armhf
SignWith: $GPG_KEY
Codename: raspotify
Components: main
Architectures: armhf
SignWith: $GPG_KEY
EOF

reprepro includedeb jessie "../$DEB_PKG_NAME"
reprepro includedeb raspotify "../$DEB_PKG_NAME"
rm -rf conf db

ln -fs "$(find . -name '*.deb' -type f -printf '%P\n' -quit)" raspotify-latest.deb
Expand Down

0 comments on commit df5a09c

Please sign in to comment.