Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run for web platform on Appflow #217

Open
troygilbert opened this issue May 6, 2024 · 0 comments
Open

Unable to run for web platform on Appflow #217

troygilbert opened this issue May 6, 2024 · 0 comments

Comments

@troygilbert
Copy link

troygilbert commented May 6, 2024

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",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant