Skip to content
Permalink
Browse files

Update README

Using new travis-ci uploaded file
Put liscense and readme into the zip
Update /updates to use new url
  • Loading branch information...
123DMWM committed May 14, 2017
1 parent f2563d6 commit 9beb77e817f9773b3c6a06dcee2bc9ae38ad8977
Showing with 10 additions and 9 deletions.
  1. +3 −2 .travis.yml
  2. +5 −5 README.md
  3. +2 −2 fCraft/Commands/MaintenanceCommands.cs
@@ -2,10 +2,11 @@ language: csharp
solution: ProCraft.sln
script:
- loc_=/home/travis/build/123DMWM/ProCraft/bin/Release/
- zip_=${TRAVIS_BUILD_NUMBER}.zip
- ploc_=/home/travis/build/123DMWM/ProCraft/
- zip_=${TRAVIS_COMMIT}.zip
- user_=${FTP_USER}:${FTP_PASSWORD}
- xbuild /p:Configuration=Release ProCraft.sln
- zip -j ${zip_} ${loc_}*.exe ${loc_}*.dll ${loc_}*.txt
- zip -j ${zip_} ${loc_}*.exe ${loc_}*.dll ${ploc_}LICENSE.txt ${ploc_}README.txt
after_success:
- curl -T ${zip_} ftp://${FTP_IP}/Latest.zip --user ${user_}
- curl -T ${zip_} ftp://${FTP_IP}/${zip_} --user ${user_}
@@ -4,9 +4,9 @@ This is a custom server based on [fCraft](https://github.com/fragmer/fCraft) but

Suggestions and questions are welcome!

### [**`Download`**](http://123dmwm.tk/ProCraft/ProCraft.zip)
* To update server first safely shut it down, then replace old files with these updated ones

Download is always up to date with latest WORKING code.
### [**`Download Latest`**](http://123dmwm.tk/ProCraft/Builds/Latest.zip) [![Build Status](https://travis-ci.org/123DMWM/ProCraft.png)](https://travis-ci.org/123DMWM/ProCraft)
### or
### [**`Download By Commit ID`**](http://123dmwm.tk/ProCraft/Builds/)

![Latest](http://123dmwm.tk/ProCraft/Latest.php?noCache)
* To update server first safely shut it down, then replace old files with these updated ones
* Download is always updated ~4mins after each commit
@@ -1395,7 +1395,7 @@ static void NickHandler(Player player, CommandReader cmd)
current = File.GetLastWriteTime(Process.GetCurrentProcess().MainModule.FileName);
TimeSpan zipTime = TimeSpan.Zero, currentTime = (DateTime.Now - current);
try {
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://123DMWM.tk/ProCraft/ProCraft.zip?");
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://123DMWM.tk/ProCraft/Builds/Latest.zip?");
request.Method = "HEAD";

using (var resp = (HttpWebResponse)request.GetResponse()) {
@@ -1411,7 +1411,7 @@ static void NickHandler(Player player, CommandReader cmd)
player.Message("Server file last update (&7" + currentTime.ToMiniString() + " &Sago):");
player.Message(" &7" + current.ToLongDateString() + " &Sat &7" + current.ToLongTimeString());

player.Message("Download updated Zip here: &9http://123DMWM.tk/ProCraft/ProCraft.zip");
player.Message("Download updated Zip here: &9http://123DMWM.tk/ProCraft/Builds/Latest.zip");
}
#endregion
}

0 comments on commit 9beb77e

Please sign in to comment.
You can’t perform that action at this time.