mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-28 14:59:31 -05:00
b6d3704439
And fix an outdated comment
22 lines
625 B
Lua
22 lines
625 B
Lua
local BackendHash = "0f2543a69aa6c1ecd15892c43c5196d4fdc55b8f"
|
|
|
|
local backend = asset.resource({
|
|
Identifier = "WebGuiBackend",
|
|
Name = "Web Gui Backend",
|
|
Type = "UrlSynchronization",
|
|
Url = "http://data.openspaceproject.com/files/webgui/backend/" .. BackendHash .. "/backend.zip"
|
|
})
|
|
|
|
|
|
asset.onInitialize(function()
|
|
-- Unzip the server bundle
|
|
local dest = backend .. "backend"
|
|
if not openspace.directoryExists(dest) then
|
|
openspace.unzipFile(backend .. "backend.zip", dest, true)
|
|
end
|
|
|
|
openspace.setPropertyValueSingle(
|
|
"Modules.WebGui.ServerProcessEntryPoint", backend .. "backend/backend.js"
|
|
)
|
|
end)
|