From bd1dcaf0e6cf08de1a03f65ff0abe58a3d59c86c Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Tue, 4 Mar 2025 17:44:38 +0100 Subject: [PATCH] UI: update build script for NS7 UI and improve tar command --- prep-sources | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/prep-sources b/prep-sources index 5874aff5..357b6c76 100755 --- a/prep-sources +++ b/prep-sources @@ -1,9 +1,17 @@ #!/bin/bash -# Prepare source for RPM build +# +# Build NS7 UI +# -# download langs from transifex +set -e -# tar directory -pushd ui && npm install && npm run build && cd dist && tar cvzf ../../nethserver-fail2ban-cockpit.tar.gz * -popd \ No newline at end of file +# Build UI +NODE_OPTIONS="--openssl-legacy-provider" +export NODE_OPTIONS +pushd ui +npm install +npm run build +popd + +tar -C ui/dist -c -z -f nethserver-fail2ban-cockpit.tar.gz .