mirror of
https://git.launchpad.net/~vhaudiquet/+git/flutter-artifacts-proxy
synced 2026-03-04 11:25:54 +00:00
59 lines
2.1 KiB
YAML
59 lines
2.1 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:
|
|
|
|
requires:
|
|
ingress:
|
|
interface: ingress
|
|
limit: 1
|
|
optional: true
|
|
|
|
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/
|
|
|
|
flutter-3.41.2:
|
|
plugin: nil
|
|
build-packages:
|
|
- curl
|
|
override-pull: |
|
|
curl -L -O https://code.launchpad.net/~vhaudiquet/+git/flutter/+artifact/445409/+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/6c0baaebf70e0148f485f27d5616b3d3382da7bf/
|
|
mv $CRAFT_PART_SRC/output/* $CRAFT_PRIME/src/static/flutter_infra_release/flutter/6c0baaebf70e0148f485f27d5616b3d3382da7bf/
|