Skip to content

Commit

Permalink
RavenDB-2778 When running start.cmd for the first time open ravendb.n…
Browse files Browse the repository at this point in the history
…et/first-run page in a web browser
  • Loading branch information
Arkadiusz Palinski committed Oct 8, 2014
1 parent 50c0f39 commit e2d9d08
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 23 additions & 1 deletion Scripts/Start.cmd
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
start %~dp0\Server\Raven.Server.exe --debug --browser
@echo off

Setlocal ENABLEDELAYEDEXPANSION

IF NOT EXIST version.txt (
GOTO FIRST-RUN-START
) ELSE (
set /p Build=<version.txt

IF !Build! NEQ 3.0.{build} (GOTO FIRST-RUN-START) ELSE (GOTO START-RAVENDB)
)

:START-RAVENDB
start %~dp0\Server\Raven.Server.exe --debug --browser
GOTO END

:FIRST-RUN-START
start http://ravendb.net/first-run?type=start^&ver=3.0.{build}
echo.|set /p="3.0.{build}">version.txt
GOTO START-RAVENDB
GOTO END

:END
4 changes: 4 additions & 0 deletions default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@ task CopyRootFiles -depends CreateDocs {
cp $base_dir\Help\Documentation.chm $build_dir\Output\Documentation.chm -ErrorAction SilentlyContinue
cp $base_dir\acknowledgments.txt $build_dir\Output\acknowledgments.txt
cp $base_dir\CommonAssemblyInfo.cs $build_dir\Output\CommonAssemblyInfo.cs

(Get-Content "$build_dir\Output\Start.cmd") |
Foreach-Object { $_ -replace "{build}", "$($env:buildlabel)" } |
Set-Content "$build_dir\Output\Start.cmd" -Encoding Default
}

task ZipOutput {
Expand Down

0 comments on commit e2d9d08

Please sign in to comment.