You can if you use the GitHub API.
The previous static link still works for now though.
GitHub repository changes
Discussion in 'News and Announcements' started by Wulf, Nov 16, 2017.
-
Wulf Community Admin
-
How do I combine them in a single solution now?
By downloading every project I need and creating my own solution?
Cos I'd like to see how exact function works.... Cos sometimes there may be an error in oxide itself, so can I bundle them back together? -
Wulf Community Admin
The idea though is that if you need a change in a dependency, then it would just be a matter of cloning that and building it generally, then building the dependent project such as Oxide.Rust. -
-
Wulf Community Admin
-
-
What should I do now? -
Wulf Community Admin
-
-
Code:curl -s https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
-
For windows user's:
Code:@echo offSETLOCAL enabledelayedexpansionecho Download latest oxide for Rust server wget https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest --no-check-certificate for /f "tokens=2 delims=:" %%a in ('findstr /c:tag_name latest') do set link=%%a set link=%link:~1% set link=%link:~0,-1% set link=%link:"=% wget https://github.com/OxideMod/Oxide.Rust/releases/download/%link%/Oxide.Rust.zip --no-check-certificate -O Oxide.Rust.zip SETLOCAL Disabledelayedexpansion echo Done. pause
-
From an order of operations standpoint, should it be...
0) Backup the server folder
1) Pull down the new server from steam
2) pull down the latest oxide for rust
3) unzip and apply to backup
4) copy backup to game directory
?? -
Hey Wulf,
you got a timeframe when this feature will be avaiaable ? (a download link for the latest release)
https://github.com/OxideMod/Oxide.Rust/releases/download/latest/Oxide.Rust.zip -
Дайте ссылочку для рустида
Give please url for Rustide -
Wulf Community Admin
-
But it is advisable to update itself rustide, because not everyone will guess
sorry. i'm used google translate)
No. Did not manage to fix it. Waiting for fixation Rustide -
-
Wulf Community Admin
Code:$json = Invoke-RestMethod "https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest" $zip = "https://github.com/OxideMod/Oxide.Rust/releases/download/$json.tag_name/Oxide.Rust.zip"
Last edited: Nov 25, 2017 -
And I still haven't found anything related on google....
===EDIT===
Got it. Worked with
Code:$json = Invoke-RestMethod -Uri "https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest"
===EDIT2===
You've made another mistake - "https://github.com/OxideMod/Oxide.Rust/releases/download/$json.tag_name/Oxide.Rust.zip" wouldn't take the .tag_name, it would take the whole $json, and then add .tag_name as the string to the end of the line...
[DOUBLEPOST=1511607792][/DOUBLEPOST]Ok, so for everyone interesting - here is my solution for Win10 (no idea if that would work on eariler version of windows, due to I'm not very goot at PS scripts):
RustUpdate.bat:
Code:start /W .\steamcmd\steamcmd.exe +login anonymous +force_install_dir D:\servers\source\Rust\server +app_update 258550 validate +quit D:\servers\source\Rust\server\Oxide-Rust.zip cd rust/server del Oxide-Rust.zip powershell "& ""./download.ps1""" 7z x D:\servers\source\Rust\server\Oxide-Rust.zip -aoa
Code:$json = Invoke-RestMethod -Uri "https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest" $url = $json.tag_name $url = "https://github.com/OxideMod/Oxide.Rust/releases/download/$url/Oxide.Rust.zip" echo $url (New-Object System.Net.WebClient).DownloadFile($url, "Oxide-Rust.zip")
Last edited by a moderator: Nov 25, 2017 -
Wulf Community Admin