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:
|
build-packages:
|
||||||
- g++
|
- 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:
|
fluffychat:
|
||||||
after: [ flutter-git ]
|
plugin: flutter
|
||||||
plugin: nil
|
|
||||||
source: .
|
source: .
|
||||||
override-build: |
|
override-build: |
|
||||||
flutter pub get || true
|
# Workaround for Flutter build error:
|
||||||
flutter build linux --release -v
|
rm -rf build
|
||||||
mkdir -p $CRAFT_PART_INSTALL/bin
|
craftctl default
|
||||||
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
|
||||||
- jq
|
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libsecret-1-0
|
- libsecret-1-0
|
||||||
- libjsoncpp25
|
- libjsoncpp25
|
||||||
|
|
@ -108,7 +85,7 @@ slots:
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
fluffychat:
|
fluffychat:
|
||||||
command: bin/fluffychat
|
command: fluffychat
|
||||||
extensions: [ gnome ]
|
extensions: [ gnome ]
|
||||||
plugs:
|
plugs:
|
||||||
- audio-playback
|
- audio-playback
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue