@@ -32,10 +32,7 @@ if [ -f "$FLUTTER_RELEASE_MANIFEST_FILE" ]; then
32
32
if [[ $FLUTTER_VERSION == " latest" ]]
33
33
then
34
34
FLUTTER_RELEASE_CURRENT=$( jq -r " .current_release.${FLUTTER_CHANNEL} " " $FLUTTER_RELEASE_MANIFEST_FILE " )
35
- __QUERY=" select(.hash == \" ${FLUTTER_RELEASE_CURRENT} \" )"
36
- if [[ $ARCH == " arm64" ]]; then
37
- __QUERY=" select(.hash == \" ${FLUTTER_RELEASE_CURRENT} \" and .dart_sdk_arch == \" ${ARCH} \" )"
38
- fi
35
+ __QUERY=" select(.hash == \" ${FLUTTER_RELEASE_CURRENT} \" and .dart_sdk_arch == \" ${ARCH} \" )"
39
36
FLUTTER_RELEASE_VERSION=$( jq -r " .releases | map(${__QUERY} ) | .[0].version" " $FLUTTER_RELEASE_MANIFEST_FILE " )
40
37
FLUTTER_RELEASE_SHA256=$( jq -r " .releases | map(${__QUERY} ) | .[0].sha256" " $FLUTTER_RELEASE_MANIFEST_FILE " )
41
38
FLUTTER_RELEASE_ARCHIVE=$( jq -r " .releases | map(${__QUERY} ) | .[0].archive" " $FLUTTER_RELEASE_MANIFEST_FILE " )
@@ -44,16 +41,19 @@ if [ -f "$FLUTTER_RELEASE_MANIFEST_FILE" ]; then
44
41
FLUTTER_VERSION=$FLUTTER_RELEASE_VERSION
45
42
FLUTTER_DOWNLOAD_URL=" ${FLUTTER_RELEASE_BASE_URL} /${FLUTTER_RELEASE_ARCHIVE} "
46
43
else
47
- __QUERY=" select(.version == \" ${FLUTTER_VERSION} \" )"
48
- if [[ $ARCH == " arm64" ]]; then
49
- __QUERY=" select(.version == \" ${FLUTTER_VERSION} \" and .dart_sdk_arch == \" ${ARCH} \" )"
50
- fi
44
+ __QUERY=" select(.version == \" ${FLUTTER_VERSION} \" and .dart_sdk_arch == \" ${ARCH} \" )"
51
45
FLUTTER_RELEASE_SHA256=$( jq -r " .releases | map(${__QUERY} ) | .[0].sha256" " $FLUTTER_RELEASE_MANIFEST_FILE " )
52
46
FLUTTER_RELEASE_ARCHIVE=$( jq -r " .releases | map(${__QUERY} ) | .[0].archive" " $FLUTTER_RELEASE_MANIFEST_FILE " )
53
47
54
48
# Set the detected version
49
+ FLUTTER_RELEASE_VERSION=$FLUTTER_VERSION
55
50
FLUTTER_DOWNLOAD_URL=" ${FLUTTER_RELEASE_BASE_URL} /${FLUTTER_RELEASE_ARCHIVE} "
56
51
fi
52
+
53
+ # Debug information
54
+ echo " ::debug::FLUTTER_RELEASE_VERSION=$FLUTTER_RELEASE_VERSION "
55
+ echo " ::debug::FLUTTER_RELEASE_SHA256=$FLUTTER_RELEASE_SHA256 "
56
+ echo " ::debug::FLUTTER_RELEASE_ARCHIVE=$FLUTTER_RELEASE_ARCHIVE "
57
57
else
58
58
echo -e " ::warning::Flutter SDK release manifest not found. Switched to using default fallback download strategy."
59
59
fi
0 commit comments