expo / custom-expo-updates-server

238 stars 67 forks source link

Overwrote updates.url "https://myhost.net/api/manifest" with "https://u.expo.dev/my-expo-id" #27

Closed nsoeth closed 1 year ago

nsoeth commented 1 year ago

Hi,

I implemented the custom expo update server. However, whenever I try to run

eas update --channel production --message 'Update' --private-key-path code-signing/private-key.pem

it changes the value expo.updates.url in the app.json to the default one and removing expo.updates.codeSigningCertificate and expo.updates.codeSigningMetadata.

The output is the following:

Overwrote updates.url "https://myhost.net/api/manifest" with "https://u.expo.dev/my-expo-id"

I already ran

npx expo prebuild

after changing the url.

Here is my app.json:

{
  "expo": {
    "name": "my-app",
    "slug": "my-app",
    "version": "REPLACED_DURING_BUILD_FROM_PIPELINE",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "userInterfaceStyle": "light",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 30000,
      "url": "https://myhost.net/api/manifest",
      "enabled": true,
      "codeSigningCertificate": "./code-signing/certificate.pem",
      "codeSigningMetadata": {
        "keyid": "main",
        "alg": "rsa-v1_5-sha256"
      }
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.myapp.myapp"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "package": "com.myapp.myapp"
    },
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "extra": {
      "eas": {
        "projectId": "my-expo-id"
      }
    },
    "runtimeVersion": {
      "policy": "sdkVersion"
    }
  }
}

and my eas.json


{
  "cli": {
    "version": ">= 3.6.0"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "ios": {
        "resourceClass": "m1-medium",
        "credentialsSource": "local"
      },
      "channel": "development"
    },
    "preview": {
      "distribution": "internal",
      "ios": {
        "resourceClass": "m1-medium",
        "credentialsSource": "local"
      },
      "channel": "preview"
    },
    "production": {
      "ios": {
        "resourceClass": "m1-medium",
        "credentialsSource": "local"
      },
      "channel": "production"
    }
  },
  "submit": {
    "production": {}
  }
}
nsoeth commented 1 year ago

I close this since I figured out, that CEUS does not work with EAS update. Sorry.