2022-12-09 13:10:59 +00:00
|
|
|
#!/bin/bash
|
2020-02-27 11:25:55 +00:00
|
|
|
|
2021-02-03 05:32:00 +00:00
|
|
|
set -e
|
|
|
|
|
|
2020-03-17 15:01:20 +00:00
|
|
|
GIT_SHA=$(eval git rev-parse HEAD)
|
|
|
|
|
echo $GIT_SHA
|
2020-12-11 11:40:05 +00:00
|
|
|
echo "Sentry Auth Token: $SENTRY_AUTH_TOKEN"
|
|
|
|
|
|
2023-04-18 08:40:11 +00:00
|
|
|
if [ "$REACT_APP_AIRGAP_ENABLED" == "true" ]; then
|
|
|
|
|
echo "Building for airgapped Appsmith instances"
|
2023-05-11 13:05:32 +00:00
|
|
|
node download-assets.js;
|
2023-04-18 08:40:11 +00:00
|
|
|
else
|
|
|
|
|
echo "Building for non-airgapped Appsmith instances"
|
|
|
|
|
fi
|
|
|
|
|
|
2023-03-03 06:47:35 +00:00
|
|
|
# build cra app
|
2023-05-11 05:26:03 +00:00
|
|
|
export REACT_APP_SENTRY_RELEASE=$GIT_SHA
|
|
|
|
|
export REACT_APP_CLIENT_LOG_LEVEL=ERROR
|
2023-06-30 09:45:07 +00:00
|
|
|
# Disable CRA built-in ESLint checks since we have our own config and a separate step for this
|
|
|
|
|
export DISABLE_ESLINT_PLUGIN=true
|
2024-07-31 09:53:08 +00:00
|
|
|
craco --max-old-space-size=7168 build --config craco.build.config.js
|
2020-03-04 07:13:38 +00:00
|
|
|
|
2020-10-21 04:25:32 +00:00
|
|
|
echo "build finished"
|