Fix basename in bridge usage info

This commit is contained in:
hensm
2020-08-12 10:50:58 +01:00
committed by Matt Hensman
parent 68fe261a00
commit 1a7b46a229
2 changed files with 6 additions and 5 deletions

View File

@@ -159,7 +159,7 @@ async function build () {
`@echo off
setlocal
set NODE_PATH=${modulesDir}
node %~dp0src\\main.js %*
node %~dp0src\\main.js --__name %~n0%~x0 %*
endlocal
`);
break;
@@ -170,7 +170,7 @@ endlocal
launcherPath += ".sh";
fs.writeFileSync(launcherPath,
`#!/usr/bin/env sh
NODE_PATH="${modulesDir}" node $(dirname $0)/src/main.js "$@"
NODE_PATH="${modulesDir}" node $(dirname $0)/src/main.js --__name $(basename $0) "$@"
`);
break;
}