mirror of
https://git.launchpad.net/~vhaudiquet/+git/flutter-artifacts-proxy
synced 2026-02-12 01:25:53 +00:00
- Stop ignoring static index file - Automatically pull flutter artifacts from Launchpad - Allow nginx to list files in directories
41 lines
1.5 KiB
YAML
41 lines
1.5 KiB
YAML
# This file configures Charmcraft.
|
|
# See https://documentation.ubuntu.com/charmcraft/stable/reference/files/charmcraft-yaml-file/
|
|
type: charm
|
|
name: flutter-artifacts-proxy
|
|
title: Flutter artifacts hosting proxy
|
|
summary: A reverse proxy serving static Flutter artifacts, proxying to Google's servers by default.
|
|
description: |
|
|
Nginx reverse proxy defaulting to Google's servers, serving local files first.
|
|
|
|
This allows hosting specific Flutter artifacts that we want control over, while defaulting to Google for the rest.
|
|
|
|
This is useful for riscv64 builds of the Flutter engine, that Google does not yet host.
|
|
|
|
This charm is made for Ubuntu experimental builds of Flutter packages on riscv64.
|
|
|
|
# Documentation:
|
|
# https://documentation.ubuntu.com/charmcraft/stable/howto/build-guides/select-platforms/
|
|
base: ubuntu@22.04
|
|
platforms:
|
|
amd64:
|
|
arm64:
|
|
|
|
parts:
|
|
charm:
|
|
plugin: uv
|
|
source: .
|
|
build-snaps:
|
|
- astral-uv
|
|
|
|
flutter-3.38.9:
|
|
plugin: nil
|
|
build-packages:
|
|
- curl
|
|
override-pull: |
|
|
curl -L -O https://code.launchpad.net/~vhaudiquet/+git/flutter/+artifact/436865/+files/flutter-artifacts-riscv64.tar.gz
|
|
override-build: |
|
|
tar -C $CRAFT_PART_SRC -xzf flutter-artifacts-riscv64.tar.gz
|
|
override-prime: |
|
|
mkdir -p $CRAFT_PRIME/src/static/flutter_infra_release/flutter/587c18f873b8ab57330422bce09047420d9c7f42/
|
|
mv $CRAFT_PART_SRC/output/* $CRAFT_PRIME/src/static/flutter_infra_release/flutter/587c18f873b8ab57330422bce09047420d9c7f42/
|