{"action":"created","issue":{"url":"https://api.github.com/repos/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/12","repository_url":"https://api.github.com/repos/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit","labels_url":"https://api.github.com/repos/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/12/comments","events_url":"https://api.github.com/repos/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/12/events","html_url":"https://github.com/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/12","id":153625117,"number":12,"title":"Request: Auto update Minecraft","user":{"login":"avluis","id":875593,"avatar_url":"https://avatars.githubusercontent.com/u/875593?v=3","gravatar_id":"","url":"https://api.github.com/users/avluis","html_url":"https://github.com/avluis","followers_url":"https://api.github.com/users/avluis/followers","following_url":"https://api.github.com/users/avluis/following{/other_user}","gists_url":"https://api.github.com/users/avluis/gists{/gist_id}","starred_url":"https://api.github.com/users/avluis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avluis/subscriptions","organizations_url":"https://api.github.com/users/avluis/orgs","repos_url":"https://api.github.com/users/avluis/repos","events_url":"https://api.github.com/users/avluis/events{/privacy}","received_events_url":"https://api.github.com/users/avluis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-07T23:53:37Z","updated_at":"2016-05-17T19:12:16Z","closed_at":null,"body":"I don't currently have the time (busy with upgrading an Android app) for this, but I thought I would share this process:\r\n\r\nIf you query the following [JSON file](https://launchermeta.mojang.com/mc/game/version_manifest.json), you'll get the file that the Minecraft launcher makes use of for updating.\r\nYou'll need to do a bit of JSON parsing in order to grab the key `release` which is followed by the current release value - currently: `1.9.2`.\r\n\r\nOnce you have that on your hands, you can then construct the following URL:\r\n`\"https://s3.amazonaws.com/Minecraft.Download/versions/\" + [release] + \"/minecraft_server.\" + [release] + \".jar\"`\r\n\r\nSo the current release: https://s3.amazonaws.com/Minecraft.Download/versions/1.9.2/minecraft_server.1.9.2.jar\r\n\r\n**_Notes:_**\r\nTo parse the json, you can use [jsawk](https://github.com/micha/jsawk), but I believe that requires a JavaScript interpreter - I haven't looked into the Synology dev tools, but maybe they provide something along these lines, if not:\r\n`awk` is included in Linux installs and in DSM, I'll have to take some time to build the right arguments for you, but I'll update this when I do."},"comment":{"url":"https://api.github.com/repos/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/comments/219822808","html_url":"https://github.com/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/12#issuecomment-219822808","issue_url":"https://api.github.com/repos/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/12","id":219822808,"user":{"login":"colin1497","id":11151259,"avatar_url":"https://avatars.githubusercontent.com/u/11151259?v=3","gravatar_id":"","url":"https://api.github.com/users/colin1497","html_url":"https://github.com/colin1497","followers_url":"https://api.github.com/users/colin1497/followers","following_url":"https://api.github.com/users/colin1497/following{/other_user}","gists_url":"https://api.github.com/users/colin1497/gists{/gist_id}","starred_url":"https://api.github.com/users/colin1497/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colin1497/subscriptions","organizations_url":"https://api.github.com/users/colin1497/orgs","repos_url":"https://api.github.com/users/colin1497/repos","events_url":"https://api.github.com/users/colin1497/events{/privacy}","received_events_url":"https://api.github.com/users/colin1497/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T19:12:16Z","updated_at":"2016-05-17T19:12:16Z","body":"Interesting.  Of course, a new SPK would still need to be published each time to force an update, but it would save a small amount of editing and potential errors."}}