Skip to content

Commit b24b3a0

Browse files
authored
Merge pull request #44 from yuchanns/fix/safari
fix(platform/web): compatible for old version of safari browser
2 parents e08891e + 54ef50c commit b24b3a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
libxrandr-dev libxi-dev libxxf86vm-dev libxcursor-dev \
4747
libasound2-dev libfontconfig1-dev
4848
- uses: mymindstorm/setup-emsdk@v14
49+
with:
50+
version: 4.0.17
51+
actions-cache-folder: 'emsdk-cache'
4952
- name: Build Emscripten
5053
shell: bash
5154
working-directory: soluna
@@ -61,6 +64,7 @@ jobs:
6164
SOLUNA_PATH=$(find soluna/bin -name $SOLUNA_BINARY | head -n 1)
6265
SOLUNA_JS="soluna.js"
6366
SOLUNA_JS_PATH=$(find soluna/bin -name $SOLUNA_JS | head -n 1)
67+
sed -i 's/setBindGroup(groupIndex,group,(growMemViews(),HEAPU32),dynamicOffsetsPtr>>2,dynamicOffsetCount)/setBindGroup(groupIndex,group,(growMemViews(),HEAPU32).subarray(dynamicOffsetsPtr>>2,(dynamicOffsetsPtr>>2)+dynamicOffsetCount))/g' "$SOLUNA_JS_PATH"
6468
cp "$SOLUNA_PATH" ./build/
6569
cp "$SOLUNA_JS_PATH" ./build/
6670
zip -r ./build/main.zip asset core gameplay localization service visual main.game main.lua

0 commit comments

Comments
 (0)