2023-02-02 17:52:16 +08:00
|
|
|
if exist "!USERPROFILE!\.livebookdesktop.bat" (
|
|
|
|
call "!USERPROFILE!\.livebookdesktop.bat"
|
|
|
|
)
|
|
|
|
|
2022-07-07 03:05:53 +08:00
|
|
|
set RELEASE_NODE=livebook_app
|
2022-02-15 19:44:59 +08:00
|
|
|
set RELEASE_MODE=interactive
|
2022-07-18 17:51:17 +08:00
|
|
|
set MIX_ARCHIVES=!RELEASE_ROOT!\vendor\archives
|
|
|
|
set MIX_REBAR3=!RELEASE_ROOT!\vendor\rebar3
|
2022-04-14 21:52:28 +08:00
|
|
|
set LIVEBOOK_SHUTDOWN_ENABLED=true
|
2023-05-23 22:22:17 +08:00
|
|
|
if not defined LIVEBOOK_PORT (set LIVEBOOK_PORT=0)
|
2023-01-17 04:09:47 +08:00
|
|
|
set PATH=!RELEASE_ROOT!\vendor\otp\erts-<%= @release.erts_version%>\bin;!RELEASE_ROOT!\vendor\otp\bin;!RELEASE_ROOT!\vendor\elixir\bin;!PATH!
|
2022-02-15 19:44:59 +08:00
|
|
|
|
2023-01-17 04:09:47 +08:00
|
|
|
set cookie_path=!RELEASE_ROOT!\releases\COOKIE
|
2022-02-15 19:44:59 +08:00
|
|
|
if not exist %cookie_path% (
|
|
|
|
for /f "skip=1" %%X in ('wmic os get localdatetime') do if not defined TIMESTAMP set TIMESTAMP=%%X
|
|
|
|
echo cookie-!TIMESTAMP:~0,11!-!RANDOM! > %cookie_path%
|
|
|
|
)
|
2022-07-28 21:40:55 +08:00
|
|
|
|
|
|
|
cd !HOMEDRIVE!!HOMEPATH!
|