mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
91 lines
3.6 KiB
YAML
91 lines
3.6 KiB
YAML
# Generated by flutpak — https://github.com/o-murphy/flutpak
|
|
#
|
|
# This is your editable TEMPLATE manifest — commit it to git.
|
|
# Run "flutpak generate" on every build to produce the final output in generated/.
|
|
#
|
|
# SAFE TO EDIT finish-args, build-commands, build-options, sdk-extensions, modules
|
|
# AUTO-INJECTED tag, commit, modules, manifest.sources, pubspec-sources.json, and patches are set/appended by generate
|
|
app-id: de.wger.flutter
|
|
runtime: org.freedesktop.Platform
|
|
# See https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/wikis/Releases
|
|
# for deprecation and release dates
|
|
runtime-version: '26.08'
|
|
sdk: org.freedesktop.Sdk
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Extension.llvm22
|
|
command: wger
|
|
separate-locales: false
|
|
finish-args:
|
|
- --share=ipc
|
|
- --socket=fallback-x11
|
|
- --socket=wayland
|
|
- --device=dri
|
|
- --share=network
|
|
- --socket=pulseaudio
|
|
# See https://github.com/fluttercommunity/plus_plugins/issues/1241
|
|
# on why this might need to go in the future
|
|
- --system-talk-name=org.freedesktop.NetworkManager
|
|
# Secret Service access for flutter_secure_storage (libsecret): without
|
|
# this the JWT refresh token can never be persisted and the session
|
|
# breaks once the access token expires
|
|
- --talk-name=org.freedesktop.secrets
|
|
cleanup:
|
|
- /var/lib
|
|
modules:
|
|
# Required by flutter_secure_storage_linux, not provided by the bare
|
|
# org.freedesktop.Platform runtime, remove if that changes
|
|
- name: libsecret
|
|
buildsystem: meson
|
|
config-opts:
|
|
- -Dgtk_doc=false
|
|
- -Dintrospection=false
|
|
- -Dvapi=false
|
|
- -Dmanpage=false
|
|
cleanup:
|
|
- /bin
|
|
- /include
|
|
- /lib/pkgconfig
|
|
- /share/gir-1.0
|
|
- /share/man
|
|
sources:
|
|
- type: archive
|
|
url: https://download.gnome.org/sources/libsecret/0.21/libsecret-0.21.7.tar.xz
|
|
sha256: 6b452e4750590a2b5617adc40026f28d2f4903de15f1250e1d1c40bfd68ed55e
|
|
|
|
# flutpak looks the app module up by the last segment of the app-id
|
|
- name: flutter
|
|
buildsystem: simple
|
|
build-options:
|
|
arch:
|
|
x86_64:
|
|
env:
|
|
BUNDLE_PATH: build/linux/x64/release/bundle
|
|
aarch64:
|
|
env:
|
|
BUNDLE_PATH: build/linux/arm64/release/bundle
|
|
# flutter_secure_storage_linux 3.0.x seems to have a cold-keyring memory bug
|
|
# that the freedesktop SDK's branch-protection (PAC/BTI) turns into a SIGILL
|
|
# on aarch64. Disable it so the failure stays a catchable KeyringLocked
|
|
# (-mbranch-protection is invalid on x86_64.)
|
|
cflags: -mbranch-protection=none
|
|
cxxflags: -mbranch-protection=none
|
|
append-path: /usr/lib/sdk/llvm22/bin:/var/lib/flutter/bin
|
|
prepend-ld-library-path: /usr/lib/sdk/llvm22/lib
|
|
env:
|
|
PUB_CACHE: /run/build/flutter/.pub-cache
|
|
build-commands:
|
|
- flutter pub get --offline
|
|
- flutter build linux --release --no-pub
|
|
- install -D $BUNDLE_PATH/wger /app/bin/wger
|
|
- cp -r $BUNDLE_PATH/lib /app/bin/lib
|
|
- cp -r $BUNDLE_PATH/data /app/bin/data
|
|
- install -Dm644 flatpak/de.wger.flutter.metainfo.xml /app/share/metainfo/de.wger.flutter.metainfo.xml
|
|
- install -Dm644 flatpak/de.wger.flutter.desktop /app/share/applications/de.wger.flutter.desktop
|
|
- install -Dm644 flatpak/logo64.png /app/share/icons/hicolor/64x64/apps/de.wger.flutter.png
|
|
- install -Dm644 flatpak/logo128.png /app/share/icons/hicolor/128x128/apps/de.wger.flutter.png
|
|
- install -Dm644 flatpak/logo256.png /app/share/icons/hicolor/256x256/apps/de.wger.flutter.png
|
|
- install -Dm644 flatpak/logo512.png /app/share/icons/hicolor/512x512/apps/de.wger.flutter.png
|
|
sources:
|
|
- type: git
|
|
url: https://github.com/wger-project/flutter
|