forked from DBuit/custom-sonos-card
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: create release for both cards
- Loading branch information
Showing
4 changed files
with
60 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.idea | ||
dist/ | ||
dist*/ | ||
.DS_Store | ||
node_modules/ | ||
coverage/ | ||
lcov-report/ | ||
lcov-report/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
DIR="dist-maxi-media-player" | ||
FILE="maxi-media-player.js" | ||
mkdir -p $DIR | ||
|
||
cp dist/custom-sonos-card.js $DIR/$FILE | ||
cd $DIR || exit | ||
gsed -i 's/"sonos-card"/"maxi-media-player"/g' $FILE | ||
gsed -i 's/"Sonos"/"Maxi Media Player"/g' $FILE | ||
gsed -i 's/sonos-card-/mxmp-/g' $FILE | ||
gsed -i 's/sonos-/mxmp-/g' $FILE | ||
gsed -i 's/sonos-card-dispatch/mxmp-dispatch/g' $FILE | ||
gsed -i 's/Sonos Card/Maxi Media Player/g' $FILE | ||
gsed -i 's/Media player for your Sonos speakers/Media card for Home Assistant UI with a focus on managing multiple media players/g' $FILE | ||
|
||
FILE="README.md" | ||
cd .. | ||
cp $FILE $DIR/ | ||
cd $DIR || exit | ||
gsed -i '/\/\/#ONLY_SONOS_CARD_START/,/\/\/#ONLY_SONOS_CARD_END/d' $FILE | ||
gsed -i ':a;N;$!ba;s/[^\n]*#ONLY_SONOS_CARD[^\n]*\n//g' $FILE | ||
gsed -i 's/custom-sonos-card/maxi-media-player/g' $FILE | ||
gsed -i 's/custom:sonos-card/custom:maxi-media-player/g' $FILE | ||
gsed -i 's/Sonos Card/Maxi Media Player/g' $FILE |