Skip to content

Commit 9beb77e

Browse files
committed
Update README
Using new travis-ci uploaded file Put liscense and readme into the zip Update /updates to use new url
1 parent f2563d6 commit 9beb77e

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ language: csharp
22
solution: ProCraft.sln
33
script:
44
- loc_=/home/travis/build/123DMWM/ProCraft/bin/Release/
5-
- zip_=${TRAVIS_BUILD_NUMBER}.zip
5+
- ploc_=/home/travis/build/123DMWM/ProCraft/
6+
- zip_=${TRAVIS_COMMIT}.zip
67
- user_=${FTP_USER}:${FTP_PASSWORD}
78
- xbuild /p:Configuration=Release ProCraft.sln
8-
- zip -j ${zip_} ${loc_}*.exe ${loc_}*.dll ${loc_}*.txt
9+
- zip -j ${zip_} ${loc_}*.exe ${loc_}*.dll ${ploc_}LICENSE.txt ${ploc_}README.txt
910
after_success:
1011
- curl -T ${zip_} ftp://${FTP_IP}/Latest.zip --user ${user_}
1112
- curl -T ${zip_} ftp://${FTP_IP}/${zip_} --user ${user_}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This is a custom server based on [fCraft](https://github.com/fragmer/fCraft) but
44

55
Suggestions and questions are welcome!
66

7-
### [**`Download`**](http://123dmwm.tk/ProCraft/ProCraft.zip)
8-
* To update server first safely shut it down, then replace old files with these updated ones
9-
10-
Download is always up to date with latest WORKING code.
7+
### [**`Download Latest`**](http://123dmwm.tk/ProCraft/Builds/Latest.zip) [![Build Status](https://travis-ci.org/123DMWM/ProCraft.png)](https://travis-ci.org/123DMWM/ProCraft)
8+
### or
9+
### [**`Download By Commit ID`**](http://123dmwm.tk/ProCraft/Builds/)
1110

12-
![Latest](http://123dmwm.tk/ProCraft/Latest.php?noCache)
11+
* To update server first safely shut it down, then replace old files with these updated ones
12+
* Download is always updated ~4mins after each commit

fCraft/Commands/MaintenanceCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ static void UpdatesHandler(Player player, CommandReader cmd) {
13951395
current = File.GetLastWriteTime(Process.GetCurrentProcess().MainModule.FileName);
13961396
TimeSpan zipTime = TimeSpan.Zero, currentTime = (DateTime.Now - current);
13971397
try {
1398-
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://123DMWM.tk/ProCraft/ProCraft.zip?");
1398+
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://123DMWM.tk/ProCraft/Builds/Latest.zip?");
13991399
request.Method = "HEAD";
14001400

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

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

0 commit comments

Comments
 (0)