NickNaso / ghostscript4js

Ghostscript4JS binds the Ghostscript C API to the Node.JS world.
http://www.nacios.it
Apache License 2.0
66 stars 19 forks source link

Invalid file path #16

Closed jdziat closed 7 years ago

jdziat commented 7 years ago

When building on windows i found that the file: g4js-home.js should be named gs4js-env-home.js

see the binding file snippet below: ['OS=="win"', { "conditions": [ ['target_arch=="x64"', { "variables": { "GS4JS_HOME%": "<!(node gs4js-env-home.js)", "GS4JS_LIB%": "gsdll64.lib", "GS4JS_DLL%": "gsdll64.dll", "conditions": [ ['"<!(node gs4js-env-home.js)" == ""', { "GS4JS_HOME%": "C:/gs/bin" }] ] } }, { "variables": { "GS4JS_HOME%": "<!(node gs4js-env-home.js)", "GS4JS_LIB%": "gsdll32.lib", "GS4JS_DLL%": "gsdll32.dll", "conditions": [ ['"<!(node gs4js-env-home.js)" == ""', { "GS4JS_HOME%": "C:/gs/bin" }] ] } }] ],

NickNaso commented 7 years ago

Hi @jdziat, thank you for your report. Now the installation work fine also on windows. I changed the name of the script that retrieve the environment variable in windows system. All is published on npm with version 1.0.19.