fix build
Some checks failed
/ lint (pull_request) Successful in 30s
/ deploy-x86_64 (pull_request) Has been skipped
/ build-x86_64 (pull_request) Failing after 6m36s
/ build-aarch64 (pull_request) Failing after 22m26s
/ deploy-aarch64 (pull_request) Has been skipped

This commit is contained in:
Antoine Martin 2024-09-05 13:50:33 -04:00
parent e75db687a7
commit 96875ee40f
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -293,7 +293,7 @@ prepare() {
sed -i 's/unknown-linux-gnu/alpine-linux-musl/g' binding.gyp
msg "Installing libsignal js dependencies"
npm install --ignore-scripts
npm ci --ignore-scripts
)
# remove shipped fonts for system-provided (part 1)
@ -359,10 +359,11 @@ build() {
(
cd "$srcdir"/ringrtc-$_ringrtcver/src/node
msg "Building ringrtc JS glue code"
yarn build
npm ci --ignore-scripts
npm run build
msg "Cleaning dev dependencies for ringrtc"
yarn --ignore-scripts --frozen-lockfile --production
npm ci --ignore-scripts --omit=dev
)
# module on npm intentionally unbuildable: https://github.com/signalapp/libsignal/issues/464#issuecomment-1160665052
@ -370,17 +371,18 @@ build() {
cd "$srcdir"/libsignal-$_libsignalver/node
msg "Building libsignal"
yarn node-gyp configure --nodedir=/usr/include/electron/node_headers --build-from-source
yarn node-gyp build --nodedir=/usr/include/electron/node_headers --build-from-source
node-gyp configure --nodedir=/usr/include/electron/node_headers --build-from-source
node-gyp build --nodedir=/usr/include/electron/node_headers --build-from-source
mkdir -p prebuilds/linux-$chromium_arch
mv build/Release/libsignal_client_linux_$chromium_arch.node prebuilds/linux-$chromium_arch/node.napi.node
msg "Building libsignal glue code"
yarn tsc
npm ci --ignore-scripts
npm run tsc
msg "Cleaning dev dependencies for libsignal"
yarn --ignore-scripts --frozen-lockfile --production
npm ci --ignore-scripts --omit=dev
)
(
@ -392,18 +394,18 @@ build() {
)
# from package.json postinstall
yarn build:acknowledgments
yarn patch-package
npm run build:acknowledgments
npm exec patch-package
rm -rf node_modules/dtrace-provider
# get esbuild installed (needed for next step)
npm rebuild esbuild
npm install esbuild
# build front
NODE_ENV=production \
SIGNAL_ENV=production \
NODE_OPTIONS=--openssl-legacy-provider \
yarn build:dev
npm run build:dev
# purge non-production deps
npm ci --ignore-scripts --omit=dev
@ -451,7 +453,7 @@ build() {
check() {
# tests run against downloaded build of electron for glibc, probably can be patched
yarn test
npm run test
}
package() {