consolidate mobile build instructions, moving config afterward

This commit is contained in:
2025-03-16 17:02:51 -06:00
parent de11c2a310
commit dfc6fe4afc

View File

@@ -108,25 +108,29 @@ Prerequisites: macOS with Xcode installed
npm run build:capacitor
```
2. Add iOS platform if not already added:
```bash
npx cap add ios
```
3. Update iOS project with latest build:
2. Update iOS project with latest build:
```bash
npx cap sync ios
```
4. Open the project in Xcode:
3. Open the project in Xcode:
```bash
npx cap open ios
```
5. Use Xcode to build and run on simulator or device.
4. Use Xcode to build and run on simulator or device.
If you have forked this to make your own app, you'll want to customize the ios files:
```bash
rm -rf ios
npx cap add ios
```
... and then repeat the steps above.
### Android Build
@@ -140,27 +144,40 @@ Prerequisites: Android Studio with SDK installed
npm run build:capacitor
```
2. Add Android platform if not already added:
```bash
npx cap add android
```
3. Update Android project with latest build:
2. Update Android project with latest build:
```bash
npx cap sync android
```
4. Open the project in Android Studio:
3. Open the project in Android Studio:
```bash
npx cap open android
```
5. Use Android Studio to build and run on emulator or device.
3. Use Android Studio to build and run on emulator or device.
## Building Android for deep links
If you have forked this to make your own app, you'll want to customize the android files:
```bash
rm -rf android
npx cap add android
```
... and then: repeat the steps above, and look below for the deep link configuration.
## Building Android from the console
```bash
cd android
./gradlew clean
./gradlew build -Dlint.baselines.continue=true
cd ..
npx cap run android
```
## Configuring Android for deep links
You must add the following intent filter to the `android/app/src/main/AndroidManifest.xml` file:
@@ -226,26 +243,6 @@ Modify `/android/build.gradle` to use a stable version of AGP and make sure Kotl
}
```
## Building Android from the console
```bash
cd android
./gradlew clean
./gradlew build -Dlint.baselines.continue=true
cd ..
npx cap run android
```
## Development
To run the application in development mode:
1. Start the development server:
```bash
npm run dev
```
## PyWebView Desktop Build
### Prerequisites for PyWebView