mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-15 12:25:31 +08:00
7 lines
268 B
Elixir
7 lines
268 B
Elixir
set RELEASE_MODE=interactive
|
|
|
|
set cookie_path="!RELEASE_ROOT!\releases\COOKIE"
|
|
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%
|
|
)
|