-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheck_latest_version.lua
45 lines (28 loc) · 1.11 KB
/
check_latest_version.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require "check_latest_version_gui"
require "renoise.http"
--------------------------------------------------------------------------------
-- variables
--------------------------------------------------------------------------------
version_number = nil
release_date = nil
download_url = nil
--------------------------------------------------------------------------------
-- functions
--------------------------------------------------------------------------------
local function success(data, text_status, xml_http_request)
for k, v in ipairs(data['ChildNodes']) do
local node_name = v['Name']
if node_name ~= nil then
if node_name == 'latestversion' then version_number = v['Value']
elseif node_name == 'latestversionurl' then download_url = v['Value']
elseif node_name == 'latestversiondate' then release_date = v['Value']
end
end
end
show_latestversion_dialog()
end
function check_latest_version()
local data = {}
HTTP:get(XRNS2XMOD_VERSION_INFO_URL, data, success, 'XML')
--success('', '', '')
end