Skip to content

Commit

Permalink
Merge pull request #57 from ngrok/pr/generated-7603d2bc78
Browse files Browse the repository at this point in the history
Updates snap template
  • Loading branch information
dthomasngrokker authored Jan 30, 2025
2 parents 9d75267 + 240b389 commit 828bec7
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,44 @@

name: ngrok
adopt-info: ngrok
summary: ngrok secure introspectable tunnels to localhost.
description: ngrok is a secure ingress platform that enables developers to add global server load balancing, reverse proxy, firewall, API gateway and Kubernetes Ingress to applications and APIs.

base: core20
grade: devel
base: core22 # Ubuntu 22.04 LTS
grade: stable
confinement: strict

architectures:
- build-on: amd64
- build-on: i386
- build-on: armhf
- build-on: arm64
- build-on: s390x
- build-on: ppc64le
architectures: # github actions uses amd64 as host architecture
- build-on: [amd64]
build-for: amd64
- build-on: [amd64, i386]
build-for: i386
- build-on: [amd64, armhf]
build-for: armhf
- build-on: [amd64, arm64]
build-for: arm64
- build-on: [amd64, s390x]
build-for: s390x

parts:
ngrok:
plugin: dump
plugin: dump # used for unpacking the zip files
source:
- on amd64: https://bin.equinox.io/a/cp4zbqoWWC1/ngrok-v3-3.19.1-linux-amd64.zip
- on i386: https://bin.equinox.io/a/7RDEFXtBbAj/ngrok-v3-3.19.1-linux-386.zip
- on armhf: https://bin.equinox.io/a/fB2XkincXBG/ngrok-v3-3.19.1-linux-arm.zip
- on arm64: https://bin.equinox.io/a/96AhmnoTXuz/ngrok-v3-3.19.1-linux-arm64.zip
- on s390x: https://bin.equinox.io/a/kLoGADrsu9d/ngrok-v3-3.19.1-linux-s390x.zip
- on ppc64le: https://bin.equinox.io/a/5U2LkSwxSBr/ngrok-v3-3.19.1-linux-ppc64le.zip
override-pull: |
snapcraftctl pull
snapcraftctl set-version $(./ngrok --version | cut -d " " -f 3)
- on amd64 to amd64: https://bin.equinox.io/a/cp4zbqoWWC1/ngrok-v3-3.19.1-linux-amd64.zip
- on amd64 to i386: https://bin.equinox.io/a/7RDEFXtBbAj/ngrok-v3-3.19.1-linux-386.zip
- on amd64 to armhf: https://bin.equinox.io/a/fB2XkincXBG/ngrok-v3-3.19.1-linux-arm.zip
- on amd64 to arm64: https://bin.equinox.io/a/96AhmnoTXuz/ngrok-v3-3.19.1-linux-arm64.zip
- on amd64 to s390x: https://bin.equinox.io/a/kLoGADrsu9d/ngrok-v3-3.19.1-linux-s390x.zip
override-pull:
| # pwd is the part's source directory in parts/<part name>/src/
craftctl default
craftctl set version=3.19.1

plugs:
ngrok-config:
interface: personal-files
write:
- $HOME/.ngrok2
- $HOME/.ngrok2

apps:
ngrok:
Expand Down

0 comments on commit 828bec7

Please sign in to comment.