From 49e6fdf10cb2dc24ed2c5b3c86e67b5ecf5e3b9d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 20 Aug 2023 09:49:37 +0800 Subject: [PATCH] :art: Update mobile build doc --- .github/CONTRIBUTING.md | 2 +- .github/CONTRIBUTING_zh_CN.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 40ff2243c..9a48ab486 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -55,7 +55,7 @@ Note: In the development environment, the kernel process will not be automatical ### Android * `cd kernel` -* `gomobile bind --tags fts5 -ldflags '-s -w' -v -o kernel.aar -target='android/arm64' ./mobile/` +* `gomobile bind --tags fts5 -ldflags '-s -w' -v -o kernel.aar -target='android/arm64' -androidapi 24 ./mobile/` * https://github.com/siyuan-note/siyuan-android For the mobile-end, please refer to the corresponding project repository. diff --git a/.github/CONTRIBUTING_zh_CN.md b/.github/CONTRIBUTING_zh_CN.md index e48341876..7b965e912 100644 --- a/.github/CONTRIBUTING_zh_CN.md +++ b/.github/CONTRIBUTING_zh_CN.md @@ -50,12 +50,14 @@ NPM 镜像: ### iOS -* `gomobile bind --tags fts5 -ldflags '-s -w' -v -o ./ios/iosk.xcframework -target=ios ./kernel/mobile/` +* `cd kernel` +* `gomobile bind --tags fts5 -ldflags '-s -w' -v -o ./ios/iosk.xcframework -target=ios ./mobile/` * https://github.com/siyuan-note/siyuan-ios ### Android -* `gomobile bind --tags fts5 -ldflags '-s -w' -v -o kernel.aar -target='android/arm64' ./kernel/mobile/` +* `cd kernel` +* `gomobile bind --tags fts5 -ldflags '-s -w' -v -o kernel.aar -target='android/arm64' -androidapi 24 ./mobile/` * https://github.com/siyuan-note/siyuan-android 移动端请参考对应项目仓库。