feat: add artifact_proxy server (#222)

This commit is contained in:
Eric Seidel
2023-04-05 20:52:17 -07:00
committed by GitHub
parent efe6477425
commit 378b2df4b3
14 changed files with 798 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
# Artifact Proxy
This is a tool for proxying Flutter artifacts from a derived Flutter engine
revision back to the base Flutter engine revision. This is useful for
when you need to modify _some_ of the Flutter artifacts but not all of them.
This is a development tool which map requests to Google
Storage (either Shorebird's bucket or the official Flutter buckets).
## Usage
Uses `config.yaml` to configure the engine revisions and artifact overrides.
```bash
# Run locally with hot-reload enabled.
DEV=true dart --enable-vm-service run bin/server.dart
```
And then in a separate terminal:
```
FLUTTER_STORAGE_BASE_URL=http://localhost:8080 flutter precache -a
```
You should use a separate checkout of Flutter when running this, so you don't
poison the cache of your main Flutter checkout.