Build and ship LICENSE file

Bring back terser-webpack-plugin from commit c52136c051 and re-enable
it. It builds the autogenerated dist/index.js.LICENSE.txt which is quite
important for shipping distribution packages -- c-{podman,machines} both
do this.

Backport 95021c336e
to make sure that the webpack for the release tarball is *actually*
built in production mode.
This commit is contained in:
Martin Pitt 2021-04-09 16:10:40 +02:00 committed by Katerina Koukiou
parent c52136c051
commit 2624dbb891
4 changed files with 6 additions and 2 deletions

View file

@ -27,6 +27,8 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose
%files
%doc README.md
%license LICENSE dist/index.js.LICENSE.txt
%{_datadir}/cockpit/*
%{_datadir}/metainfo/*