From 9fba51960c79e5c84b8a5eded5cfcaa9ccabfcb2 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Tue, 30 Jul 2013 19:43:33 -0700 Subject: [PATCH] Clean up arch name in buildinfo when generating hashes. Publish release manifests separately by platform and check they are the same in publish-release. --- scripts/admin/build-package-tarballs.sh | 2 +- scripts/admin/build-release.sh | 4 +- .../publish-release/server/publish-release.js | 40 ++++++++++++------- 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/scripts/admin/build-package-tarballs.sh b/scripts/admin/build-package-tarballs.sh index eac918e34b..39c5b4a490 100755 --- a/scripts/admin/build-package-tarballs.sh +++ b/scripts/admin/build-package-tarballs.sh @@ -48,7 +48,7 @@ do echo "," >> "$TOPDIR/.package_manifest_chunk" fi - PACKAGE_VERSION=$(perl -pe 's/\Q$ENV{TOPDIR}\E//g' $PACKAGE/.build/buildinfo.json | shasum | cut -c 1-10) + PACKAGE_VERSION=$(perl -pe 's/\Q$ENV{TOPDIR}\E//g; s/os\..*\.json/os.json/g' $PACKAGE/.build/buildinfo.json | shasum | cut -c 1-10) echo "$PACKAGE version $PACKAGE_VERSION" ROOTDIR="$PACKAGE-${PACKAGE_VERSION}-${PLATFORM}" TARBALL="$OUTDIR/$PACKAGE-${PACKAGE_VERSION}-${PLATFORM}.tar.gz" diff --git a/scripts/admin/build-release.sh b/scripts/admin/build-release.sh index 2fc05139b8..3f0ce4c95b 100755 --- a/scripts/admin/build-release.sh +++ b/scripts/admin/build-release.sh @@ -40,7 +40,7 @@ MANIFEST_PACKAGE_CHUNK=$(cat "$TOPDIR/.package_manifest_chunk") rm "$TOPDIR/.tools_version" rm "$TOPDIR/.package_manifest_chunk" -cat > "$OUTDIR/release.json" < "$OUTDIR/release.json-$PLATFORM" <