Skip to content

Commit 28f84b1

Browse files
authored
Merge pull request #39 from hackeris/patch-1
usage for Windows user
2 parents 5672afa + b0489c4 commit 28f84b1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ Terminal features:
116116
7. Run `./build-linux.sh -p` to push and install Termony on your device
117117
8. Try Termony on you HarmonyOS Computer
118118

119+
## Usage (if you are a Windows user):
120+
121+
1. Connect your MateBook Pro to a Windows machine, and do the following steps
122+
2. Install WSL (Ubuntu recomended), and build hap with following steps, like Linux
123+
3. Clone this repo recursively, and cd into this repo
124+
4. Setup code signing in DevEco-Studio, ignore warnings if any
125+
5. Setup DevEco Command Line Tools in WSL, and make sure `$TOOL_HOME` env var is a correct directory to SDK
126+
6. In WSL, run `./build-linux.sh -b` to create hnp packages
127+
7. In WSL, run `./build-linux.sh -s` to sign the hap file
128+
8. In Windows terminal, use `hdc` on Windows to send and install hap file, like `hdc_push` in `build-linux.sh`
129+
9. Try Termony on you HarmonyOS Computer
130+
119131
## How does it work
120132

121133
By examining CodeArts IDE, we found that it utilizes HNP packages for native programs. You need to package `.hnp` files into the `.hap`, and add them to `module.json5` like:

0 commit comments

Comments
 (0)