u
This commit is contained in:
1 parent
f1df74a4d1
commit
76c00b0680
5 files changed
+118
-27
No files matched your search
@@ -0,0 +1,53 @@
|
||||
官网:https://expo.dev/
|
||||
|
||||
# 初始化项目
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 打包
|
||||
|
||||
## 云打包
|
||||
|
||||
1. 安装 EAS CLI
|
||||
|
||||
```bash
|
||||
npm install -g eas-cli
|
||||
```
|
||||
|
||||
2. 注册并登录 Expo 账户
|
||||
|
||||
访问 https://expo.dev/ 注册账户,然后命令行登录:
|
||||
|
||||
```bash
|
||||
expo login
|
||||
```
|
||||
|
||||
3. 配置项目构建
|
||||
|
||||
```bash
|
||||
eas build:configure
|
||||
```
|
||||
|
||||
选择 Android 平台即可。
|
||||
|
||||
4. 构建 Android 包
|
||||
|
||||
默认构建 AAB 包(上传 Google Play):
|
||||
|
||||
```bash
|
||||
eas build --platform android
|
||||
```
|
||||
|
||||
构建 APK(可直接安装):
|
||||
|
||||
```bash
|
||||
eas build -p android --profile preview
|
||||
```
|
||||
|
||||
## 本地打包
|
||||
|
||||
### EAS方式
|
||||
|
||||
### 原生方式
|
||||
Reference in new issue
Block a user