Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
1a0820f
reflection probe visibility no longer asynchronous with camera (#16115)
xubing0906 Aug 29, 2023
6aa2456
fixed serialized post process parameters (#16116)
2youyou2 Aug 29, 2023
aa3b35e
remove default setting for post process pipeline (#16120)
2youyou2 Aug 29, 2023
1a9b232
fix audio can not reset to position 0 after call stop operation on we…
bofeng-song Aug 29, 2023
8e8951e
set spine module as separate engine module (#16133)
PPpro Aug 30, 2023
d10253e
add missing default viewType (#16121)
star-e Aug 30, 2023
63d4ed6
fix addRangedDirLight interface error (#16135)
troublemaker52025 Aug 30, 2023
93ff89c
fix asmjs subpackage problem on minigame platform, fix gui (#16123)
yiwenxue Aug 30, 2023
44ca8ea
support taobaoMinigamePlugin in render-config.json (#16138)
PPpro Aug 30, 2023
49ce323
Update to use sdl static library (#16101)
qiuguohua Aug 30, 2023
77d3f7c
fix alpha blend error with custom pipeline and add bloom masks (#16125)
troublemaker52025 Aug 30, 2023
442f740
macos 10.x -> 11+ api change (#16153)
hana-alice Aug 31, 2023
2b27581
post-final pass keep alpha channel (#16149)
troublemaker52025 Aug 31, 2023
4d21393
fix update widget occur error (#16139)
arsen2010 Aug 31, 2023
2b18d25
Add openharmony CI support (#16151)
dumganhar Aug 31, 2023
e2e4ceb
change shader strip (#16167)
star-e Sep 1, 2023
ba70fe1
fix bind cont EventData * bind, modify the address as a reference. (#…
Canvasfull Sep 1, 2023
70b7875
don`t destroy sub com when mask destroy (#16162)
LinYunMo Sep 1, 2023
692d3dc
fix debug view with custom pipeline and revert LDR fog to HDR (#16163)
jk20012001 Sep 1, 2023
eaeab8b
delete rangeddir / point light custom template form components.js (#1…
troublemaker52025 Sep 1, 2023
48a5791
fix format validation. (#16177)
bluesky013 Sep 4, 2023
cdca5b0
Fix orientation does not work normaly on huawei-agc platform (#16180)
bofeng-song Sep 4, 2023
dc933d3
add experimental box2d wasm i18n (#16134)
lealzhan Sep 5, 2023
fbbda83
update gitignore (#16187)
PPpro Sep 5, 2023
a45535e
fix getHDRInputName undefine with cyberpunk (#16192)
troublemaker52025 Sep 6, 2023
51dc67e
Fix an issue where node_modules was not removed when clearing the cac…
VisualSJ Sep 6, 2023
d198a19
[fix] box2d wasm rigid-body destroy() should destroy related shapes a…
lealzhan Sep 6, 2023
fc986c9
fix webgpu crash with normalize zero vector (#16195)
jk20012001 Sep 6, 2023
50c2d70
update native/external-config: [fix] cct scaling causes trigger event…
lealzhan Sep 6, 2023
c6d1782
update world bound when update models (#16189)
moshuying Sep 6, 2023
23a44ed
Modify camera component ortho height's min value to 0 (#16181)
shrinktofit Sep 6, 2023
0b65ab3
add CULL_MESHOPT constant (#16194)
PPpro Sep 7, 2023
2cb1652
Add workflow_dispatch for oh sdk & vulkan sdk (#16204)
dumganhar Sep 7, 2023
7f7de0a
Add dirty flag to edit box (#16209)
LinYunMo Sep 7, 2023
4dbd525
fix sphere 2nd uv (#16210)
jk20012001 Sep 7, 2023
b57d5ab
Resolved error when getting length for Record type (#16213)
troublemaker52025 Sep 8, 2023
3822786
Fix SDL-related issues (#16212)
qiuguohua Sep 8, 2023
b46cba6
Fix/meshopt (#16200)
yiwenxue Sep 8, 2023
4c7d2ce
Fixed the problem of new pipeline don't clear reporting an error (#16…
GengineJS Sep 8, 2023
3c0aaf5
fix debugView UBO data for native custom pipeline (#16218)
troublemaker52025 Sep 8, 2023
794b8b3
Revert "Resolved error when getting length for Record type (#16213)" …
troublemaker52025 Sep 8, 2023
290746a
Fixed the problem of incorrect display position of the emulator. (#16…
qiuguohua Sep 11, 2023
608660a
Fixed multi-threading causing view read failure (#16253)
qiuguohua Sep 15, 2023
dae0f55
fix albedoScaleAndCutOff type mismatch (#16282)
jk20012001 Sep 19, 2023
0a5befb
physics removes useless cone twist joint (#16285)
yiwenxue Sep 20, 2023
2039c33
correct renderpass reorder logic (#16294)
hana-alice Sep 21, 2023
8c3e160
Fix a compilation issue and a crash issue if using Xcode 15 (#16306)
dumganhar Sep 21, 2023
e261485
[Fixed] sampler synchronization issues with compute view texture (#16…
GengineJS Sep 22, 2023
d75fb4e
OpenHarmony platform modification configuration update rules (#16320)
qiuguohua Sep 25, 2023
312a4b2
better tips for float output macro (#16335)
jk20012001 Sep 26, 2023
461c4fe
fix : terrain paint error after save file in editor (#16343)
dogeFu Oct 7, 2023
3d65154
Fix ndk version in ci script (#16356)
dumganhar Oct 7, 2023
7a8bde3
fix: load script packages before loading builtin assets (#16339)
PPpro Oct 8, 2023
956d713
[Fixed] web pipeline framebuffer resize issue. (#16321)
GengineJS Oct 8, 2023
602fa60
[ci skip][AUTO]: Automated code generating update: 5e7e390c52d505377d…
cocos-robot Oct 8, 2023
c4fcece
Revert "Fix sprite size mode change by preload (#15908)" (#16388)
SantyWang Oct 9, 2023
ba021e6
1
2youyou2 Mar 14, 2024
23d7256
1
2youyou2 Mar 14, 2024
9e182fa
add setFrameBuffer
2youyou2 Mar 18, 2024
984edaa
1
2youyou2 Mar 19, 2024
026b5a9
refine forward stage
2youyou2 Mar 20, 2024
8f84a27
refine forward stage
2youyou2 Mar 20, 2024
530fb20
add blit textures
2youyou2 Mar 20, 2024
a1d07f0
refine render pass
2youyou2 Mar 21, 2024
68361c8
refine code
2youyou2 Mar 21, 2024
654f1dc
fixed clear flags
2youyou2 Apr 1, 2024
426b924
fixed build and reopen multi thread
2youyou2 Apr 22, 2024
539323a
fixed light instancing
2youyou2 May 8, 2024
197e59f
fixed instanced lighting
2youyou2 May 9, 2024
0bb7011
refine RenderWindow::setFrameBuffer
2youyou2 May 15, 2024
50e143f
add device.blitFramebuffer
2youyou2 May 27, 2024
278724b
fixed renderPass not matched
2youyou2 Jun 12, 2024
e315ae0
manually compile shader
2youyou2 Jun 25, 2024
db4211b
refine compile shader
2youyou2 Jun 26, 2024
c434044
precompile shader
2youyou2 Jun 26, 2024
2ce9d62
Merge branch 'v3.8.1-builtin-pipeline' into v3.8.1-builtin-pipeline-c…
2youyou2 Jun 26, 2024
105681b
revert save path
2youyou2 Jun 26, 2024
a4a7054
refine pipeline cache
2youyou2 Jun 27, 2024
125b1b7
refine path replace
2youyou2 Jun 27, 2024
91e47e0
refine compile shader
2youyou2 Jun 28, 2024
6b293d4
refine compile shader
2youyou2 Jun 28, 2024
a5279fe
refine sort name
2youyou2 Jun 29, 2024
10925e3
add compiledShaderNames
2youyou2 Jul 1, 2024
5c0dd6a
fixed program lib
2youyou2 Jul 1, 2024
770ad28
添加 blitOpaqueSceneColor
2youyou2 Aug 6, 2025
f0439f9
support anisotropy
2youyou2 Aug 18, 2025
a18b928
force lazilyAllocated
2youyou2 Oct 24, 2025
ec05e7d
添加 ProgramLib::clearCache 接口
2youyou2 Nov 12, 2025
decc08b
try to reduce shader cache
2youyou2 Nov 28, 2025
e0b94da
reduce shader cache
2youyou2 Nov 28, 2025
085ff7d
init time info
2youyou2 Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/generate-oh-sdk-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: <Native> Generate OH SDK Cache

on:
workflow_dispatch:
inputs:
oh_sdk_version:
description: 'Openharmony SDK version'
type: string
default: '9'
required: true

jobs:
generate_oh_sdk_cache:
name: "Generate OH SDK cache"
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v3
id: setup-jdk
with:
distribution: 'zulu'
java-version: '17'

- name: Get oh sdk cache directory path
id: oh-sdk-cache-dir-path
run: |
echo "cache dir: "
echo "dir=$HOME/openharmony" >> $GITHUB_OUTPUT

- name: Output cache dir
run: |
echo "Output cache dir: ${{ steps.oh-sdk-cache-dir-path.outputs.dir }}"

- name: Cache OH SDK
id: cache-oh-sdk
uses: actions/cache@v3
env:
cache-name: cache-oh-sdk-${{ github.event.inputs.oh_sdk_version }}
with:
path: ${{ steps.oh-sdk-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: Add package.json
run: |
echo "{}" > package.json
echo "{\"name\": \"tests\",\"lockfileVersion\": 3,\"requires\": true,\"packages\": {}}" > package-lock.json
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'

- if: ${{ steps.cache-oh-sdk.outputs.cache-hit != 'true' }}
name: No Cache found, install oh sdk
continue-on-error: false
run: |
if [ ! -d "$HOME/openharmony" ]; then
mkdir -p $HOME/openharmony
echo "Download commandline-tools-linux.zip ..."
curl -o commandline-tools-linux.zip "https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/b1/v3/E6zhv5UFQ2-inIwNJhTN6Q/commandline-tools-linux-2.0.0.2.zip?HW-CC-KV=V1&HW-CC-Date=20230621T074401Z&HW-CC-Expire=315360000&HW-CC-Sign=621224257B02079B1E76C0A56FDF21483400B1E3556213F88DC79BC9BE7D595D"
echo "Unzip commandline-tools-linux.zip ..."
unzip commandline-tools-linux.zip -d $HOME/openharmony > /dev/null
cd $HOME/openharmony
ls -l
cd command-line-tools
echo "=============== PATCHING sdkmanager/bin/sdkmgr file ==============="
sed -i "s@-Dfile.encoding=UTF-8@-Dfile.encoding=UTF-8 -Duser.country=CN@g" ./sdkmanager/bin/sdkmgr
cd bin
./sdkmgr list
echo "=============== INSTALL HOS toolchains:${{ github.event.inputs.oh_sdk_version }} ==============="
./sdkmgr install toolchains:${{ github.event.inputs.oh_sdk_version }} --accept-license > /dev/null
echo "=============== INSTALL OH SDK ets:${{ github.event.inputs.oh_sdk_version }} ==============="
./sdkmgr install OpenHarmony/ets:${{ github.event.inputs.oh_sdk_version }} --accept-license > /dev/null
echo "=============== INSTALL OH SDK js:${{ github.event.inputs.oh_sdk_version }} ==============="
./sdkmgr install OpenHarmony/js:${{ github.event.inputs.oh_sdk_version }} --accept-license > /dev/null
echo "=============== INSTALL OH SDK native:${{ github.event.inputs.oh_sdk_version }} ==============="
./sdkmgr install OpenHarmony/native:${{ github.event.inputs.oh_sdk_version }} --accept-license > /dev/null
echo "=============== INSTALL OH SDK toolchains:${{ github.event.inputs.oh_sdk_version }} ==============="
./sdkmgr install OpenHarmony/toolchains:${{ github.event.inputs.oh_sdk_version }} --accept-license > /dev/null
echo "=============== INSTALL OH SDK DONE ==============="
./sdkmgr list
fi
22 changes: 22 additions & 0 deletions .github/workflows/generate-vulkan-sdk-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: <Native> Generate Vulkan SDK Cache

on:
workflow_dispatch:
inputs:
vulkan_sdk_version:
description: 'Vulkan SDK version'
type: string
default: '1.2.189.0'
required: true

jobs:
generate_vulkan_sdk_cache:
name: "Generate Vulkan SDK cache"
runs-on: windows-2019
steps:
- name: Setup Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.0
with:
vulkan-query-version: ${{ github.event.inputs.vulkan_sdk_version }}
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
2 changes: 2 additions & 0 deletions .github/workflows/native-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
ndk-version: r21e
add-to-path: false
- name: Generate decorators
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
cd native
echo "Generate compile_commands.json & ninja target"
Expand Down
182 changes: 176 additions & 6 deletions .github/workflows/native-compile-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
COCOS_ENGINE_DEV: 1
run: |
NATIVE_ROOT=$GITHUB_WORKSPACE/native
ANDORID_NDK=$ANDROID_NDK_LATEST_HOME
ANDROID_NDK=${{ steps.setup-ndk.outputs.ndk-path }}
NATIVE_DIR=$GITHUB_WORKSPACE/templates/android-template
echo "Compiling Android ... "
cd $GITHUB_WORKSPACE/templates/
Expand All @@ -111,7 +111,7 @@ jobs:

ASSET_DIR=$GITHUB_WORKSPACE/templates/android/build/build-android/

sed -i "s@^PROP_NDK_PATH.*@PROP_NDK_PATH=$ANDORID_NDK@g" gradle.properties
sed -i "s@^PROP_NDK_PATH.*@PROP_NDK_PATH=$ANDROID_NDK@g" gradle.properties
sed -i "s@^APPLICATION_ID.*@APPLICATION_ID=com.cocos.android@g" gradle.properties
sed -i "s@^RES_PATH.*@RES_PATH=$ASSET_DIR@g" gradle.properties
sed -i "s@^COCOS_ENGINE_PATH.*@COCOS_ENGINE_PATH=$NATIVE_ROOT@g" gradle.properties
Expand All @@ -122,7 +122,7 @@ jobs:
sed -i "s@^PROP_APP_ABI.*@PROP_APP_ABI=arm64-v8a@g" gradle.properties

echo "Compile Android - cmake ..."
echo "ANDORID_NDK ${ANDROID_NDK} or ${ANDROID_NDK_HOME}"
echo "ANDROID_NDK ${ANDROID_NDK} or ${ANDROID_NDK_HOME}"
# ./gradlew :CocosGame:assembleDebug --quiet
./gradlew :CocosGame:assembleRelease --quiet
echo "Compile Android Debug Done!"
Expand All @@ -133,6 +133,25 @@ jobs:
(! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration'))
runs-on: ubuntu-latest
steps:
- name: Before free space
run: |
df -h

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@d5af243ce7bacb67384aa6c5b1fc5f169e30903e
with:
tool-cache: true
android: false
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: After free space
run: |
df -h

- uses: actions/checkout@v2
- name: Download external libraries
shell: bash
Expand All @@ -154,7 +173,7 @@ jobs:
COCOS_ENGINE_DEV: 1
run: |
NATIVE_ROOT=$GITHUB_WORKSPACE/native
ANDORID_NDK=$ANDROID_NDK_LATEST_HOME
ANDROID_NDK=${{ steps.setup-ndk.outputs.ndk-path }}
NATIVE_DIR=$GITHUB_WORKSPACE/templates/android-template
echo "Compiling Android ... "
cd $GITHUB_WORKSPACE/templates/
Expand Down Expand Up @@ -185,7 +204,7 @@ jobs:

ASSET_DIR=$GITHUB_WORKSPACE/templates/android/build/build-android/

sed -i "s@^PROP_NDK_PATH.*@PROP_NDK_PATH=$ANDORID_NDK@g" gradle.properties
sed -i "s@^PROP_NDK_PATH.*@PROP_NDK_PATH=$ANDROID_NDK@g" gradle.properties
sed -i "s@^APPLICATION_ID.*@APPLICATION_ID=com.cocos.android@g" gradle.properties
sed -i "s@^RES_PATH.*@RES_PATH=$ASSET_DIR@g" gradle.properties
sed -i "s@^COCOS_ENGINE_PATH.*@COCOS_ENGINE_PATH=$NATIVE_ROOT@g" gradle.properties
Expand All @@ -196,10 +215,161 @@ jobs:
sed -i "s@^PROP_APP_ABI.*@PROP_APP_ABI=armeabi-v7a:arm64-v8a@g" gradle.properties

echo "Compile Android - cmake ..."
echo "ANDORID_NDK ${ANDROID_NDK} or ${ANDROID_NDK_HOME}"
echo "ANDROID_NDK ${ANDROID_NDK} or ${ANDROID_NDK_HOME}"
./gradlew :CocosGame:assembleDebug --quiet
echo "Compile Android Debug Done!"

compile_openharmony:
name: "Openharmony"
if:
(! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download external libraries
shell: bash
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external
- uses: actions/setup-java@v3
id: setup-jdk
with:
distribution: 'zulu'
java-version: '17'
- name: Get oh sdk cache directory path
id: oh-sdk-cache-dir-path
run: |
echo "cache dir: "
echo "dir=$HOME/openharmony" >> $GITHUB_OUTPUT

- name: Output cache dir
run: |
echo "Output cache dir: ${{ steps.oh-sdk-cache-dir-path.outputs.dir }}"

- name: Cache OH SDK
id: cache-oh-sdk
uses: actions/cache@v3
env:
cache-name: cache-oh-sdk-9
with:
path: ${{ steps.oh-sdk-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: Add package.json
run: |
echo "{}" > package.json
echo "{\"name\": \"tests\",\"lockfileVersion\": 3,\"requires\": true,\"packages\": {}}" > package-lock.json
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'

- if: ${{ steps.cache-oh-sdk.outputs.cache-hit != 'true' }}
name: No Cache found, install oh sdk
continue-on-error: false
run: |
if [ ! -d "$HOME/openharmony" ]; then
mkdir -p $HOME/openharmony
echo "Download commandline-tools-linux.zip ..."
curl -o commandline-tools-linux.zip "https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/b1/v3/E6zhv5UFQ2-inIwNJhTN6Q/commandline-tools-linux-2.0.0.2.zip?HW-CC-KV=V1&HW-CC-Date=20230621T074401Z&HW-CC-Expire=315360000&HW-CC-Sign=621224257B02079B1E76C0A56FDF21483400B1E3556213F88DC79BC9BE7D595D"
echo "Unzip commandline-tools-linux.zip ..."
unzip commandline-tools-linux.zip -d $HOME/openharmony > /dev/null
cd $HOME/openharmony
ls -l
cd command-line-tools
echo "=============== PATCHING sdkmanager/bin/sdkmgr file ==============="
sed -i "s@-Dfile.encoding=UTF-8@-Dfile.encoding=UTF-8 -Duser.country=CN@g" ./sdkmanager/bin/sdkmgr
cd bin
./sdkmgr list
echo "=============== INSTALL HOS toolchains:9 ==============="
./sdkmgr install toolchains:9 --accept-license > /dev/null
echo "=============== INSTALL OH SDK ets:9 ==============="
./sdkmgr install OpenHarmony/ets:9 --accept-license > /dev/null
echo "=============== INSTALL OH SDK js:9 ==============="
./sdkmgr install OpenHarmony/js:9 --accept-license > /dev/null
echo "=============== INSTALL OH SDK native:9 ==============="
./sdkmgr install OpenHarmony/native:9 --accept-license > /dev/null
echo "=============== INSTALL OH SDK toolchains:9 ==============="
./sdkmgr install OpenHarmony/toolchains:9 --accept-license > /dev/null
echo "=============== INSTALL OH SDK DONE ==============="
./sdkmgr list
fi

- name: Compile for Openharmony
run: |
which node
which npm
which java
node -v
npm -v
java --version
echo "=============== list files in oh sdk ($HOME/openharmony) ==============="
pushd $HOME/openharmony
ls -l
popd

NATIVE_ROOT=$GITHUB_WORKSPACE/native
echo "Compiling Openharmony ... "

cd $GITHUB_WORKSPACE/templates/openharmony

echo "message(STATUS \"hook before \${CC_TARGET_NAME}\")" >> Pre-Sample.cmake
echo "message(STATUS \"hook after \${CC_TARGET_NAME}\")" >> Post-Sample.cmake

mkdir -p build-oh/proj
touch build-oh/proj/cfg.cmake
echo "set(CC_USE_GLES3 ON)" >> build-oh/proj/cfg.cmake
echo "set(CC_USE_VULKAN OFF)" >> build-oh/proj/cfg.cmake
echo "set(CC_USE_GLES2 ON)" >> build-oh/proj/cfg.cmake
echo "set(USE_WEBSOCKET_SERVER OFF)" >> build-oh/proj/cfg.cmake
echo "set(CMAKE_CXX_STANDARD_REQUIRED ON)" >> build-oh/proj/cfg.cmake
echo "set(COCOS_X_PATH $NATIVE_ROOT)" >> build-oh/proj/cfg.cmake
echo "set(CC_EXECUTABLE_NAME \"\")" >> build-oh/proj/cfg.cmake

echo "=============== cat build-oh/proj/cfg.cmake ==============="
cat build-oh/proj/cfg.cmake

mkdir -p build-oh/assets

ASSET_DIR=$GITHUB_WORKSPACE/templates/openharmony/build-oh

echo "=============== HACK ./entry/build-profile.json5 ==============="
sed -i "s@[^-]DRES_DIR[^=]@$ASSET_DIR@g" ./entry/build-profile.json5
sed -i "s@[^-]DCOMMON_DIR[^=]@$GITHUB_WORKSPACE/templates/common@g" ./entry/build-profile.json5
# To speedup CI, compile arm64-v8a only
sed -i "s@\"armeabi-v7a\",@@g" ./entry/build-profile.json5

echo "entry/build-profile.json5: "
cat ./entry/build-profile.json5

echo "=============== HACK ./hvigor/hvigor-wrapper.js ==============="
sed -i "s@HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,\[\"install\"\]@HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,\[\"install\", \"--lockfile=false\"\]@g" ./hvigor/hvigor-wrapper.js

echo "=============== SET NPM OH REGISTRY ==============="
echo "@ohos:registry=https://repo.harmonyos.com/npm/" >> ~/.npmrc
npm config get @ohos:registry
npm config get registry

echo "=============== UPDATE local.properties ==============="
echo "nodejs.dir=/usr/bin" >> local.properties
echo "hwsdk.dir=$HOME/openharmony/hwsdk" >> local.properties

echo "=============== UPDATE ./hvigor/hvigor-config.json5 ==============="
echo "{\"hvigorVersion\":\"3.0.2\",\"dependencies\":{\"@ohos/hvigor-ohos-plugin\":\"3.0.2\"}}" > ./hvigor/hvigor-config.json5

echo "=============== Do not import game.ts for cocos_worker.ts ==============="
sed -i "s@import . launchEngine .@const window = globalThis;//@g" ./entry/src/main/ets/workers/cocos_worker.ts
sed -i 's@launchEngine().then@/*@g' ./entry/src/main/ets/workers/cocos_worker.ts
sed -i 's@window.oh.postMessage@*/window.oh.postMessage@g' ./entry/src/main/ets/workers/cocos_worker.ts

echo "=============== EXECUTE hvigorw ==============="
./hvigorw clean -i
./hvigorw --stop-daemon -i
./hvigorw assembleHap -p debuggable=true --no-daemon -d
#./hvigorw default@ProcessLibs -p debuggable=true --no-daemon -d
echo "=============== EXECUTE hvigorw DONE ==============="


compile_mac_x86_64:
name: "MacOS x86_64"
if:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/lib
lib/
.turbo/
/bin
/web.config
.idea
Expand Down
8 changes: 8 additions & 0 deletions EngineErrorMap.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ Expected 'data' dict, but not found. Config file: %s

Please load the resource first : %s

### 1102

Effect settings not found, effects will not be imported.

### 1103

Success to load scene: %s

### 1200

cocos2d: Director: Error in gettimeofday
Expand Down
7 changes: 7 additions & 0 deletions cc.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"modules": ["custom-pipeline"],
"dependentAssets": [
"15049ccd-4dd7-451e-a8ae-af66735c929e",
"521c5f6e-1a26-42e2-8108-4400c912d9bf",
"4c3ce6de-e6d1-47f7-aa36-36b9b58f72d3",
"4361db28-3f24-44cc-8e51-32ee5fd651ac",
"cafd95c9-c558-46f9-9812-1224b65c09ee",
Expand Down Expand Up @@ -677,6 +678,12 @@
"type": "boolean",
"value": false,
"internal": true
},
"CULL_MESHOPT": {
"comment": "An internal constant to indicate whether we cull the meshopt wasm module and asm.js module.",
"type": "boolean",
"value": true,
"internal": true
}
},

Expand Down
Loading
Loading