mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 15:33:26 +00:00
feat: a bit of build documentation because ios is crazy stuff
This commit is contained in:
2
.github/workflows/build-mobile.yml
vendored
2
.github/workflows/build-mobile.yml
vendored
@@ -82,7 +82,7 @@ jobs:
|
|||||||
run: pnpm exec nx run mobile:prebuild --platform=ios
|
run: pnpm exec nx run mobile:prebuild --platform=ios
|
||||||
|
|
||||||
- name: Build iOS app
|
- name: Build iOS app
|
||||||
run: cd apps/mobile/ios && xcodebuild archive -workspace movieweb.xcworkspace -scheme "movieweb" -configuration "Release" -archivePath "build/app.xcarchive" -destination generic/platform=iOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
|
run: cd apps/mobile/ios && xcodebuild archive -workspace movieweb.xcworkspace -scheme "movieweb" -sdk iphoneos -configuration "Release" -archivePath "build/app.xcarchive" -destination generic/platform=iOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
|
||||||
|
|
||||||
- name: Export .ipa from .xcarchive
|
- name: Export .ipa from .xcarchive
|
||||||
run: |
|
run: |
|
||||||
|
45
README.md
45
README.md
@@ -3,31 +3,68 @@
|
|||||||
Native-app for movie-web.
|
Native-app for movie-web.
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
```
|
|
||||||
|
```bash
|
||||||
pnpm install
|
pnpm install
|
||||||
|
|
||||||
// Having nx installed globally is recommended
|
// Having nx installed globally is recommended
|
||||||
pnpm install -g nx
|
pnpm install -g nx
|
||||||
|
|
||||||
// If you don't want nx installed globally, you can use the following command
|
// If you don't want nx installed globally, you can use the following command
|
||||||
(pnpm dlx or npx) nx <command>
|
(pnpm exec or npx) nx <command>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running tasks
|
## Running tasks
|
||||||
|
|
||||||
To execute tasks with Nx use the following syntax:
|
To execute tasks with Nx use the following syntax:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
nx <target> <project> <...options>
|
nx <target> <project> <...options>
|
||||||
```
|
```
|
||||||
|
|
||||||
For example, to run the mobile app:
|
For example, to run the mobile app:
|
||||||
|
|
||||||
|
### Android
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nx run mobile:android
|
||||||
```
|
```
|
||||||
nx run mobile
|
|
||||||
|
### iOS
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nx run mobile:ios
|
||||||
|
```
|
||||||
|
|
||||||
|
## Building archives
|
||||||
|
|
||||||
|
### Android .apk
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nx run mobile:prebuild --platform=android
|
||||||
|
cd apps/mobile/android && ./gradlew assembleRelease
|
||||||
|
```
|
||||||
|
|
||||||
|
### iOS .app
|
||||||
|
|
||||||
|
#### Real device
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nx run mobile:prebuild --platform=ios
|
||||||
|
cd apps/mobile/ios && xcodebuild archive -workspace movieweb.xcworkspace -scheme "movieweb" -sdk iphoneos -configuration "Release" -archivePath "build/app.xcarchive" -destination generic/platform=iOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Simulator
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nx run mobile:prebuild --platform=ios
|
||||||
|
cd apps/mobile/ios && xcodebuild archive -workspace movieweb.xcworkspace -scheme "movieweb" -sdk iphonesimulator -configuration "Release" -archivePath "build/app.xcarchive" -destination "generic/platform=iOS Simulator" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
|
||||||
```
|
```
|
||||||
|
|
||||||
## Repository information
|
## Repository information
|
||||||
|
|
||||||
This project uses Nx to manage the monorepo. For more information about Nx, visit [nx.dev](https://nx.dev).
|
This project uses Nx to manage the monorepo. For more information about Nx, visit [nx.dev](https://nx.dev).
|
||||||
|
|
||||||
### Mobile app
|
### Mobile app
|
||||||
|
|
||||||
The mobile app is built with React Native and Expo. For more information about Expo, visit [expo.io](https://expo.io).
|
The mobile app is built with React Native and Expo. For more information about Expo, visit [expo.io](https://expo.io).
|
||||||
|
Reference in New Issue
Block a user