Skip to content

Commit

Permalink
FIX: make plugin for snapcraft.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ram-pi authored Aug 21, 2024
1 parent a26397a commit 3531e05
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ summary: Random data generator
description: |
Command line generator of random data.
architectures:
- build-on: amd64
- build-on: arm64

grade: stable
confinement: strict

Expand All @@ -18,15 +22,22 @@ apps:

parts:
jr:
plugin: go
plugin: make
source-type: git
source-branch: main
source-tag: v0.3.8
source: https://github.com/jrnd-io/jr
build-snaps: [go/1.22/stable]
disable-parallel: true
override-build: |-
make
sed -i 's|USER=$(shell id -u -n)|USER=snapcraft|g' Makefile
make all
install -DT "./build/jr" "$SNAPCRAFT_PART_INSTALL/bin/jr"
jr-copy-files-templates:
plugin: dump
source-type: git
source-tag: v0.3.8
source: https://github.com/jrnd-io/jr
source-subdir: "templates"
organize:
Expand All @@ -35,5 +46,6 @@ parts:
jr-copy-files-config:
plugin: dump
source-type: git
source-tag: v0.3.8
source: https://github.com/jrnd-io/jr
source-subdir: "config"

0 comments on commit 3531e05

Please sign in to comment.