|
@ -1017,47 +1017,27 @@ If you need to build manually or want to understand the individual steps: |
|
|
export GEM_PATH=$shortened_path |
|
|
export GEM_PATH=$shortened_path |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
1. Build the web assets & update ios: |
|
|
1. Bump the version in package.json, then here. |
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
rm -rf dist |
|
|
|
|
|
npm run build:web |
|
|
|
|
|
npm run build:capacitor |
|
|
|
|
|
npx cap sync ios |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
- If that fails with "Could not find..." then look at the "gem_path" instructions above. |
|
|
|
|
|
|
|
|
|
|
|
3. Copy the assets: |
|
|
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
# It makes no sense why capacitor-assets will not run without these but it actually changes the contents. |
|
|
|
|
|
mkdir -p ios/App/App/Assets.xcassets/AppIcon.appiconset |
|
|
|
|
|
echo '{"images":[]}' > ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json |
|
|
|
|
|
mkdir -p ios/App/App/Assets.xcassets/Splash.imageset |
|
|
|
|
|
echo '{"images":[]}' > ios/App/App/Assets.xcassets/Splash.imageset/Contents.json |
|
|
|
|
|
npx capacitor-assets generate --ios |
|
|
|
|
|
``` |
|
|
``` |
|
|
|
|
|
cd ios/App && xcrun agvtool new-version 40 && perl -p -i -e "s/MARKETING_VERSION = .*;/MARKETING_VERSION = 1.0.7;/g" App.xcodeproj/project.pbxproj && cd - |
|
|
4. Bump the version to match Android & package.json: |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
cd ios/App && xcrun agvtool new-version 39 && perl -p -i -e "s/MARKETING_VERSION = .*;/MARKETING_VERSION = 1.0.6;/g" App.xcodeproj/project.pbxproj && cd - |
|
|
|
|
|
# Unfortunately this edits Info.plist directly. |
|
|
# Unfortunately this edits Info.plist directly. |
|
|
#xcrun agvtool new-marketing-version 0.4.5 |
|
|
#xcrun agvtool new-marketing-version 0.4.5 |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
5. Open the project in Xcode: |
|
|
2. Build. |
|
|
|
|
|
|
|
|
```bash |
|
|
Here's prod. Also available: test, dev |
|
|
npx cap open ios |
|
|
|
|
|
``` |
|
|
```bash |
|
|
|
|
|
npm run build:ios:prod |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
6. Use Xcode to build and run on simulator or device. |
|
|
3.1. Use Xcode to build and run on simulator or device. |
|
|
|
|
|
|
|
|
* Select Product -> Destination with some Simulator version. Then click the run arrow. |
|
|
* Select Product -> Destination with some Simulator version. Then click the run arrow. |
|
|
|
|
|
|
|
|
7. Release |
|
|
3.2. Use Xcode to release. |
|
|
|
|
|
|
|
|
* Someday: Under "General" we want to rename a bunch of things to "Time Safari" |
|
|
* Someday: Under "General" we want to rename a bunch of things to "Time Safari" |
|
|
* Choose Product -> Destination -> Any iOS Device |
|
|
* Choose Product -> Destination -> Any iOS Device |
|
@ -1125,35 +1105,28 @@ The recommended way to build for Android is using the automated build script: |
|
|
|
|
|
|
|
|
#### Manual Build Process |
|
|
#### Manual Build Process |
|
|
|
|
|
|
|
|
1. Build the web assets: |
|
|
1. Bump the version in package.json, then here: android/app/build.gradle |
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
rm -rf dist |
|
|
|
|
|
npm run build:web |
|
|
|
|
|
npm run build:capacitor |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
2. Update Android project with latest build: |
|
|
|
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
npx cap sync android |
|
|
perl -p -i -e 's/versionCode .*/versionCode 40/g' android/app/build.gradle |
|
|
``` |
|
|
perl -p -i -e 's/versionName .*/versionName "1.0.7"/g' android/app/build.gradle |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
3. Copy the assets |
|
|
2. Build. |
|
|
|
|
|
|
|
|
```bash |
|
|
Here's prod. Also available: test, dev |
|
|
npx capacitor-assets generate --android |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
4. Bump version to match iOS & package.json: android/app/build.gradle |
|
|
```bash |
|
|
|
|
|
npm run build:android:prod |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
5. Open the project in Android Studio: |
|
|
3. Open the project in Android Studio: |
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
npx cap open android |
|
|
npx cap open android |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
6. Use Android Studio to build and run on emulator or device. |
|
|
4. Use Android Studio to build and run on emulator or device. |
|
|
|
|
|
|
|
|
## Android Build from the console |
|
|
## Android Build from the console |
|
|
|
|
|
|
|
|