File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 130
130
"update-commit-hash" : " run-script-os" ,
131
131
"update-commit-hash:darwin:linux" : " COMMIT_INFO=$(git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD); echo \" {\\\" commitInfo\\\" : \\\" $COMMIT_INFO\\\" }\" > \" src/commitInfo.json\" " ,
132
132
"update-commit-hash:win32" : " tools/get_app_version_for_windows.bat" ,
133
- "generate-notice" : " mkdirp notices && yarn licenses generate-disclaimer --production > notices/notices.txt && yarn node tools/generateNotices.mjs" ,
133
+ "generate-notice" : " mkdirp notices && yarn licenses generate-disclaimer --production > notices/notices.txt && yarn node tools/generateNotices.mjs && ./tools/checkNotices.sh " ,
134
134
"ship-linux" : " yarn install-deps:linux && yarn build && tools/build_linux_release.sh" ,
135
135
"ship-win" : " yarn install-deps:win32 && yarn build && electron-builder --win --x64 --publish never && mkdirp release/win && mv \" release/OpossumUI Setup 0.1.0.exe\" \" release/win/OpossumUI-for-win.exe\" " ,
136
136
"ship-mac" : " yarn install-deps:darwin && yarn build && electron-builder --mac --x64 --publish never && zip -r -y -q 'release/mac/OpossumUI-for-mac.zip' 'release/mac/'" ,
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
4
+ # SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
5
+ #
6
+ # SPDX-License-Identifier: Apache-2.0
7
+
8
+ NOTICE_HEADER=" THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THE OPOSSUM UI PRODUCT."
9
+
10
+ grep -q " ${NOTICE_HEADER} " ./notices/notices.txt || {
11
+ echo " Error: Attributions not found in notices.txt"
12
+ exit 1
13
+ }
14
+ grep -q " ${NOTICE_HEADER} " ./notices/notices.html || {
15
+ echo " Error: Attributions not found in notices.html"
16
+ exit 1
17
+ }
You can’t perform that action at this time.
0 commit comments