Skip to content

Commit 8fa5244

Browse files
committed
distrib: Include CREDITS.html with third-party licenses
This is the same content currently available via about:credits.
1 parent aa4734b commit 8fa5244

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

tools/distrib/README.footer.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ LICENSING
33

44
The CEF project is BSD licensed. Please read the LICENSE.txt file included with
55
this binary distribution for licensing terms and conditions. Other software
6-
included in this distribution is provided under other licenses. Please visit
7-
"about:credits" in a CEF-based application for complete Chromium and third-party
8-
licensing information.
6+
included in this distribution is provided under other licenses. Please see the
7+
CREDITS.html file or visit "about:credits" in a CEF-based application for
8+
complete Chromium and third-party licensing information.

tools/make_distrib.py

+10
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,16 @@ def print_error(msg):
913913
build_dir_debug = os.path.join(out_dir, 'Debug' + build_dir_suffix)
914914
build_dir_release = os.path.join(out_dir, 'Release' + build_dir_suffix)
915915

916+
# Transfer the about_credits.html file.
917+
# Debug and Release build should be the same so grab whichever exists.
918+
rel_path = os.path.join('gen', 'components', 'resources', 'about_credits.html')
919+
src_path = os.path.join(build_dir_release, rel_path)
920+
if not os.path.exists(src_path):
921+
src_path = os.path.join(build_dir_debug, rel_path)
922+
if not os.path.exists(src_path):
923+
raise Exception('Missing generated resources file: %s' % rel_path)
924+
copy_file(src_path, os.path.join(output_dir, 'CREDITS.html'), options.quiet)
925+
916926
if mode == 'standard' or mode == 'minimal':
917927
# create the include directory
918928
include_dir = os.path.join(output_dir, 'include')

0 commit comments

Comments
 (0)