Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions prep-sources
Original file line number Diff line number Diff line change
@@ -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
# 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 .
Loading