mirror of
https://gitlab.com/2009scape/09launcher.git
synced 2025-12-09 16:45:54 -07:00
Windows is an incromprehensible mess
This commit is contained in:
parent
37770aa4a7
commit
37cc71e42d
2 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,6 @@ build:
|
|||
artifacts:
|
||||
paths:
|
||||
- build/libs/*.jar
|
||||
- build/libs/*.zip
|
||||
expire_in: 1 week
|
||||
only:
|
||||
- master
|
||||
|
|
|
|||
|
|
@ -16,8 +16,9 @@ object Updater {
|
|||
var launcherStatus = UpdateStatus.CHECKING
|
||||
|
||||
fun checkUpdate(){
|
||||
val fileUri = File(Settings.SAVE_DIR + File.separator + Settings.SAVE_NAME).toURI()
|
||||
status = UpdateStatus.CHECKING
|
||||
localMD5 = Checksum.getLocalChecksum(URI.create("file://" + Settings.SAVE_DIR + File.separator + Settings.SAVE_NAME))
|
||||
localMD5 = Checksum.getLocalChecksum(fileUri)
|
||||
remoteMD5 = Checksum.getRemoteChecksum(Settings.DOWNLOAD_URL) ?: "-1"
|
||||
println("Local: $localMD5 || Remote: $remoteMD5")
|
||||
status = UpdateStatus.COMPLETE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue