diff --git a/prep-sources b/prep-sources index 5874aff..357b6c7 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 .