Skip to content

Commit 308cbf9

Browse files
committed
fix:修复触发编译的条件
1 parent c3ef73e commit 308cbf9

File tree

2 files changed

+43
-43
lines changed

2 files changed

+43
-43
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build All UI APP
33
on:
44
push:
55
branches:
6-
- 'android-app'
6+
- 'gui'
77
workflow_dispatch:
88

99
jobs:

README.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
# 融合怪GUI版本
1+
# GOECS GUI Version
22

3-
[![Build All UI APP](https://github.com/oneclickvirt/ecs/actions/workflows/build-all.yml/badge.svg)](https://github.com/oneclickvirt/ecs/actions/workflows/build-all.yml)
3+
[![Build All UI APP](https://github.com/oneclickvirt/ecs/actions/workflows/build.yml/badge.svg)](https://github.com/oneclickvirt/ecs/actions/workflows/build.yml)
44

5-
一个基于 Fyne 框架的跨平台测试工具,支持 AndroidmacOSWindows
5+
A cross-platform testing tool based on the Fyne framework, supporting Android, macOS, and Windows.
66

7-
## 支持的平台
7+
## Supported Platforms
88

99
### Android
10-
- Android 7.0 (API Level 24) 或更高版本
11-
- 建议 Android 13 (API Level 33) 以获得最佳体验
12-
- 支持架构:ARM64x86_64
10+
- Android 7.0 (API Level 24) or higher
11+
- Android 13 (API Level 33) recommended for best experience
12+
- Supported architectures: ARM64, x86_64
1313

1414
### macOS
15-
- macOS 11.0 或更高版本
16-
- 支持架构:Apple Silicon (ARM64)Intel (AMD64)
15+
- macOS 11.0 or higher
16+
- Supported architectures: Apple Silicon (ARM64), Intel (AMD64)
1717

1818
### Windows
19-
- Windows 10 或更高版本
20-
- 支持架构:ARM64AMD64
19+
- Windows 10 or higher
20+
- Supported architectures: ARM64, AMD64
2121

22-
## 本地构建
22+
## Local Build
2323

24-
### 前置要求
24+
### Prerequisites
2525

2626
1. Go 1.25.3
2727
2. Android SDK
2828
3. Android NDK 25.2.9519653
2929
4. JDK 17+
3030

31-
### 环境配置
31+
### Environment Setup
3232

3333
```bash
34-
# 设置 Android NDK 路径
34+
# Set Android NDK path
3535
export ANDROID_NDK_HOME=/path/to/android-ndk
3636

37-
# 安装 Fyne CLI
37+
# Install Fyne CLI
3838
go install fyne.io/fyne/v2/cmd/fyne@latest
3939
```
4040

41-
### 构建命令
41+
### Build Commands
4242

4343
```bash
44-
# Android 构建前准备:需要先准备 ECS 二进制文件
45-
# ECS 项目编译 Linux 二进制并放入 jniLibs 目录
46-
# 详见 jniLibs/README.md
44+
# Preparation before Android build: ECS binary files need to be prepared first
45+
# Compile Linux binaries from the ECS project and place them in the jniLibs directory
46+
# See jniLibs/README.md for details
4747

48-
# 快速准备命令(假设 ecs 项目在 ../ecs
48+
# Quick preparation command (assuming ecs project is in ../ecs)
4949
cd ../ecs && \
5050
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -checklinkname=0" -o goecs-linux-arm64 ./ && \
5151
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -checklinkname=0" -o goecs-linux-amd64 ./ && \
@@ -54,52 +54,52 @@ cp ../ecs/goecs-linux-arm64 jniLibs/arm64-v8a/libgoecs.so && \
5454
cp ../ecs/goecs-linux-amd64 jniLibs/x86_64/libgoecs.so && \
5555
chmod 755 jniLibs/*/libgoecs.so
5656

57-
# 构建桌面端(用于快速测试)
57+
# Build desktop version (for quick testing)
5858
./build.sh desktop
5959

60-
# 构建 Android APK (arm64 + x86_64)
60+
# Build Android APK (arm64 + x86_64)
6161
./build.sh android
6262

63-
# 构建 macOS 应用 (arm64 + amd64)
63+
# Build macOS application (arm64 + amd64)
6464
./build.sh macos
6565

66-
# 构建 Windows 应用 (arm64 + amd64)
66+
# Build Windows application (arm64 + amd64)
6767
./build.sh windows
6868

69-
# 构建所有平台
69+
# Build all platforms
7070
./build.sh all
7171
```
7272

73-
构建产物将输出到 `.build/` 目录。
73+
Build artifacts will be output to the `.build/` directory.
7474

75-
### 构建产物说明
75+
### Build Artifacts Description
7676

77-
- **Android**: `.apk` 文件
78-
- `goecs-android-arm64-*.apk` - ARM64 版本(真机)
79-
- `goecs-android-x86_64-*.apk` - x86_64 版本(模拟器)
77+
- **Android**: `.apk` files
78+
- `goecs-android-arm64-*.apk` - ARM64 version (physical device)
79+
- `goecs-android-x86_64-*.apk` - x86_64 version (emulator)
8080

81-
- **macOS**: `.tar.gz` 压缩包(包含 `.app` 应用)
82-
- `goecs-macos-arm64-*.tar.gz` - Apple Silicon 版本
83-
- `goecs-macos-amd64-*.tar.gz` - Intel 版本
81+
- **macOS**: `.tar.gz` archives (containing `.app` application)
82+
- `goecs-macos-arm64-*.tar.gz` - Apple Silicon version
83+
- `goecs-macos-amd64-*.tar.gz` - Intel version
8484

85-
- **Windows**: `.exe` 可执行文件
86-
- `goecs-windows-arm64-*.exe` - ARM64 版本
87-
- `goecs-windows-amd64-*.exe` - AMD64 版本
85+
- **Windows**: `.exe` executable files
86+
- `goecs-windows-arm64-*.exe` - ARM64 version
87+
- `goecs-windows-amd64-*.exe` - AMD64 version
8888

89-
## 开发
89+
## Development
9090

9191
```bash
92-
# 克隆仓库
92+
# Clone repository
9393
git clone https://github.com/oneclickvirt/ecs.git
9494
cd ecs
9595

96-
# 切换到 Android 开发分支
96+
# Switch to Android development branch
9797
git checkout android-app
9898

99-
# 安装依赖
99+
# Install dependencies
100100
go mod download
101101

102-
# 运行桌面版本(用于开发测试)
102+
# Run desktop version (for development testing)
103103
go run -ldflags="-checklinkname=0" .
104104
```
105105

0 commit comments

Comments
 (0)