chore: add linux build step

This commit is contained in:
levi committed 2022-11-02 17:26:03 +08:00
1 parent b16f348676
commit 29c834a070
1 file changed
+14 -6
+14 -6
View File
@@ -41,17 +41,17 @@ go install github.com/monkeyWie/gopeed/cmd/gopeed
> 前端代码位于`ui/flutter`目录下。
### 环境要求
1. Golang 1.9+
2. Flutter 3.0+
### 克隆项目
```bash
git clone [email protected]:monkeyWie/gopeed.git
```
### 环境要求
1. Golang 1.9+
2. Flutter 3.0+
### 编译
#### 桌面端
@@ -63,11 +63,19 @@ git clone [email protected]:monkeyWie/gopeed.git
- macos
```bash
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o bin/libgopeed.dylib github.com/monkeyWie/gopeed/bind/desktop
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/macos/Frameworks/libgopeed.dylib github.com/monkeyWie/gopeed/bind/desktop
cd ui/flutter
flutter build macos
```
- linux
```bash
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/monkeyWie/gopeed/bind/desktop
cd ui/flutter
flutter build linux
```
#### 移动端
同样的也是需要准备好`cgo`环境,接着安装`gomobile`: