build: Follow up vodozemac snap
This commit is contained in:
parent
00c0492574
commit
04839a5b60
1 changed files with 33 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
name: fluffychat
|
name: fluffychat
|
||||||
title: FluffyChat
|
title: FluffyChat
|
||||||
base: core24
|
base: core24
|
||||||
version: git
|
version: 1.27.0
|
||||||
license: AGPL-3.0
|
license: AGPL-3.0
|
||||||
summary: The cutest messenger in the Matrix network
|
summary: The cutest messenger in the Matrix network
|
||||||
description: |
|
description: |
|
||||||
|
|
@ -51,21 +51,48 @@ platforms:
|
||||||
build-on: arm64
|
build-on: arm64
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
|
flutter-git:
|
||||||
|
source: https://github.com/flutter/flutter.git
|
||||||
|
source-tag: 3.32.2
|
||||||
|
source-depth: 1
|
||||||
|
plugin: nil
|
||||||
|
override-build: |
|
||||||
|
mkdir -p $CRAFT_PART_INSTALL/usr/bin
|
||||||
|
mkdir -p $CRAFT_PART_INSTALL/usr/libexec
|
||||||
|
cp -r $CRAFT_PART_SRC $CRAFT_PART_INSTALL/usr/libexec/flutter
|
||||||
|
ln -s $CRAFT_PART_INSTALL/usr/libexec/flutter/bin/flutter $CRAFT_PART_INSTALL/usr/bin/flutter
|
||||||
|
ln -s $SNAPCRAFT_PART_INSTALL/usr/libexec/flutter/bin/dart $SNAPCRAFT_PART_INSTALL/usr/bin/dart
|
||||||
|
$CRAFT_PART_INSTALL/usr/bin/flutter doctor
|
||||||
|
build-packages:
|
||||||
|
- clang
|
||||||
|
- cmake
|
||||||
|
- curl
|
||||||
|
- libgtk-3-dev
|
||||||
|
- ninja-build
|
||||||
|
- unzip
|
||||||
|
- xz-utils
|
||||||
|
- zip
|
||||||
|
override-prime: ''
|
||||||
|
|
||||||
fluffychat:
|
fluffychat:
|
||||||
plugin: flutter
|
after: [flutter-git]
|
||||||
|
plugin: nil
|
||||||
source: .
|
source: .
|
||||||
override-build: |
|
override-build: |
|
||||||
# Workaround for Flutter build error:
|
# Workaround for Flutter build error:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
craftctl default
|
|
||||||
|
flutter build linux --release -v
|
||||||
|
mkdir -p $CRAFT_PART_INSTALL/bin/
|
||||||
|
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
|
||||||
build-packages:
|
build-packages:
|
||||||
- libsecret-1-dev
|
- libsecret-1-dev
|
||||||
- libjsoncpp-dev
|
- libjsoncpp-dev
|
||||||
- libssl-dev
|
- libssl-dev
|
||||||
- curl
|
- curl
|
||||||
- libpciaccess-dev
|
- libpciaccess-dev
|
||||||
- cargo
|
build-snaps:
|
||||||
- rustc
|
- rustup
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libsecret-1-0
|
- libsecret-1-0
|
||||||
- libjsoncpp25
|
- libjsoncpp25
|
||||||
|
|
@ -79,7 +106,7 @@ slots:
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
fluffychat:
|
fluffychat:
|
||||||
command: fluffychat
|
command: bin/fluffychat
|
||||||
extensions: [ gnome ]
|
extensions: [ gnome ]
|
||||||
plugs:
|
plugs:
|
||||||
- audio-playback
|
- audio-playback
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue