File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5353
5454# Fix Flutter SDK version for Apple Silicon
5555FLUTTER_BUILD_OS=$FLUTTER_OS
56- if [[ $OS == " macos" && $ARCH == " arm64" ]]; then
56+ if [[ $FLUTTER_OS == " macos" && $FLUTTER_ARCH == " arm64" ]]; then
5757 if [[ $FLUTTER_VERSION < 3.* ]]; then
5858 echo -e " ::error::Flutter SDK version \" ${FLUTTER_VERSION} \" is not supported on Apple Silicon. Please use version 3.0.0 or higher."
5959 exit 1
@@ -108,7 +108,7 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
108108
109109 # Extracting installation archive
110110 echo -n " Extracting Flutter SDK archive..."
111- if [[ $OS == linux ]]
111+ if [[ $FLUTTER_OS == linux ]]
112112 then
113113 tar -C " ${FLUTTER_RUNNER_TOOL_CACHE} " -xf ${FLUTTER_BUILD_ARTIFACT_FILE} > /dev/null
114114 EXTRACT_ARCHIVE_CODE=$?
@@ -123,7 +123,7 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
123123 exit 1
124124 fi
125125else
126- echo " Flutter SDK version restored from cache: ${FLUTTER_VERSION} (${FLUTTER_CHANNEL} ) on \" ${FLUTTER_OS} _${ARCH } \" "
126+ echo " Flutter SDK version restored from cache: ${FLUTTER_VERSION} (${FLUTTER_CHANNEL} ) on \" ${FLUTTER_OS} _${FLUTTER_ARCH } \" "
127127fi
128128
129129# Configure pub to use a fixed location.
You can’t perform that action at this time.
0 commit comments