Skip to content

Unable to run for web platform on Appflow #217

Open
@troygilbert

Description

The default Trapeze script doesn't run if the CI_PLATFORM is 'web'. I removed this conditional logic because I want to run some JSON patching even for Javascript builds. But then it doesn't work if I pass in the platform "web" to the trapeze command-line. So, I removed that flag. But now it appears trapeze attempts to use Gradle on iOS builds, which at least in Appflow is not present. What's the correct way to set this up?

My current Trapeze config yaml (appflow.yml):

vars:
  CI_BUILD_NUMBER:
    default: 1

platforms:
  ios:
    buildNumber: $CI_BUILD_NUMBER
  android:
    versionCode: $CI_BUILD_NUMBER
  project:
    json:
      - file: src/metadata.json
        set:
          liveBuild: $CI_BUILD_NUMBER

And my package.json build script:

"appflow:build": "CI_BUILD_NUMBER=$(($CI_BUILD_NUMBER + 1143)); npx trapeze run appflow.yml -y && npm run build",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions