[Cygwin] Windows update script [Cygwin]

Discussion in 'Bukkit Tools' started by Magestickown, Nov 28, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    This script requires Cygwin, and to have it installed in C:\.
    Cygwin Download: http://cygwin.com/
    title Bukkit Server
    goto start
    set INPUT=
    set /P INPUT=What channel would you like to use? (R/D)
    if "%INPUT%"=="R" goto recommended
    if "%INPUT%"=="r" goto recommended
    if "%INPUT%"=="D" goto dev
    if "%INPUT%"=="d" goto dev
    del craft*.jar
    C:\cygwin\bin\wget.exe http://ci.bukkit.org/job/dev-CraftBukkit/Recommended/artifact/target/craftbukkit-0.0.1-SNAPSHOT.jar
    goto run
    del craft*.jar
    C:\cygwin\bin\wget.exe http://ci.bukkit.org/job/dev-CraftBukkit/lastSuccessfulBuild/artifact/target/craftbukkit-1.0.0-SNAPSHOT.jar
    goto run
    set INPUT=
    set /P INPUT=Would you like to update? (Y/N): %=%
    if "%INPUT%"=="y" goto update
    if "%INPUT%"=="Y" goto update
    goto run
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craft*.jar
    It will also work on the first run, so just update if it's a fresh install.

    You may need to change the launcher itself,


    Change jre6 to whatever version you have (jre7, jre5 etc..)
Thread Status:
Not open for further replies.

Share This Page