Skip to content

Commit 886aa08

Browse files
committed
udpate
1 parent c7c9247 commit 886aa08

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

Example/harmony_use_pushy/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function App() {
4141
return (
4242
<View style={styles.container}>
4343
<Text style={styles.welcome}>欢迎使用Pushy热更新服务</Text>
44-
{/* <Text style={styles.welcome}>😁hdiffFromAPP更新成功!!!</Text>
44+
{/* <Text style={styles.welcome}>😁hdiffFromAPP更新成功!!!</Text> */}
4545
{/* <Text style={styles.welcome}>😁hdiffFromPPk更新成功!!!</Text> */}
4646
<View style={{flexDirection: 'row'}}>
4747
<TouchableOpacity
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
## 运行harmony_use_pushy项目步骤
22

3-
### 1. 先在react-native-update根目录执行下面命令同步C++模块
3+
### 1. 在项目根目录执行下面命令安装第三方依赖
44
```
55
bun install
6-
bun run submodule
76
```
87

9-
### 2. 在项目根目录执行下面命令安装第三方依赖。
8+
### 2. 本地debug 模式
109
```
11-
bun install
10+
bun run start
1211
```
1312

14-
### 3. 在项目根目录执行下面命令生成bundle包文件。
13+
### 3. release 模式: 在项目根目录执行下面命令生成bundle包文件。
1514
```
1615
bun run build
1716
```
1817
说明:这个命令会在harmony/entry/src/main/resources/rawfile目录生成Hbundle.harmony.js和assets文件,同时会基于该内容在.pushy/output目录生成ppk包。
1918

2019
**注意⚠️**:在使用pushy bundle --platform harmony命令进行打包的默认bundle包名是Hbundle.harmony.js,不要随意修改包名,因为diff是匹配该包名进行生成的。
2120

22-
### 4. 本地debug 模式
23-
```
24-
bun run start
25-
```
26-
27-
### 5. 使用DevEco Studio IDE打开harmony目录然后执行sync运行项目
21+
### 4. 使用DevEco Studio IDE打开harmony目录然后执行sync运行项目
2822
![image](./sync.png)
2923

30-
### 6 运行效果图
24+
### 5 运行效果图
3125
![image](./demo.png)

Example/harmony_use_pushy/harmony/entry/src/main/ets/pages/Index.ets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ struct Index {
6464
new AnyJSBundleProvider([
6565
// local debug mode
6666
new MetroJSBundleProvider(),
67+
// release mode
6768
new FileJSBundleProvider(this.rnohCoreContext.uiAbilityContext),
6869
new ResourceJSBundleProvider(this.rnohCoreContext.uiAbilityContext.resourceManager, 'bundle.harmony.js')
6970
]),

Example/harmony_use_pushy/harmony/entry/src/main/resources/rawfile/bundle.harmony.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"pushy_build_time": "2025-04-12T10:57:37.707Z",
2+
"pushy_build_time": "2025-04-12T11:08:22.854Z",
33
"versionName": "1.0.0"
44
}

0 commit comments

Comments
 (0)