Skip to content

Commit

Permalink
build: Explicitly vendor modules before installing for out-of-the-box…
Browse files Browse the repository at this point in the history
… GNOME Builder support

Signed-off-by: Felicitas Pojtinger <[email protected]>
  • Loading branch information
pojntfx committed Jul 24, 2024
1 parent ed42df7 commit 476d59d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 525 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.flatpak-builder
build-dir
vendor
*.compiled
*.gresource
*.ui
Expand Down
2 changes: 1 addition & 1 deletion com.pojtinger.felicitas.Multiplex.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 generate ./... && go install -v -mod=vendor .",
". /usr/lib/sdk/golang/enable.sh && export GOBIN=\"/app/bin\" && go mod vendor && 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"
Expand Down
Loading

0 comments on commit 476d59d

Please sign in to comment.