Codea Wiki
Advertisement

The Installer is a piece of code, which after running it clones an application into your project and runs it instead[1]. If you have a large project you want to upload to another iPad, hold on the project you wish to copy. An inbox will pop out. Of the three options given, select "Copy project code", and using Pastebin or GitHub share it. Below displayed, link, is the reference to the raw code file.

Code

Installer

local link = "YOUR_LINK_HERE"

local function s (d)
    if d:find("%-%-%# Main") then
        d = d .. "--#"
        for n, f in d:gmatch("(%w+)\n(.-)\n%-%-%# ") do
            saveProjectTab(n, f)
            print("Saved", n)
        end
    else
        saveProjectTab("Main", d)
    end
    load(data)()
    setup()
end

http.request(link, s, print)

The installer downloads the code.

Loader

function setup()
    local link = "YOUR_LINK_HERE"
    
    http.request(link, function(d) loadstring(d)() end, print)
end

The loader loads the code. It runs it, but does not save it [2].

Read More

References

Advertisement