mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-09 00:59:59 +00:00
Use script-relative paths for launchers
This commit is contained in:
@@ -159,7 +159,7 @@ async function build () {
|
||||
`@echo off
|
||||
setlocal
|
||||
set NODE_PATH=${modulesDir}
|
||||
node .\\src\\main.js %*
|
||||
node %~dp0src\\main.js %*
|
||||
endlocal
|
||||
`);
|
||||
break;
|
||||
@@ -170,7 +170,7 @@ endlocal
|
||||
launcherPath += ".sh";
|
||||
fs.writeFileSync(launcherPath,
|
||||
`#!/usr/bin/env sh
|
||||
NODE_PATH="${modulesDir}" node ./src/main.js "$@"
|
||||
NODE_PATH="${modulesDir}" node $(dirname $0)/src/main.js "$@"
|
||||
`);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user