From 5a346c0a921242b9ab865d0934cbe6c25ab82f6b Mon Sep 17 00:00:00 2001 From: Felicitas Pojtinger Date: Tue, 23 Jul 2024 19:09:57 -0700 Subject: [PATCH] docs: Add note on how to run the project with GNOME builder Signed-off-by: Felicitas Pojtinger --- README.md | 2 +- com.pojtinger.felicitas.Multiplex.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e264db..e1f0be9 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ $ go generate ./... # Also see https://github.com/dennwc/flatpak-go-mod for upda $ go run . ``` -You can also open the project in [GNOME Builder](https://flathub.org/apps/org.gnome.Builder) and run it by clicking the play button in the header bar. +You can also open the project in [GNOME Builder](https://flathub.org/apps/org.gnome.Builder) and run it by clicking the play button in the header bar. Note that GNOME Builder doesn't automatically download the sources specified in [go.mod.json](./go.mod.json), so you need to either run `go mod vendor` manually or copy the contents of [go.mod.json](./go.mod.json) into the `.modules[] | select(.name == "multiplex") | .sources` field of [com.pojtinger.felicitas.Multiplex.json](./com.pojtinger.felicitas.Multiplex.json). ## License diff --git a/com.pojtinger.felicitas.Multiplex.json b/com.pojtinger.felicitas.Multiplex.json index 62ca2e4..9605ed2 100644 --- a/com.pojtinger.felicitas.Multiplex.json +++ b/com.pojtinger.felicitas.Multiplex.json @@ -34,7 +34,7 @@ "buildsystem": "simple", "build-commands": [ "mkdir -p vendor && cp modules.txt vendor/modules.txt", - ". /usr/lib/sdk/golang/enable.sh && export GOBIN=\"/app/bin\" && go mod vendor && go generate ./... && go install -v -mod=vendor .", + ". /usr/lib/sdk/golang/enable.sh && export GOBIN=\"/app/bin\" && go generate ./... && go install -v -mod=vendor .", "desktop-file-install --dir=/app/share/applications $FLATPAK_ID.desktop", "install -D -m 0644 internal/resources/$FLATPAK_ID.metainfo.xml /app/share/metainfo/$FLATPAK_ID.metainfo.xml", "for icon in 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512; do install -D -m 0644 docs/icon-${icon}.png /app/share/icons/hicolor/${icon}/apps/$FLATPAK_ID.png; done"