@@ -34,29 +34,17 @@ process.on('unhandledRejection', error => {
3434 process . exit ( 1 ) ;
3535} ) ;
3636
37- const windowsPathReplacer = ( match ) => {
38- if ( process . platform === 'win32' ) {
39- // Escape the '|' character in a windows batch command
40- // See https://stackoverflow.com/a/16018942/1211524
41- if ( match === '|' ) {
42- return '^^^|' ;
43- }
44- return `^${ match } ` ;
45- }
46- return '|' ;
47- } ;
48-
4937const NATIVE_IMAGE_BUILD_ARGS = [
5038 '-H:+ReportUnsupportedElementsAtRuntime' ,
5139 '-H:IncludeResourceBundles=org.kohsuke.args4j.Messages' ,
5240 '-H:IncludeResourceBundles=org.kohsuke.args4j.spi.Messages' ,
5341 '-H:IncludeResourceBundles=com.google.javascript.jscomp.parsing.ParserConfig' ,
5442 '-H:+AllowIncompleteClasspath' ,
5543 `-H:ReflectionConfigurationFiles=${ path . resolve ( __dirname , 'reflection-config.json' ) } ` ,
56- '-H:IncludeResources=externs\.zip' . replace ( / [ \| \( \) ] / g , windowsPathReplacer ) ,
57- '-H:IncludeResources=com\/google\/javascript\/.*\.js' . replace ( / [ \| \( \) ] / g , windowsPathReplacer ) ,
58- '-H:IncludeResources=com\/google\/javascript\/.*\.txt' . replace ( / [ \| \( \) ] / g , windowsPathReplacer ) ,
59- '-H:IncludeResources=com\/google\/javascript\/.*\.typedast' . replace ( / [ \| \( \) ] / g , windowsPathReplacer ) ,
44+ '-H:IncludeResources=externs\.zip' ,
45+ '-H:IncludeResources=com\/google\/javascript\/.*\.js' ,
46+ '-H:IncludeResources=com\/google\/javascript\/.*\.txt' ,
47+ '-H:IncludeResources=com\/google\/javascript\/.*\.typedast' ,
6048 '-H:+ReportExceptionStackTraces' ,
6149 '--initialize-at-build-time' ,
6250 '--color=always' ,
0 commit comments