mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-20 19:21:00 -06:00
22 lines
625 B
Lua
22 lines
625 B
Lua
local BackendHash = "7ca0a34e9c4c065b7bfad0623db0e322bf3e0af9"
|
|
|
|
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)
|