Skip to content

Commit

Permalink
Merge pull request #10 from defold/update-to-latest-sdk-20240521
Browse files Browse the repository at this point in the history
Update to latest sdk 20240521
  • Loading branch information
Jhonnyg committed May 22, 2024
2 parents 1003a0e + c0c4191 commit 8e2c51c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/bob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
env:
VERSION_FILENAME: 'info.json'
BUILD_SERVER: 'https://build-stage.defold.com'
CHANNEL: 'beta'
CHANNEL: 'alpha'

jobs:
build_with_bob:
Expand All @@ -17,9 +17,11 @@ jobs:
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '16.0.1'
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'

- name: Get Defold version
run: |
Expand Down Expand Up @@ -60,9 +62,11 @@ jobs:
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '16.0.1'
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'

- name: Get Defold version
run: |
Expand All @@ -87,15 +91,17 @@ jobs:
build_with_bob_macos:
strategy:
matrix:
platform: [arm64-darwin, x86_64-darwin]
platform: [arm64-macos, x86_64-macos]
runs-on: macOS-latest

name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '16.0.1'
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'

- name: Get Defold version
run: |
Expand Down
Binary file modified defold-simpledata/plugins/share/pluginSimpleDataExt.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion defold-simpledata/src/comp_simple_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace dmSimpleData
static void* CompSimpleDataGetComponent(const dmGameObject::ComponentGetParams& params)
{
SimpleDataWorld* world = (SimpleDataWorld*)params.m_World;
uint32_t index = (uint32_t)*params.m_UserData;
uint32_t index = (uint32_t) params.m_UserData;
return GetComponentFromIndex(world, index);
}

Expand Down
2 changes: 1 addition & 1 deletion defold-simpledata/src/extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const char* SIMPLEDATA_EXT = "simpledatac";
static int SimpleDataComp_GetArrayF32(lua_State* L)
{
dmSimpleData::SimpleDataComponent* component = 0;
dmGameObject::GetComponentFromLua(L, 1, SIMPLEDATA_EXT, 0, (void**)&component, 0);
dmScript::GetComponentFromLua(L, 1, SIMPLEDATA_EXT, 0, (void**)&component, 0);
assert(component);

float* data = 0;
Expand Down
8 changes: 6 additions & 2 deletions utils/build_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e
PROJECT=defold-simpledata

if [ "" == "${BOB}" ]; then
BOB=~/work/defold/tmp/dynamo_home/share/java/bob.jar
BOB=${DYNAMO_HOME}/share/java/bob.jar
fi

echo "Using BOB=${BOB}"
Expand Down Expand Up @@ -81,7 +81,7 @@ function build_plugin() {

PLATFORMS=$1
if [ "" == "${PLATFORM}" ]; then
PLATFORMS="x86_64-macos x86_64-linux x86_64-win32"
PLATFORMS="arm64-macos x86_64-macos x86_64-linux x86_64-win32"
fi

if [[ $# -gt 0 ]] ; then
Expand All @@ -98,6 +98,10 @@ for platform in $PLATFORMS; do
platform_ne="x86_64-osx"
fi

if [ "$platform" == "arm64-macos" ]; then
platform_ne="arm64-osx"
fi

build_plugin $platform $platform_ne
done

Expand Down

0 comments on commit 8e2c51c

Please sign in to comment.