From 84431a4c46a07cf945632a700b342f6d02cb39b3 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 5 Sep 2024 15:48:26 -0400 Subject: [PATCH] prune rather than reinstall --- backports/signal-desktop/APKBUILD | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/backports/signal-desktop/APKBUILD b/backports/signal-desktop/APKBUILD index 9735ca2..72991fb 100644 --- a/backports/signal-desktop/APKBUILD +++ b/backports/signal-desktop/APKBUILD @@ -363,7 +363,7 @@ build() { npm run build msg "Cleaning dev dependencies for ringrtc" - npm ci --ignore-scripts --omit=dev + npm prune --omit=dev ) # module on npm intentionally unbuildable: https://github.com/signalapp/libsignal/issues/464#issuecomment-1160665052 @@ -382,7 +382,7 @@ build() { npm run tsc msg "Cleaning dev dependencies for libsignal" - npm ci --ignore-scripts --omit=dev + npm prune --omit=dev ) ( @@ -408,17 +408,7 @@ build() { npm run build:dev # purge non-production deps - npm ci --ignore-scripts --omit=dev - - # XXX: the previous step undoes the patches. and removes the patch applier. - # please force me to just implement packaging without dev modules in tasje. -lnl - for x in patches/*.patch; do - # some of these patches are made for devDependencies - if [ -d "$(grep -Eo 'node_modules/(@[a-z\d_-]+/)?[a-z\d_-]+/' "$x" | head -n1)" ]; then - msg "$x" - patch -Np1 -i ./"$x" - fi - done + npm prune --omit=dev # use our libsignal rm -rf node_modules/@signalapp/libsignal-client/