mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
Fixes #7408. For kmc*.cmd, enables source maps. If you are running kmc from node on your own system, you may need to enable source maps in other ways. Note that error reports should be going through to Sentry, and source maps should already be used for those.
20 lines
746 B
Batchfile
20 lines
746 B
Batchfile
@echo off
|
|
setlocal
|
|
rem This script is based on /developer/src/node/inst/kmlmc.cmd. It is stored here
|
|
rem in order to allow TIKE to call out to the compiler while debugging.
|
|
if exist "%~dp0..\inst\node\dist\node.exe" (
|
|
rem If running in developer/src/tike/:
|
|
set nodeexe="%~dp0..\inst\node\dist\node.exe"
|
|
set nodecli="%~dp0..\kmc\build\src\kmlmc.js"
|
|
) else if exist "%~dp0..\src\inst\node\dist\node.exe" (
|
|
rem If running in developer/bin/:
|
|
set nodeexe="%~dp0..\src\inst\node\dist\node.exe"
|
|
set nodecli="%~dp0..\src\kmc\build\src\kmlmc.js"
|
|
) else (
|
|
rem Cannot find node or kmlmc.js relative to execution path
|
|
echo Error: node.exe or kmlmc.js not found.
|
|
exit /b 1
|
|
)
|
|
|
|
%nodeexe% --enable-source-maps %nodecli% %*
|
|
exit /b %errorlevel%
|