mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-11 16:24:11 +01:00
CI: Generate NOTICE file with go-licenses and npm license-report
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
35
.report.tmpl
Normal file
35
.report.tmpl
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
================================================================================
|
||||||
|
================================================================================
|
||||||
|
|
||||||
|
Third-Party Software for PhotoPrism
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
The following 3rd-party software packages may be used by or distributed with
|
||||||
|
PhotoPrism. Any information relevant to third-party vendors listed below are
|
||||||
|
collected using common, reasonable means.
|
||||||
|
|
||||||
|
Date generated: YYYY-MM-DD
|
||||||
|
|
||||||
|
================================================================================
|
||||||
|
|
||||||
|
Go Dependencies
|
||||||
|
|
||||||
|
================================================================================
|
||||||
|
{{ range . }}{{ if ne .Version "Unknown" }}
|
||||||
|
Package: {{ .Name }}
|
||||||
|
Version: {{ .Version }}
|
||||||
|
License: {{ .LicenseName }} ({{ .LicenseURL }})
|
||||||
|
|
||||||
|
{{ .LicenseText }}
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
{{ end }}{{ end }}
|
||||||
|
================================================================================
|
||||||
|
|
||||||
|
Frontend Dependencies
|
||||||
|
|
||||||
|
================================================================================
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
Package License Copyright
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
7
Makefile
7
Makefile
@@ -15,6 +15,7 @@ GOIMPORTS=goimports
|
|||||||
# Build parameters.
|
# Build parameters.
|
||||||
BUILD_PATH ?= $(shell realpath "./build")
|
BUILD_PATH ?= $(shell realpath "./build")
|
||||||
BUILD_DATE ?= $(shell date -u +%y%m%d)
|
BUILD_DATE ?= $(shell date -u +%y%m%d)
|
||||||
|
REPORT_DATE ?= $(shell date -u +%Y-%m-%d)
|
||||||
BUILD_VERSION ?= $(shell git describe --always)
|
BUILD_VERSION ?= $(shell git describe --always)
|
||||||
BUILD_TAG ?= $(BUILD_DATE)-$(BUILD_VERSION)
|
BUILD_TAG ?= $(BUILD_DATE)-$(BUILD_VERSION)
|
||||||
BUILD_OS ?= $(shell uname -s)
|
BUILD_OS ?= $(shell uname -s)
|
||||||
@@ -86,6 +87,12 @@ logs:
|
|||||||
$(DOCKER_COMPOSE) logs -f
|
$(DOCKER_COMPOSE) logs -f
|
||||||
help:
|
help:
|
||||||
@echo "For build instructions, visit <https://docs.photoprism.app/developer-guide/>."
|
@echo "For build instructions, visit <https://docs.photoprism.app/developer-guide/>."
|
||||||
|
notice:
|
||||||
|
@echo "Creating license report for Go dependencies..."
|
||||||
|
go-licenses report ./internal/... ./pkg/... --template=.report.tmpl > NOTICE
|
||||||
|
sed -i "s/YYYY-MM-DD/$(REPORT_DATE)/" NOTICE
|
||||||
|
(cd frontend && make notice)
|
||||||
|
tail -n +3 frontend/NOTICE >> NOTICE
|
||||||
fix-permissions:
|
fix-permissions:
|
||||||
$(info Updating filesystem permissions...)
|
$(info Updating filesystem permissions...)
|
||||||
@if [ $(UID) != 0 ]; then\
|
@if [ $(UID) != 0 ]; then\
|
||||||
|
|||||||
20
frontend/.report.json
Normal file
20
frontend/.report.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"output": "table",
|
||||||
|
"fields": [
|
||||||
|
"name",
|
||||||
|
"licenseType",
|
||||||
|
"author"
|
||||||
|
],
|
||||||
|
"name": {
|
||||||
|
"label": "Package"
|
||||||
|
},
|
||||||
|
"installedVersion": {
|
||||||
|
"label": "Version"
|
||||||
|
},
|
||||||
|
"licenseType": {
|
||||||
|
"label": "License"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"label": "Copyright"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,10 +8,13 @@ all: install build
|
|||||||
dep: install-npm install-testcafe install
|
dep: install-npm install-testcafe install
|
||||||
dep-list:
|
dep-list:
|
||||||
npx npm-check-updates
|
npx npm-check-updates
|
||||||
|
notice:
|
||||||
|
@echo "Creating license report for frontend dependencies..."
|
||||||
|
license-report --only=prod --config=.report.json > NOTICE
|
||||||
install-npm:
|
install-npm:
|
||||||
sudo npm install --unsafe-perm=true --allow-root -g npm@latest npm-check-updates@latest
|
sudo npm install --unsafe-perm=true --allow-root -g npm@latest npm-check-updates@latest license-report@latest
|
||||||
install-testcafe:
|
install-testcafe:
|
||||||
sudo npm install --unsafe-perm=true --allow-root -g testcafe@3.5.0
|
sudo npm install --unsafe-perm=true --allow-root -g testcafe@3.6.0
|
||||||
install:
|
install:
|
||||||
npm install --no-update-notifier --no-audit
|
npm install --no-update-notifier --no-audit
|
||||||
update:
|
update:
|
||||||
|
|||||||
92
frontend/NOTICE
Normal file
92
frontend/NOTICE
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
Package License Copyright
|
||||||
|
------- ------- ---------
|
||||||
|
@babel/cli MIT The Babel Team (https://babel.dev/team)
|
||||||
|
@babel/core MIT The Babel Team (https://babel.dev/team)
|
||||||
|
@babel/plugin-transform-runtime MIT The Babel Team (https://babel.dev/team)
|
||||||
|
@babel/preset-env MIT The Babel Team (https://babel.dev/team)
|
||||||
|
@babel/register MIT The Babel Team (https://babel.dev/team)
|
||||||
|
@babel/runtime MIT The Babel Team (https://babel.dev/team)
|
||||||
|
@lcdp/offline-plugin MIT Le Comptoir Des Pharmacies <webmaster@lecomptoirdespharmacies.fr>
|
||||||
|
@vvo/tzdb MIT Vincent Voyer <vincent@codeagain.com>
|
||||||
|
axios MIT Matt Zabriskie
|
||||||
|
axios-mock-adapter MIT Colin Timmermans <colintimmermans@gmail.com>
|
||||||
|
babel-loader MIT Luis Couto <hello@luiscouto.pt>
|
||||||
|
babel-plugin-istanbul BSD-3-Clause Thai Pangsakulyanont @dtinth
|
||||||
|
browserslist MIT Andrey Sitnik <andrey@sitnik.ru>
|
||||||
|
chai MIT Jake Luer <jake@alogicalparadox.com>
|
||||||
|
cheerio MIT Matt Mueller <mattmuelle@gmail.com>
|
||||||
|
chrome-finder ISC gwuhaolin
|
||||||
|
core-js MIT Denis Pushkarev zloirock@zloirock.ru http://zloirock.ru
|
||||||
|
cross-env MIT Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
||||||
|
css-loader MIT Tobias Koppers @sokra
|
||||||
|
cssnano MIT Ben Briggs beneb.info@gmail.com http://beneb.info
|
||||||
|
easygettext MIT Polyconseil
|
||||||
|
eslint MIT Nicholas C. Zakas <nicholas+npm@nczconsulting.com>
|
||||||
|
eslint-config-prettier MIT Simon Lydell
|
||||||
|
eslint-config-standard MIT Feross Aboukhadijeh feross@feross.org https://feross.org
|
||||||
|
eslint-formatter-pretty MIT Sindre Sorhus sindresorhus@gmail.com https://sindresorhus.com
|
||||||
|
eslint-plugin-html ISC n/a
|
||||||
|
eslint-plugin-import MIT Ben Mosher <me@benmosher.com>
|
||||||
|
eslint-plugin-node MIT Toru Nagashima
|
||||||
|
eslint-plugin-prettier MIT Teddy Katz
|
||||||
|
eslint-plugin-promise ISC jden <jason@denizac.org>
|
||||||
|
eslint-plugin-vue MIT Toru Nagashima (https://github.com/mysticatea)
|
||||||
|
eslint-webpack-plugin MIT Ricardo Gobbo de Souza <ricardogobbosouza@yahoo.com.br>
|
||||||
|
eventsource-polyfill MIT amvtek <devel@amvtek.com>
|
||||||
|
file-loader MIT Tobias Koppers @sokra
|
||||||
|
file-saver MIT Eli Grey <me@eligrey.com>
|
||||||
|
hls.js Apache-2.0 n/a
|
||||||
|
i MIT Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (pksunkara.github.com)
|
||||||
|
karma MIT Vojta Jína <vojta.jina@gmail.com>
|
||||||
|
karma-chrome-launcher MIT Vojta Jina <vojta.jina@gmail.com>
|
||||||
|
karma-coverage-istanbul-reporter MIT Matt Lewis
|
||||||
|
karma-htmlfile-reporter MIT Matthias Schuetz MatthiasSchuetz@gmx.de
|
||||||
|
karma-mocha MIT Vojta Jina <vojta.jina@gmail.com>
|
||||||
|
karma-verbose-reporter MIT Pier Fumagalli pier@usrz.com
|
||||||
|
karma-webpack MIT Tobias Koppers @sokra
|
||||||
|
luxon MIT Isaac Cambron
|
||||||
|
maplibre-gl BSD-3-Clause n/a
|
||||||
|
memoize-one MIT Alex Reardon <alexreardon@gmail.com>
|
||||||
|
mini-css-extract-plugin MIT Tobias Koppers @sokra
|
||||||
|
minimist MIT James Halliday mail@substack.net http://substack.net
|
||||||
|
mocha MIT TJ Holowaychuk <tj@vision-media.ca>
|
||||||
|
node-storage-shim ISC Michael Nahkies
|
||||||
|
photoswipe MIT Dmitry Semenov (http://dimsemenov.com)
|
||||||
|
postcss MIT Andrey Sitnik <andrey@sitnik.ru>
|
||||||
|
postcss-import MIT Maxime Thirouin
|
||||||
|
postcss-loader MIT Andrey Sitnik <andrey@sitnik.ru>
|
||||||
|
postcss-preset-env MIT-0 n/a
|
||||||
|
postcss-reporter MIT David Clark david.dave.clark@gmail.com https://davidtheclark.com
|
||||||
|
postcss-url MIT Maxime Thirouin
|
||||||
|
prettier MIT James Long
|
||||||
|
pubsub-js MIT Morgan Roderick morgan@roderick.dk http://roderick.dk
|
||||||
|
regenerator-runtime MIT Ben Newman <bn@cs.stanford.edu>
|
||||||
|
resolve-url-loader MIT bholloway
|
||||||
|
sass MIT Natalie Weizenbaum nweiz@google.com https://github.com/nex3
|
||||||
|
sass-loader MIT J. Tangelder
|
||||||
|
server MIT Francisco Presencia <public@francisco.io> (https://francisco.io/)
|
||||||
|
sockette MIT Luke Edwards luke.edwards05@gmail.com lukeed.com
|
||||||
|
style-loader MIT Tobias Koppers @sokra
|
||||||
|
svg-url-loader MIT Hovhannes Babayan
|
||||||
|
tar ISC GitHub Inc.
|
||||||
|
url-loader MIT Tobias Koppers @sokra
|
||||||
|
util MIT Joyent http://www.joyent.com
|
||||||
|
vue MIT Evan You
|
||||||
|
vue-fullscreen ISC mirari
|
||||||
|
vue-gettext MIT Marc Hertzog
|
||||||
|
vue-infinite-scroll MIT long.zhang@ele.me
|
||||||
|
vue-loader MIT Evan You
|
||||||
|
vue-loader-plugin ISC Ivan liu
|
||||||
|
vue-luxon MIT Cas Bloem
|
||||||
|
vue-router MIT Evan You
|
||||||
|
vue-style-loader MIT Evan You
|
||||||
|
vue-template-compiler MIT Evan You
|
||||||
|
vue2-filters MIT Arhey
|
||||||
|
vuetify MIT John Leider john@vuetifyjs.com
|
||||||
|
webpack MIT Tobias Koppers @sokra
|
||||||
|
webpack-bundle-analyzer MIT Yury Grunin <grunin.ya@ya.ru>
|
||||||
|
webpack-cli MIT n/a
|
||||||
|
webpack-hot-middleware MIT Glen Mailer <glen@stainlessed.co.uk>
|
||||||
|
webpack-manifest-plugin MIT Dane Thurber <dane.thurber@gmail.com>
|
||||||
|
webpack-md5-hash MIT Kirill Ermolov
|
||||||
|
webpack-merge MIT Juho Vepsalainen <bebraw@gmail.com>
|
||||||
1
scripts/dist/install-go-tools.sh
vendored
1
scripts/dist/install-go-tools.sh
vendored
@@ -56,6 +56,7 @@ case $DESTARCH in
|
|||||||
GOBIN="/usr/local/bin" go install github.com/muesli/duf@latest
|
GOBIN="/usr/local/bin" go install github.com/muesli/duf@latest
|
||||||
GOBIN="/usr/local/bin" go install github.com/go-delve/delve/cmd/dlv@latest
|
GOBIN="/usr/local/bin" go install github.com/go-delve/delve/cmd/dlv@latest
|
||||||
GOBIN="/usr/local/bin" go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
|
GOBIN="/usr/local/bin" go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
|
||||||
|
GOBIN="/usr/local/bin" go install github.com/google/go-licenses@latest
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
2
scripts/dist/install-nodejs.sh
vendored
2
scripts/dist/install-nodejs.sh
vendored
@@ -30,6 +30,6 @@ apt-get update && apt-get -qq install nodejs
|
|||||||
|
|
||||||
echo "Installing TestCafe..."
|
echo "Installing TestCafe..."
|
||||||
npm config set cache ~/.cache/npm
|
npm config set cache ~/.cache/npm
|
||||||
npm install --unsafe-perm=true --allow-root -g npm@latest npm-check-updates@latest n@latest testcafe@3.5.0
|
npm install --unsafe-perm=true --allow-root -g npm@latest npm-check-updates@latest license-report@latest n@latest testcafe@3.6.0
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
Reference in New Issue
Block a user