mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Updated the install scripts to deal with the increased number of (effect) files
Former-commit-id: a7d7484fe9d8a23b217f22a35b092b53147fb393
This commit is contained in:
parent
b124ba25d8
commit
279018f74c
@ -10,7 +10,18 @@ repodir="$2"
|
||||
echo build directory = $builddir
|
||||
echo repository root dirrectory = $repodir
|
||||
|
||||
echo Copying binaries
|
||||
cp -v "$builddir"/bin/hyperiond "$repodir"/deploy
|
||||
cp -v "$builddir"/bin/hyperion-remote "$repodir"/deploy
|
||||
cp -v "$builddir"/bin/gpio2spi "$repodir"/deploy
|
||||
outfile="$repodir/deploy/hyperion.tar.gz"
|
||||
echo create $outfile
|
||||
|
||||
tar --create --verbose --gzip --absolute-names --show-transformed-names \
|
||||
--file "$outfile" \
|
||||
--transform "s:$builddir/bin/:hyperion/bin/:" \
|
||||
--transform "s:$repodir/effects/:hyperion/effects/:" \
|
||||
--transform "s:$repodir/config/:hyperion/config/:" \
|
||||
--transform "s://:/:g" \
|
||||
"$builddir/bin/hyperiond" \
|
||||
"$builddir/bin/hyperion-remote" \
|
||||
"$builddir/bin/gpio2spi" \
|
||||
"$builddir/bin/dispmanx2png" \
|
||||
"$repodir/effects/"* \
|
||||
"$repodir/config/hyperion.config.json"
|
||||
|
@ -16,22 +16,20 @@ fi
|
||||
# Stop hyperion daemon if it is running
|
||||
/sbin/initctl stop hyperion
|
||||
|
||||
# Get the Hyperion executable
|
||||
wget -N https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperiond -P /usr/bin/
|
||||
chmod +x /usr/bin/hyperiond
|
||||
# Get and extract the Hyperion binaries and effects to /opt
|
||||
wget https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion.tar.gz -O - | tar -C /opt -xz
|
||||
|
||||
# Get the Hyperion command line utility
|
||||
wget -N https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion-remote -P /usr/bin/
|
||||
chmod +x /usr/bin/hyperion-remote
|
||||
# create links to the binaries
|
||||
ln -fs /opt/hyperion/bin/hyperiond /usr/bin/hyperiond
|
||||
ln -fs /opt/hyperion/bin/hyperion-remote /usr/bin/hyperion-remote
|
||||
|
||||
# Copy the gpio changer (gpio->spi) to the /usr/bin
|
||||
# create link to the gpio changer (gpio->spi)
|
||||
if [ $IS_XBIAN -eq 0 ]; then
|
||||
wget -N https://raw.github.com/tvdzwan/hyperion/master/deploy/gpio2spi -P /usr/bin/
|
||||
chmod +x /usr/bin/gpio2spi
|
||||
ln -fs /opt/hyperion/bin/gpio2spi /usr/bin/gpio2spi
|
||||
fi
|
||||
|
||||
# Copy the hyperion configuration file to /etc
|
||||
wget -N https://raw.github.com/tvdzwan/hyperion/master/config/hyperion.config.json -P /etc/
|
||||
# Copy a link to the hyperion configuration file to /etc
|
||||
ln -s /opt/hyperion/config/hyperion.config.json /etc/hyperion.config.json
|
||||
|
||||
# Copy the service control configuration to /etc/int
|
||||
if [ $IS_XBIAN -eq 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user