mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-11 15:34:37 +08:00
27 lines
650 B
Elixir
27 lines
650 B
Elixir
if "!RELEASE_COMMAND!"=="rpc" goto remote
|
|
if "!RELEASE_COMMAND!"=="remote" goto remote
|
|
goto server
|
|
|
|
:server
|
|
if exist "!RELEASE_ROOT!\user\env.bat" (
|
|
call "!RELEASE_ROOT!\user\env.bat"
|
|
)
|
|
|
|
set RELEASE_MODE=interactive
|
|
set RELEASE_DISTRIBUTION=none
|
|
|
|
if not defined RELEASE_COOKIE (
|
|
for /f "skip=1" %%X in ('wmic os get localdatetime') do if not defined TIMESTAMP set TIMESTAMP=%%X
|
|
set RELEASE_COOKIE=cookie-!TIMESTAMP:~0,11!-!RANDOM!
|
|
)
|
|
|
|
cd !HOMEDRIVE!!HOMEPATH!
|
|
goto end
|
|
|
|
:remote
|
|
set RELEASE_DISTRIBUTION=name
|
|
if defined LIVEBOOK_NODE set RELEASE_NODE=!LIVEBOOK_NODE!
|
|
if defined LIVEBOOK_COOKIE set RELEASE_COOKIE=!LIVEBOOK_COOKIE!
|
|
goto end
|
|
|
|
:end
|