Revert "build: Install flutter via git in snapcraft"
This reverts commit cd12f773fe.
This commit is contained in:
parent
d8c2fca484
commit
fe390ca09b
1 changed files with 5 additions and 28 deletions
|
|
@ -61,41 +61,18 @@ parts:
|
|||
build-packages:
|
||||
- g++
|
||||
|
||||
flutter-git:
|
||||
source: https://github.com/flutter/flutter.git
|
||||
source-tag: 3.29.2
|
||||
plugin: nil
|
||||
override-build: |
|
||||
set -eux
|
||||
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 -sf $CRAFT_PART_INSTALL/usr/libexec/flutter/bin/flutter $CRAFT_PART_INSTALL/usr/bin/flutter
|
||||
export PATH="$CRAFT_PART_INSTALL/usr/bin:$PATH"
|
||||
flutter doctor
|
||||
build-packages:
|
||||
- clang
|
||||
- cmake
|
||||
- curl
|
||||
- ninja-build
|
||||
- unzip
|
||||
override-prime: ''
|
||||
|
||||
fluffychat:
|
||||
after: [ flutter-git ]
|
||||
plugin: nil
|
||||
plugin: flutter
|
||||
source: .
|
||||
override-build: |
|
||||
flutter pub get || true
|
||||
flutter build linux --release -v
|
||||
mkdir -p $CRAFT_PART_INSTALL/bin
|
||||
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
|
||||
# Workaround for Flutter build error:
|
||||
rm -rf build
|
||||
craftctl default
|
||||
build-packages:
|
||||
- libsecret-1-dev
|
||||
- libjsoncpp-dev
|
||||
- libssl-dev
|
||||
- curl
|
||||
- jq
|
||||
stage-packages:
|
||||
- libsecret-1-0
|
||||
- libjsoncpp25
|
||||
|
|
@ -108,7 +85,7 @@ slots:
|
|||
|
||||
apps:
|
||||
fluffychat:
|
||||
command: bin/fluffychat
|
||||
command: fluffychat
|
||||
extensions: [ gnome ]
|
||||
plugs:
|
||||
- audio-playback
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue