Skip to content

Commit 8ae7afd

Browse files
committed
Update README and Makefile; rename termux-cli to web-termux
1 parent 67a6419 commit 8ae7afd

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

BUILD_GUIDE.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@ Please choose the correct compilation command according to your platform for com
3636
> The web desktop version is a standalone web application that can be run in a browser without installation. Simply execute the binary file in the command line to open the web application in your browser.
3737
>
3838
> It supports usage on platforms such as Linux, Windows, and macOS. You can deploy the web version to your local computer device or deploy it on a cloud server for use on any device.
39+
>
3940
4041
- Execute `make build-web-platform` in the terminal.
41-
- Execute the compiled binary file in the command line, for example:
42-
- Execute `./bin/mywords-web-linux` on Linux.
43-
- Execute `./bin/mywords-web-windows.exe` on Windows.
44-
- Execute `./bin/mywords-web-macos` on MacOS.
42+
- Execute the compiled binary file in the command line, for example:
43+
- Execute `./bin/mywords-web-linux` on Linux.
44+
- Execute `./bin/mywords-web-windows.exe` on Windows.
45+
- Execute `./bin/mywords-web-macos` on MacOS.
46+
- Execute `make build-web-termux` in the terminal to compile the web version for Termux on Android.
47+
- Execute `./bin/mywords-web-termux` in the terminal to run the web version on Termux on Android.
4548
- After execution, the browser will automatically open and access http://127.0.0.1:18960/web/ or the specified port number.
4649
- Already integrated the web version in the mobile version, seamless learning between multiple devices.
4750

@@ -53,4 +56,8 @@ Please choose the correct compilation command according to your platform for com
5356
├── mywords-flutter # Directory for Flutter source code used to compile installation packages
5457
├── Makefile # Makefile for the project
5558
├── README.md # Project documentation
59+
├── CHANGE_LOG.md # Project change log
60+
├── BUILD_GUIDE.md # Project compilation guide
61+
├── ADD_DICTIONARY_GUIDE.md # Guide for adding dictionaries
62+
├── LICENSE # Project license
5663
```

BUILD_GUIDE_zh-hans.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
- 在Linux下执行`./bin/mywords-web-linux`
4141
- 在Windows下执行`./bin/mywords-web-windows.exe`
4242
- 在MacOS下执行`./bin/mywords-web-macos`
43+
- Execute `make build-web-termux` in the terminal to compile the web version for Termux on Android.
44+
- Execute `./bin/mywords-web-termux` in the terminal to run the web version on Termux on Android.
45+
- 执行 `make build-web-termux` 在终端编译安卓上的Termux的web版本。
46+
- 执行 `./bin/mywords-web-termux` 在终端运行安卓上的Termux的web版本。
4347
- 执行后会在自动打开浏览器,访问`http://127.0.0.1:18960/web/`或者你指定的其他端口号。
4448

4549
- 已在移动版本中集成web版本,多设备间无缝学习。
@@ -50,7 +54,6 @@
5054
├── bin # 编译后的项目文件目录,安卓为.apk,Linux为.deb,Windows为.zip,Web版本为二进制文件,例如mywords-web-linux, mywords-web-windows.exe, mywords-web-macos
5155
├── mywords-go # 用于编译.so库的go核心逻辑源代码目录
5256
├── mywords-flutter # Flutter源代码目录,用于编译安装包
53-
├── makefile # 项目的Makefile文件
54-
├── readme.md # 项目的说明文档
55-
57+
├── Makefile # 项目的Makefile文件
58+
├── README.md # 项目的说明文档
5659
```

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ build-android:bin
5252
@echo "PLATFORM: $(PLATFORM) all done, look at the directory bin/"
5353
@echo "--------$$ ls -lha bin --------"
5454
@ls -lha bin
55-
build-termux-cli: bin
56-
cd $(GO_DIR) && make build-termux-cli
55+
build-web-termux: bin
56+
cd $(GO_DIR) && make build-web-termux
5757
@mv $(GO_DIR)/bin/* ./bin/
5858
@echo "--------$$ ls -lha bin --------"
5959
@ls -lha bin
60-
build-all: build-android build-linux build-web-platform build-termux-cli
60+
build-all: build-android build-linux build-web-platform build-web-termux
6161
@echo "PLATFORM: $(PLATFORM) all done, look at the directory bin/"
6262
@echo "--------$$ ls -lha bin --------"
6363
@ls -lha bin

mywords-go/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ build-web-platform: if-build-web
6767
@echo "$$ cd bin && ./$(WEB_BIN_NAME)"
6868
@echo "Open your browser and visit 'http://localhost:18960/web/', or use the port that you have specified."
6969

70-
build-termux-cli:if-build-web
70+
build-web-termux:if-build-web
7171
@echo "build cli for android termux platform"
72-
@CC=${CC} GOOS=android CGO_ENABLED=1 GOARCH=arm64 go build -ldflags $(ldflags) -o ./bin/mywords-termux-cli ./cmd/
72+
@CC=${CC} GOOS=android CGO_ENABLED=1 GOARCH=arm64 go build -ldflags $(ldflags) -o ./bin/mywords-web-termux ./cmd/
7373
@echo "build cli for android termux platform successfully!"
7474
clean:
7575
rm -rf bin/

0 commit comments

Comments
 (0)