23 lines
717 B
Bash
Executable File
23 lines
717 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
OUTDIR=`pwd`/dist/release
|
|
|
|
# Clean out the release directory
|
|
rm -rf "$OUTDIR"
|
|
mkdir -p "$OUTDIR"
|
|
|
|
# Place info about the current commit into the build dir to easily identify releases
|
|
npm ls -depth -1 | head -n 1 | cut -d' ' -f 1 > "$OUTDIR"/release.txt
|
|
date >> "$OUTDIR"/release.txt
|
|
git rev-parse HEAD >> "$OUTDIR"/release.txt
|
|
|
|
# Place a json schema for the file format into the build directory too
|
|
node scripts/generate-file-format-schema-json.js > "$OUTDIR"/file-format-schema.json
|
|
|
|
# Include licenses
|
|
# https://github.com/jlfwong/speedscope/pull/412
|
|
cp assets/source-code-pro/LICENSE.md "$OUTDIR"/source-code-pro.LICENSE.md
|
|
|
|
node_modules/.bin/tsx scripts/build-release.ts "$OUTDIR" |