#187 added installer version to manifest

This commit is contained in:
Mikayla Fischler
2023-03-04 14:13:47 -05:00
parent 8c236eca85
commit 2e9f52dc89
3 changed files with 16 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
local function println(message) print(tostring(message)) end
local function print(message) term.write(tostring(message)) end
local VERSION = "v0.9h"
local CCMSI_VERSION = "v0.9i"
local install_dir = "/.install-cache"
local repo_path = "http://raw.githubusercontent.com/MikaylaFischler/cc-mek-scada/"
@@ -57,7 +57,7 @@ end
-- get and validate command line options
--
println("-- CC Mekanism SCADA Installer " .. VERSION .. " --")
println("-- CC Mekanism SCADA Installer " .. CCMSI_VERSION .. " --")
if #opts == 0 or opts[1] == "help" then
println("usage: ccmsi <mode> <app> <tag/branch>")
@@ -258,6 +258,12 @@ elseif mode == "install" or mode == "update" then
end
end
if manifest.versions.installer ~= local_manifest.versions.installer then
term.setTextColor(colors.orange)
println("a newer version of the installer is available, consider downloading it")
term.setTextColor(colors.white)
end
local remote_app_version = manifest.versions[app]
local remote_comms_version = manifest.versions.comms
local remote_boot_version = manifest.versions.bootloader