Skip to content

Commit 9f20ea5

Browse files
committed
generate and distribute credits.html
1 parent 4b85a39 commit 9f20ea5

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

nw.gypi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@
314314
'type': 'none',
315315
'dependencies': [
316316
'generate_nw_resources',
317+
'about_credits',
317318
],
318319
'variables': {
319320
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
@@ -344,6 +345,33 @@
344345
},
345346
],
346347
},
348+
{
349+
'target_name': 'about_credits',
350+
'type': 'none',
351+
'actions': [
352+
{
353+
'variables': {
354+
'generator_path': '../../tools/licenses.py',
355+
'about_credits_file': '<(PRODUCT_DIR)/credits.html',
356+
},
357+
'action_name': 'generate_about_credits',
358+
'inputs': [
359+
# TODO(phajdan.jr): make licenses.py print inputs too.
360+
'<(generator_path)',
361+
],
362+
'outputs': [
363+
'<(about_credits_file)',
364+
],
365+
'hard_dependency': 1,
366+
'action': ['python',
367+
'<(generator_path)',
368+
'credits',
369+
'<(about_credits_file)',
370+
],
371+
'message': 'Generating about:credits.',
372+
},
373+
],
374+
},
347375
{
348376
# We build a minimal set of resources so WebKit in nw has
349377
# access to necessary resources.

tools/package_binaries.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
'nw.pak',
7979
'libffmpegsumo.so',
8080
'nwsnapshot',
81+
'credits.html',
8182
)
8283

8384
required_file_win = (
@@ -88,11 +89,13 @@
8889
'nw.exe',
8990
'nw.pak',
9091
'nwsnapshot.exe',
92+
'credits.html',
9193
)
9294

9395
required_file_mac = (
9496
'node-webkit.app',
9597
'nwsnapshot',
98+
'credits.html',
9699
)
97100

98101
required_chromedriver2_file_win = (

0 commit comments

Comments
 (0)