Skip to content

Commit

Permalink
Update signal-buildscript.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
0mniteck authored Nov 17, 2024
1 parent e37d3f3 commit dbf2f6e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions signal-buildscript.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
#!/usr/bin/env bash

[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

trap '[[ $pid ]] && kill $pid; exit' EXIT

if [ "$1" != "" ]; then
BUILD_TYPE="$1"
fi

echo "Starting Build "$(date -u '+on %D at %R UTC') && echo "# Starting Build "$(date -u '+on %D at %R UTC') > release/release.sha512sum
echo "BUILD_TYPE: ${BUILD_TYPE}"
echo "SOURCE_DATE_EPOCH: ${SOURCE_DATE_EPOCH}"

echo "Entering /Signal-Desktop"
pushd /Signal-Desktop
git-lfs install
Expand Down Expand Up @@ -42,13 +39,13 @@ else
echo "Unknown build type ${BUILD_TYPE}"
exit 1
fi

npm run generate
npm run build:esbuild:prod
xvfb-run --auto-servernum npm run build:preload-cache
npm run build:release -- --arm64 --publish=never --linux deb
echo "Generating SBOM at /Signal-Desktop/release/manifest.spdx.json"
npm sbom --sbom-format="spdx" --sbom-type="application" > /Signal-Desktop/release/manifest.spdx.json
# TESTS
xvfb-run --auto-servernum npm run test-node
xvfb-run --auto-servernum npm run test-electron
xvfb-run --auto-servernum npm run test-release
Expand Down

0 comments on commit dbf2f6e

Please sign in to comment.