Skip to content

Commit

Permalink
fix: Release script change to hack the system.json for development pr…
Browse files Browse the repository at this point in the history
…e-releases
  • Loading branch information
xdy committed Jan 29, 2021
1 parent 786b973 commit aae4283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sed -i -e 's|\(.*"version"\): "\(.*\)",.*|\1: '"\"$1\",|" static/system.json &&
cp static/system.json dist &&
sed -i -e 's|\(.*"version"\): "\(.*\)",.*|\1: '"\"$1\",|" package.json &&
if [[ $1 =~ "development" ]]; then sed -i -e "s|(.*)/latest/(.*)|\1/$1/\2|" system.json; fi &&
if echo "$1" | grep -q "development"; then sed -i -e "s|(.*)/latest/(.*)|\1/$1/\2|" system.json; fi &&
npm install &&
npm audit fix &&
cd dist || exit &&
Expand Down

0 comments on commit aae4283

Please sign in to comment.