Skip to content

Commit

Permalink
Fix snap config
Browse files Browse the repository at this point in the history
  • Loading branch information
terricain committed Dec 4, 2024
1 parent 1b010fa commit 56f476c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ certbot-dns*/certbot-dns*_arm*.txt
/certbot_arm*.txt
certbot-dns*/snap
certbot-dns-azure_*.txt
snapcraft-certbot-dns-azure-*.txt
15 changes: 8 additions & 7 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ adopt-info: certbot-dns-azure
environment:
PYTHONPATH: "$SNAP/lib/python3.12/site-packages:${PYTHONPATH}"

architectures:
- build-on: arm64
- build-on: amd64
platforms:
arm64:
amd64:

parts:
certbot-dns-azure:
plugin: python
source: .
override-pull: |
snapcraftctl pull
snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"`
craftctl default
craftctl set version=`grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"`
build-environment:
- SNAP_BUILD: "True"
requirements:
python-requirements:
- snap-requirements.txt
build-packages:
- gcc
Expand All @@ -39,7 +40,7 @@ parts:
source: .
stage: [setup.py, certbot-shared]
override-pull: |
snapcraftctl pull
craftctl default
mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared
slots:
certbot:
Expand Down

0 comments on commit 56f476c

Please sign in to comment.