Two breaking changes have landed in the profiler code since the last revision bump: https://github.com/firefox-devtools/profiler/commit/307de87c964168485ecc0f67b5f00c24e827cc0a bumped the required Node version from 22 to 24 https://github.com/firefox-devtools/profiler/commit/8c0afb1f47190487b08ea2561ae3cc0f7a5d31e9 renamed symbolicator-cli to profiler-edit, and also changed the build command name, output location, and CLI syntax Differential Revision: https://phabricator.services.mozilla.com/D296453
20 lines
424 B
Bash
Executable File
20 lines
424 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
ARTIFACT="profiler-node-tools"
|
|
YARN_VERSION="1.22.22"
|
|
|
|
export PATH="$PATH:$MOZ_FETCHES_DIR/node/bin"
|
|
npm install -g yarn@$YARN_VERSION # Use yarn version >1.10
|
|
|
|
cd $MOZ_FETCHES_DIR/profiler
|
|
yarn install
|
|
yarn build-node-tools
|
|
|
|
mkdir -p "${ARTIFACT}"
|
|
cp ./node-tools-dist/*.js "${ARTIFACT}/"
|
|
tar -acf "${ARTIFACT}.tar.zst" "${ARTIFACT}"
|
|
|
|
mkdir -p "$UPLOAD_DIR"
|
|
mv "${ARTIFACT}.tar.zst" "$UPLOAD_DIR"
|