Skip to content

Use local elinux artifacts without downloading from GitHub

Hidenori Matsubayashi edited this page May 1, 2024 · 7 revisions

Normally, this setting is unnecessary, but if you’re in China, please read this page. See also Using Flutter in China

How to use alternative server to download elinux engine artifacts

If you need to use your own artifact server instead of GitHub (pre-built images in flutter-embedded-linux repo), please use ELINUX_ENGINE_BASE_URL env. The default URL is https://github.com/sony/flutter-embedded-linux/releases, but you can override it by using this environment var.

How to Use local artifact files on Host PC

This is basically for developer in China. If you have a network connection issue when you download the artifacts, please try the following alternative way. See also https://github.com/sony/flutter-elinux/issues/191.

Download the corresponding artifacts

Downlaod the corresponding version artifacts from https://github.com/sony/flutter-embedded-linux/releases manually.

  • elinux-common.zip
  • elinux-arm64-debug.zip
  • elinux-arm64-profile.zip
  • elinux-arm64-release.zip
  • elinux-x64-debug.zip
  • elinux-x64-profile.zip
  • elinux-x64-release.zip

Set ELINUX_ENGINE_BASE_LOCAL_DIRECTORY

export ELINUX_ENGINE_BASE_LOCAL_DIRECTORY=<path_to_directory_of_downloaded_artifacts>

Run flutter commands