Read object script paths from params again taking relative paths into account

also made build artifact names a bit more consistent
This commit is contained in:
Kae 2024-06-22 14:02:02 +10:00
parent 83686a816c
commit 4c90472977
3 changed files with 5 additions and 4 deletions

View File

@ -51,7 +51,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: OpenStarbound-Dev-macOS-Intel
name: OpenStarbound-macOS-Intel
path: dist/*
build-arm:
@ -93,5 +93,5 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: OpenStarbound-Dev-macOS-Silicon
name: OpenStarbound-macOS-Silicon
path: dist/*

View File

@ -85,5 +85,5 @@ jobs:
- name: Upload Installer
uses: actions/upload-artifact@v4
with:
name: Installer
name: OpenStarbound-Windows-Installer
path: installer/*

View File

@ -188,7 +188,8 @@ void Object::init(World* world, EntityId entityId, EntityMode mode) {
setKeepAlive(configValue("keepAlive", false).toBool());
m_scriptComponent.setScripts(m_config->scripts);
auto scripts = jsonToStringList(configValue("scripts", JsonArray()).toArray());
m_scriptComponent.setScripts(scripts.transformed(bind(AssetPath::relativeTo, m_config->path, _1)));
m_scriptComponent.setUpdateDelta(configValue("scriptDelta", 5).toInt());
m_scriptComponent.addCallbacks("object", makeObjectCallbacks());