File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,19 +134,32 @@ Desktop is built on Tauri for Windows / macOS / Linux; remote control works from
134134- [ Rust toolchain] ( https://rustup.rs/ )
135135- [ Tauri prerequisites] ( https://v2.tauri.app/start/prerequisites/ ) (required for desktop development)
136136- [ ohos-rs] ( https://ohos.rs/docs/basic/quick-start )
137+ - [ DevEco Studio] ( https://developer.huawei.com/consumer/en/deveco-studio/ )
137138
138139** Commands:**
139140
140141``` bash
141- # Install dependencies
142+ # Install dependencies in root directory
142143pnpm install
143144
144- # build frontend
145+ # build frontend in root directory
145146npm run build
146147
147- # build so
148- cd ./src/apps/desktop
149- cargo tauri ohos build
148+ # build backend(.so) in desktop directory
149+ cd src/apps/desktop && cargo tauri ohos init && cargo tauri ohos build
150+
151+ # build mini app frontend
152+ cd src/mobile-web && npm run build
153+
154+ # build app
155+ # # copy mini-app resources
156+ 1. cp src/mobile-web/dist src/apps/ohos/entry/src/main/resources/resfile
157+
158+ # # copy app exe
159+ 2. cp target/aarch64-unknow-linux-ohos/release/libbitfun_desktop_lib.so src/apps/ohos/entry/libs/arm64-v8a/libbitfun_desktop_lib.so
160+
161+ # # build whole app
162+ 3. use deveco app to build
150163```
151164
152165For more details, see the [ Contributing guide] ( ./CONTRIBUTING.md ) .
Original file line number Diff line number Diff line change @@ -138,19 +138,31 @@ Agent 领域几乎每周都有新范式出现。BitFun 的节奏是——**看
138138- [ Rust 工具链] ( https://rustup.rs/ )
139139- [ Tauri 前置依赖] ( https://v2.tauri.app/start/prerequisites/ ) (桌面端开发需要)
140140- [ ohos-rs] ( https://ohos.rs/docs/basic/quick-start )
141+ - [ DevEco Studio] ( https://developer.huawei.com/consumer/en/deveco-studio/ )
141142
142143** 运行指令:**
143144
144145``` bash
145- # 安装依赖
146+ # 在根目录安装依赖
146147pnpm install
147148
148- # 编译前端
149+ # 在根目录编译前端
149150npm run build
150151
151- # 编译出so
152- cd ./src/apps/desktop
153- cargo tauri ohos build
152+ # 在 desktop 目录编译后端(.so)
153+ cd src/apps/desktop && cargo tauri ohos init && cargo tauri ohos build
154+
155+ # 编译 mini app 前端
156+ cd src/mobile-web && npm run build
157+
158+ # 构建应用
159+ # # 1. 复制 mini-app 资源
160+ cp src/mobile-web/dist src/apps/ohos/entry/src/main/resources/resfile
161+
162+ # # 2. 复制应用可执行文件
163+ cp target/aarch64-unknow-linux-ohos/release/libbitfun_desktop_lib.so src/apps/ohos/entry/libs/arm64-v8a/libbitfun_desktop_lib.so
164+
165+ # # 3. 使用 DevEco Studio 构建完整应用
154166```
155167
156168更多详情请参阅[ 贡献指南] ( ./CONTRIBUTING_CN.md ) 。
You can’t perform that action at this time.
0 commit comments