LiaScript / LiaScript-Exporter

Export LiaScript courses into SCORM1.2 & 2004, IMS, PDF or a standalone WEB project ...
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

Unintended script execution with Windows Script Host #17

Closed rkttu closed 3 years ago

rkttu commented 3 years ago

I prefer running my most daily workload on a Windows environment. When I try to run your code's liaex or liascript-exporter alias, it automatically invokes the Windows Script Host unintentionally.

I googled some hints to troubleshoot this problem, and I got a solution that need your help.

Can you examine apply this SO solution? https://stackoverflow.com/questions/38936885/npm-run-script-causes-windows-script-host-error

(FYI) My current situation looks image

rkttu commented 3 years ago

Also, I found that .bin scripts also missing shbang. Every other .bin scripts include #!/usr/bin/env node line, but liaex and liascript-export does not.

andre-dietrich commented 3 years ago

Yes, I thought this was some kind of bug, since I was testing the installation from the dev-branch. So I tried to merge with master and also moved the bug ... However, the shebang is now added automatically again. The information about the output web is also added back. Is the bug now gone on windows, if you run the latest version of the exporter?