Update for 1.1.0

This commit is contained in:
2020-08-27 13:08:19 -05:00
parent ee03a9e97b
commit 3f9dc27869
5 changed files with 2947 additions and 2956 deletions
+6 -7
View File
@@ -5,7 +5,7 @@ set -euo pipefail
for appdir in `find ./packages -name '*-app' -type d | grep -v node_modules`; do
pushd $appdir
ORG="dxos.network"
WNS_ORG="dxos"
PKG_NAME=`cat package.json | jq -r '.name' | cut -d'/' -f2-`
PKG_DESC=`cat package.json | jq -r '.description'`
PKG_VERSION=`cat package.json | jq -r '.version'`
@@ -14,16 +14,15 @@ for appdir in `find ./packages -name '*-app' -type d | grep -v node_modules`; do
PKG_DESC="$PKG_NAME"
fi
WNS_NAME="$ORG/$PKG_NAME"
WNS_VERSION=`yarn -s wire app query --name "$WNS_NAME" | jq -r '.[0].version'`
WNS_NAME="$WNS_ORG/$PKG_NAME"
WNS_VERSION=`yarn -s wire wns name resolve wrn://${WNS_ORG}/application/${PKG_NAME} | jq -r '.records[0].attributes.version'"`
if [ -z "$WNS_VERSION" ]; then
WNS_VERSION="0.0.0"
WNS_VERSION="0.0.1"
fi
cat <<EOF > app.yml
name: $WNS_NAME
displayName: $PKG_DESC
name: $PKG_NAME
build: yarn dist
version: $WNS_VERSION
EOF
@@ -40,7 +39,7 @@ EOF
else
yarn -s wire app publish
fi
yarn -s wire app register
yarn -s wire app register --name "wrn://${WNS_ORG}/application/${PKG_NAME}"
popd
done