Skip to content

Commit

Permalink
fix: change version replacement to sed to stay pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
N1c093 authored and fwmarcel committed Jun 2, 2024
1 parent 11db983 commit 4c577f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/prepare-release.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash

cd custom_components/divera
cp manifest.json manifest.json.tmp
jq --arg version $1 '.version=$version' manifest.json.tmp > manifest.json
rm manifest.json.tmp
VERSION=$1

cd custom_components/divera
sed -i "s/0.0.0/${VERSION}/g" manifest.json
zip divera.zip -r ./

0 comments on commit 4c577f9

Please sign in to comment.