Skip to content

Code Push Standalone Command Error #13

Open
@cris7hian30-df

Description

@cris7hian30-df

Issue: code-push-diff release-react Generates an Incorrect code-push-standalone release

Problem Description

When running the following command:

code-push-diff release-react android --app {YOUR_APP_NAME} --base {BRANCH_OR_COMMIT} --cmd code-push-standalone

The process generates the following code-push-standalone release command during the build:

code-push-standalone release -a <APP_NAME> -c <FOLDER_BUNDLE> -t <TARGET_VERSION> -d <ENVIRONMENT> --disabled false --mandatory false --rollout 100 --disable-duplicate-release-error true

However, the code-push-standalone release command does not support many of these attributes and fails to upload the bundle. Specifically, it does not accept the -c or --update-contents-path argument.

Additionally, the correct format for the code-push-standalone release command is:

code-push-standalone release <appName> <updateContentsPath> <targetBinaryVersion> [options]

Expected Behavior

  • The generated command should follow the correct format supported by code-push-standalone release.
  • The command should only pass the first three arguments (appName, updateContentsPath, and targetBinaryVersion) without adding unnecessary flags or parameters.

Actual Behavior

  • The generated command includes unsupported parameters.
  • The upload fails due to incorrect command structure.

Suggested Fix

Update code-push-diff release-react to correctly generate the code-push-standalone release command without adding extra letters or unnecessary arguments, ensuring it follows this correct format:

code-push-standalone release <appName> <updateContentsPath> <targetBinaryVersion>

Metadata

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