Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Auto Updater

MasterOf13FPS

Administrator
Staff member
Administrator
MasterOf13FPS
Joined
Jul 11, 2020
Messages
0
Reaction score
25
Points
0
Hallo,
da ich in meinen Client gerne einen AutoUpdater machen würde, aber nicht weiß, wie ich das angehen soll, frage ich einfach hier, ob mir jemand einen AutoUpdater senden würde. Er soll simpel abfragen ob die aktuellste version installiert ist, wenn nicht aktualisieren.

danke
 
This is a little late but you basically make a pastebin account and make a new paste that contains the newest version of the client.
Then in your init() or whatever method you do

if(WebUtils.get("pastebin.com/raw/8754574").contains(this.getBuild()) {
Logger.log("Your on latest version");
} else {
FileUtils.downloadURLToFile(<your link to jar>);
}

// You will need apache commons 2.6 for fileutils
 
This is a little late but you basically make a pastebin account and make a new paste that contains the newest version of the client.
Then in your init() or whatever method you do

if(WebUtils.get("pastebin.com/raw/8754574").contains(this.getBuild()) {
Logger.log("Your on latest version");
} else {
FileUtils.downloadURLToFile(<your link to jar>);
}

// You will need apache commons 2.6 for fileutils

ty but where to get WebUtils
 
This is a little late but you basically make a pastebin account and make a new paste that contains the newest version of the client.
Then in your init() or whatever method you do

if(WebUtils.get("pastebin.com/raw/8754574").contains(this.getBuild()) {
Logger.log("Your on latest version");
} else {
FileUtils.downloadURLToFile(<your link to jar>);
}

// You will need apache commons 2.6 for fileutils
Imported apache commons 2.6, but there is not method called downloadURLtoFile
 
Imported apache commons 2.6, but there is not method called downloadURLtoFile

Im not 100% on what its called but type in file or URL or URI or download and its in FileUtils obv
 
Add me on Discord Eiweiis#6244 i have a AutoUpdater i can explain how it works
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top