feat: 添加跨平台运行时、资产系统和UI适配功能 (#256)
* feat(platform-common): 添加WASM加载器和环境检测API * feat(rapier2d): 新增Rapier2D WASM绑定包 * feat(physics-rapier2d): 添加跨平台WASM加载器 * feat(asset-system): 添加运行时资产目录和bundle格式 * feat(asset-system-editor): 新增编辑器资产管理包 * feat(editor-core): 添加构建系统和模块管理 * feat(editor-app): 重构浏览器预览使用import maps * feat(platform-web): 添加BrowserRuntime和资产读取 * feat(engine): 添加材质系统和着色器管理 * feat(material): 新增材质系统和着色器编辑器 * feat(tilemap): 增强tilemap编辑器和动画系统 * feat(modules): 添加module.json配置 * feat(core): 添加module.json和类型定义更新 * chore: 更新依赖和构建配置 * refactor(plugins): 更新插件模板使用ModuleManifest * chore: 添加第三方依赖库 * chore: 移除BehaviourTree-ai和ecs-astar子模块 * docs: 更新README和文档主题样式 * fix: 修复Rust文档测试和添加rapier2d WASM绑定 * fix(tilemap-editor): 修复画布高DPI屏幕分辨率适配问题 * feat(ui): 添加UI屏幕适配系统(CanvasScaler/SafeArea) * fix(ecs-engine-bindgen): 添加缺失的ecs-framework-math依赖 * fix: 添加缺失的包依赖修复CI构建 * fix: 修复CodeQL检测到的代码问题 * fix: 修复构建错误和缺失依赖 * fix: 修复类型检查错误 * fix(material-system): 修复tsconfig配置支持TypeScript项目引用 * fix(editor-core): 修复Rollup构建配置添加tauri external * fix: 修复CodeQL检测到的代码问题 * fix: 修复CodeQL检测到的代码问题
This commit is contained in:
12
thirdparty/rapier.js/.github/FUNDING.yml
vendored
Normal file
12
thirdparty/rapier.js/.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: ["dimforge"] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||
154
thirdparty/rapier.js/.github/workflows/main.yml
vendored
Normal file
154
thirdparty/rapier.js/.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
name: main
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
check-fmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22.x"
|
||||
- run: npm ci
|
||||
- name: Check formatting
|
||||
run: npm run fmt -- --check
|
||||
- name: Check Rust formatting
|
||||
run: cargo fmt -- --check
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- run: npm ci;
|
||||
- name: Prepare no-compat builds
|
||||
run: |
|
||||
./builds/prepare_builds/prepare_all_projects.sh
|
||||
- name: Build all no-compat projects
|
||||
run: |
|
||||
./builds/prepare_builds/build_all_projects.sh
|
||||
# Install dependencies to check simd for builds
|
||||
- name: Install wabt
|
||||
run: |
|
||||
sudo apt install wabt;
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
- name: Install wabt
|
||||
run: |
|
||||
brew install wabt;
|
||||
if: matrix.os == 'macos-latest'
|
||||
# Check simd for rust builds
|
||||
- name: Check 2d simd rust build
|
||||
run: |
|
||||
if ! wasm-objdump -d builds/rapier2d-simd/pkg/rapier_wasm2d_bg.wasm | grep :\\sfd ; then
|
||||
>&2 echo "ERROR: 2d simd compat build does not include simd opcode prefix." && exit 1
|
||||
fi
|
||||
- name: Check 3d simd compat build
|
||||
run: |
|
||||
if ! wasm-objdump -d builds/rapier3d-simd/pkg/rapier_wasm3d_bg.wasm | grep :\\sfd ; then
|
||||
>&2 echo "ERROR: 3d simd compat build does not include simd opcode prefix." && exit 1
|
||||
fi
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: pkg no-compat ${{ matrix.os }}
|
||||
path: |
|
||||
builds/*/pkg
|
||||
overwrite: true
|
||||
build-compat:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- run: npm ci;
|
||||
- name: Prepare compat builds
|
||||
run: |
|
||||
./builds/prepare_builds/prepare_all_projects.sh
|
||||
- name: Build rapier-compat
|
||||
run: |
|
||||
cd rapier-compat;
|
||||
npm ci;
|
||||
npm run build;
|
||||
npm run test;
|
||||
# Install dependencies to check simd for builds
|
||||
- name: Install wabt
|
||||
run: |
|
||||
sudo apt install wabt;
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
- name: Install wabt
|
||||
run: |
|
||||
brew install wabt;
|
||||
if: matrix.os == 'macos-latest'
|
||||
# Check simd for compat builds
|
||||
- name: Check 2d simd compat build
|
||||
run: |
|
||||
if ! wasm-objdump -d rapier-compat/builds/2d-simd/pkg/rapier_wasm2d_bg.wasm | grep :\\sfd ; then
|
||||
>&2 echo "ERROR: 2d simd compat build does not include simd opcode prefix." && exit 1;
|
||||
fi
|
||||
- name: Check 3d simd compat build
|
||||
run: |
|
||||
if ! wasm-objdump -d rapier-compat/builds/3d-simd/pkg/rapier_wasm3d_bg.wasm | grep :\\sfd ; then
|
||||
>&2 echo "ERROR: 3d simd compat build does not include simd opcode prefix." && exit 1;
|
||||
fi
|
||||
# Upload
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: pkg compat ${{ matrix.os }}
|
||||
path: |
|
||||
rapier-compat/builds/*/pkg
|
||||
overwrite: true
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build, build-compat]
|
||||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: pkg no-compat ubuntu-latest
|
||||
path: builds
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: pkg compat ubuntu-latest
|
||||
path: rapier-compat/builds
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22.x"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
- name: Publish projects
|
||||
run: |
|
||||
./publish_all_canary.sh
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
Reference in New Issue
Block a user