File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * .zip
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
2-
32<extension >
4- <name >PLUGIN_DSDPLAYER</name >
5- <module >Plugins::DSDPlayer::Plugin</module >
6- <version >1.05</version >
7- <description >PLUGIN_DSDPLAYER_DESC</description >
8- <creator >Kimmo, Triode, Ralphy</creator >
9- <homepageURL >http://www.daphile.com</homepageURL >
10- <defaultState >enabled</defaultState >
11- <type >2</type ><!-- type=extension -->
12- <targetApplication >
13- <id >SlimServer</id >
14- <minVersion >7.9</minVersion >
15- <maxVersion >8.*</maxVersion >
16- </targetApplication >
3+ <name >PLUGIN_DSDPLAYER</name >
4+ <module >Plugins::DSDPlayer::Plugin</module >
5+ <version >1.06</version >
6+ <description >PLUGIN_DSDPLAYER_DESC</description >
7+ <creator >Kimmo, Triode, Ralphy</creator >
8+ <homepageURL >https://github.com/terual/DSDPlayer</homepageURL >
9+ <defaultState >enabled</defaultState >
10+ <type >2</type >
11+ <!-- type=extension -->
12+ <targetApplication >
13+ <id >SlimServer</id >
14+ <minVersion >7.9</minVersion >
15+ <maxVersion >8.*</maxVersion >
16+ </targetApplication >
1717</extension >
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ REPO_REMOTE=` git config --get remote.origin.url`
4+ if [ -z $REPO_REMOTE ]; then
5+ echo " Not a git repository"
6+ exit 1
7+ fi
8+ REPO_NAME=$( basename -s .git $REPO_REMOTE )
9+ REPO_OWNER=" terual"
10+
11+ # Check if xmlstarlet is available
12+ if ! command -v xmlstarlet & > /dev/null
13+ then
14+ echo " xmlstarlet could not be found"
15+ exit 1
16+ fi
17+
18+ # Get args
19+ while getopts v:m: option
20+ do
21+ case " ${option} "
22+ in
23+ v) VERSION=" $OPTARG " ;;
24+ m) MESSAGE=" $OPTARG " ;;
25+ esac
26+ done
27+
28+ if [ -z " $VERSION " ]
29+ then
30+ echo " Usage: mkrel.sh -v <version> [-m <message>]"
31+ exit 1
32+ fi
33+
34+ # Set default message
35+ if [ " $MESSAGE " == " " ]; then
36+ MESSAGE=$( printf " Release of version %s" $VERSION )
37+ fi
38+
39+ # Name and URL of zipball
40+ ZIPBALL=" $REPO_NAME -$VERSION .zip"
41+ URL=" https://github.com/$REPO_OWNER /$REPO_NAME /releases/download/$VERSION /$ZIPBALL "
42+
43+ # First update version in install.xml
44+ xmlstarlet ed --inplace --update " //extension/version" --value " $VERSION " install.xml
45+
46+ # Then zip plugin and update repo.xml
47+ zip -r " $ZIPBALL " . -x " .git/*" " .github/*" " .gitignore" " repo.xml" " *.zip" " *.sh" & > /dev/null
48+ SHA=` sha1sum " $ZIPBALL " | awk ' { print $1 }' `
49+ xmlstarlet ed --inplace --update " //extensions/plugins/plugin/sha" --value " $SHA " repo.xml
50+ xmlstarlet ed --inplace --update " //extensions/plugins/plugin/url" --value " $URL " repo.xml
51+ xmlstarlet ed --inplace --update " //extensions/plugins/plugin/@version" --value " $VERSION " repo.xml
52+
53+ # Commit
54+ git commit -a -m " $MESSAGE "
55+ git push
56+
57+ echo " Now bump release to version $VERSION and upload $ZIPBALL "
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <extensions >
3+ <details >
4+ <title lang =" EN" >DSDPlayer</title >
5+ </details >
6+ <plugins >
7+ <plugin name =" DSDPlayer" version =" 1.06" minTarget =" 7.9" maxTarget =" 8.*" target =" unix" >
8+ <title lang =" EN" >DSDPlayer</title >
9+ <desc lang =" EN" >Playback of DSD files (.dsf and .dff) via your Squeezebox. Supports conversion to PCM or playback as DSD-over-PCM (DoP) for DACs supporting DoP.</desc >
10+ <creator >Kimmo, Triode, Ralphy</creator >
11+ <email >triode1@btinternet.com</email >
12+ <url >https://github.com/terual/DSDPlayer/releases/download/1.06/DSDPlayer-1.06.zip</url >
13+ <sha >bebdc4f8dad9381a03867ca11470017f2a6c40fd</sha >
14+ </plugin >
15+ </plugins >
16+ </extensions >
You can’t perform that action at this time.
0 commit comments