Repository: flutter
Issue: Prebuilt artifacts for linux-arm64 contain an x86-64 frontend_server_aot.dart.snapshot
Labels: engine,platform-linux,a: build,P2,platform-host-arm,platform-target-arm,team-engine,triaged-engine

### Steps to reproduce

1. try using [meta-flutter](https://github.com/meta-flutter/meta-flutter) to build Flutter apps for a linux arm64 target on an arm64 host
2. at some point, flutter-sdk_git.bb downloads https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.2-stable.tar.xz (but the same appies to https://storage.googleapis.com/flutter_infra_release/flutter/a6bd3f1de158bb61090e0c8053df93a10cb548e1/linux-arm64/artifacts.zip)

### Actual results

inside the archive, bin/cache/artifacts/engine/linux-x64/frontend_server_aot.dart.snapshot is in the wrong architecture:

```
file flutter/bin/cache/artifacts/engine/linux-x64/frontend_server_aot.dart.snapshot 
flutter/bin/cache/artifacts/engine/linux-x64/frontend_server_aot.dart.snapshot: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[md5/uuid]=7d7673e2df1d68aa1222110aef3343b6, with debug_info, not stripped
```
This prevents building flutter apps on the host.

The archive for 3.24.3 has the same problem.

### Logs

_No response_

### Flutter Doctor output

<details open>
<summary>Doctor output</summary>

```console
[!] Flutter (Channel stable, 3.24.2, on Ubuntu 22.04.5 LTS 5.15.0-122-generic, locale en_US.UTF-8)
    • Flutter version 3.24.2 on channel stable at
      /home/simone/yocto/kirkstone/build/tmp/sysroots-components/aarch64/flutter-sdk-native/usr/share/flutter/sdk
    ! The flutter binary is not on your path. Consider adding
      /home/simone/yocto/kirkstone/build/tmp/sysroots-components/aarch64/flutter-sdk-native/usr/share/flutter/sdk/bin to your path.
    ! The dart binary is not on your path. Consider adding
      /home/simone/yocto/kirkstone/build/tmp/sysroots-components/aarch64/flutter-sdk-native/usr/share/flutter/sdk/bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cf269e36d (5 weeks ago), 2024-09-03 14:30:00 -0700
    • Engine revision a6bd3f1de1
    • Dart version 3.5.2
    • DevTools version 2.37.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and
      upgrades.

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1.1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-arm64 • Ubuntu 22.04.5 LTS 5.15.0-122-generic

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 4 categories.

</details>