From 214338ce56b90e4a9b78e7a71233179f0ad4181f Mon Sep 17 00:00:00 2001 From: krille-chan Date: Mon, 24 Jul 2023 19:39:51 +0200 Subject: [PATCH 1/2] build: Update snapcraft build info --- snap/snapcraft.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 020c840f8..30ae02b4c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,7 +1,8 @@ name: fluffychat title: FluffyChat base: core22 -adopt-info: fluffychat +version: git +license: AGPL-3.0 summary: The cutest messenger in the Matrix network description: | FluffyChat is an open source, nonprofit and cute matrix messenger app. The app is easy to use but secure and decentralized. @@ -38,7 +39,7 @@ description: | Join the community: https://matrix.to/#/#fluffychat:matrix.org Website: http://fluffychat.im - Microblog: https://metalhead.club/@krille + Microblog: https://mastodon.art/@krille grade: stable confinement: strict @@ -83,7 +84,6 @@ parts: plugin: flutter source: . override-build: | - craftctl set version=$(git describe --always --tag) set -eux flutter pub get || true flutter build linux --release -v From ee19b1f35925434788b9709ab04a685f303d13b6 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Mon, 24 Jul 2023 19:40:35 +0200 Subject: [PATCH 2/2] build: Fix dockerfile to build web app --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a2c77e812..7a696ce54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ RUN sudo apt update && sudo apt install curl -y COPY . /app WORKDIR /app RUN ./scripts/prepare-web.sh -RUN ./scripts/build-web.sh +RUN flutter pub get +RUN flutter build web --release --source-maps FROM docker.io/nginx:alpine RUN rm -rf /usr/share/nginx/html