## Description Reverted client profiled build script, we will instead generate a docker custom image. Fixes https://github.com/appsmithorg/appsmith/issues/35184 > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.Sanity" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/10177617441> > Commit: 3ff5d304aacb08cabb529b6553b2319d688000ff > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10177617441&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity` > Spec: > <hr>Wed, 31 Jul 2024 09:52:14 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Removed the dependency on the `APPSMITH_CLOUD_HOSTING` environment variable during the build process, streamlining the workflow and build script. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
24 lines
633 B
Bash
Executable File
24 lines
633 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
GIT_SHA=$(eval git rev-parse HEAD)
|
|
echo $GIT_SHA
|
|
echo "Sentry Auth Token: $SENTRY_AUTH_TOKEN"
|
|
|
|
if [ "$REACT_APP_AIRGAP_ENABLED" == "true" ]; then
|
|
echo "Building for airgapped Appsmith instances"
|
|
node download-assets.js;
|
|
else
|
|
echo "Building for non-airgapped Appsmith instances"
|
|
fi
|
|
|
|
# build cra app
|
|
export REACT_APP_SENTRY_RELEASE=$GIT_SHA
|
|
export REACT_APP_CLIENT_LOG_LEVEL=ERROR
|
|
# Disable CRA built-in ESLint checks since we have our own config and a separate step for this
|
|
export DISABLE_ESLINT_PLUGIN=true
|
|
craco --max-old-space-size=7168 build --config craco.build.config.js
|
|
|
|
echo "build finished"
|