Skip to content

Commit

Permalink
snap: various changes to versioning and fix for strict confinement (a…
Browse files Browse the repository at this point in the history
…mber-lang#252)

* snap: set the version from the cargo file

* snap: add `bc` and fix command
  • Loading branch information
soumyaDghosh authored and Mte90 committed Jul 3, 2024
1 parent ee368d3 commit fe824e8
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: amber-bash
icon: assets/amber.png
title: Amber
base: core24
adopt-info: amber
adopt-info: amber-bash
summary: Amber the programming language compiled to bash
description: |
Programming language that compiles to Bash. It's a high level programming language that makes it easy to create shell scripts.
Expand All @@ -16,16 +16,27 @@ confinement: strict
compression: lzo

parts:
amber:
amber-bash:
plugin: rust
source: .
build-packages:
- yq
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --abbrev=10)
craftctl set version=$(cat $CRAFT_PART_SRC/Cargo.toml | tomlq -rc '.package.version')
deps:
plugin: nil
stage-packages:
- bc
prime:
- bin/bc
organize:
usr/bin: bin


apps:
amber:
amber-bash:
command: bin/amber
plugs:
- home
Expand Down

0 comments on commit fe824e8

Please sign in to comment.