build: Revert build snapcraft changes

pull/1492/head
krille-chan 8 months ago
parent 12bb71708e
commit d8cf6dfb13
No known key found for this signature in database

@ -80,26 +80,3 @@ jobs:
bundle update fastlane bundle update fastlane
bundle exec fastlane deploy_internal_test bundle exec fastlane deploy_internal_test
cd .. cd ..
deploy_snapcraft:
strategy:
matrix:
arch: [ x64, arm64 ]
runs-on: ${{ matrix.arch == 'arm64' && 'self-hosted' || 'ubuntu-latest'}}
steps:
- uses: actions/checkout@v4
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install git wget curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 libssl-dev libwebkit2gtk-4.1-dev -y
- name: Install Flutter
run: |
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git
./flutter/bin/flutter doctor
- run: ./flutter/bin/flutter pub get
- run: ./flutter/bin/flutter build linux --target-platform linux-${{ matrix.arch }} --release
- run: mv ./build/linux/${{ matrix.arch }}/release ./build/linux/
- uses: snapcore/action-build@v1
id: build
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}

@ -3,10 +3,6 @@ title: FluffyChat
base: core24 base: core24
version: git version: git
license: AGPL-3.0 license: AGPL-3.0
website: https://fluffychat.im
source-code: https://github.com/krille-chan/fluffychat
issues: https://github.com/krille-chan/fluffychat/issues
donation: https://ko-fi.com/krille
summary: The cutest messenger in the Matrix network summary: The cutest messenger in the Matrix network
description: | description: |
FluffyChat is an open source, nonprofit and cute matrix messenger app. The app is easy to use but secure and decentralized. FluffyChat is an open source, nonprofit and cute matrix messenger app. The app is easy to use but secure and decentralized.
@ -71,14 +67,20 @@ parts:
- zenity-integration - zenity-integration
fluffychat: fluffychat:
plugin: dump plugin: flutter
source: ./build/linux/release source: .
source-type: local override-build: |
# Workaround for Flutter build error:
rm -rf build
craftctl default
build-packages:
- libjsoncpp-dev
- curl
stage-packages: stage-packages:
- libsecret-1-dev - libsecret-1-dev
- libjsoncpp-dev - libjsoncpp-dev
- libssl-dev - libssl-dev
- libwebkit2gtk-4.1-dev #- libwebkit2gtk-4.1-dev
slots: slots:
dbus-svc: dbus-svc:

Loading…
Cancel
Save