Skip to content

Commit

Permalink
feat: add stripe/stripe-cli (#23253)
Browse files Browse the repository at this point in the history
* feat(stripe/stripe-cli): scaffold stripe/stripe-cli

* fix(stripe/stripe-cli): fix settings of stripe v1.5.10

* refactor(stripe/stripe-cli): fix replacements

* refactor(stripe/stripe-cli): fix replacements

* fix(stripe/stripe-cli): support windows/arm64

* refactor(stripe/stripe-cli): merge duplicated version_overrides
  • Loading branch information
suzuki-shunsuke authored May 24, 2024
1 parent 74cdaed commit 810bb2c
Show file tree
Hide file tree
Showing 3 changed files with 415 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkgs/stripe/stripe-cli/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
packages:
- name: stripe/[email protected]
- name: stripe/stripe-cli
version: v1.13.2
- name: stripe/stripe-cli
version: v1.13.1
- name: stripe/stripe-cli
version: v1.12.3
- name: stripe/stripe-cli
version: v1.7.7
- name: stripe/stripe-cli
version: v1.7.6
- name: stripe/stripe-cli
version: v1.7.5
- name: stripe/stripe-cli
version: v1.7.4
- name: stripe/stripe-cli
version: v1.7.2
- name: stripe/stripe-cli
version: v1.7.1
- name: stripe/stripe-cli
version: v1.5.10
- name: stripe/stripe-cli
version: v1.5.9
- name: stripe/stripe-cli
version: v0.8.2
195 changes: 195 additions & 0 deletions pkgs/stripe/stripe-cli/registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
packages:
- type: github_release
repo_owner: stripe
repo_name: stripe-cli
description: A command-line tool for Stripe
files:
- name: stripe
version_constraint: "false"
version_overrides:
- version_constraint: Version == "v1.5.10"
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
rosetta2: true
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: mac-os
checksum:
type: github_release
asset: stripe-{{.OS}}-checksums.txt
algorithm: sha256
overrides:
- goos: darwin
checksum:
type: github_release
asset: stripe-checksums.txt
algorithm: sha256
- goos: windows
format: zip
supported_envs:
- darwin
- windows
- amd64
- version_constraint: Version == "v1.7.2"
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
rosetta2: true
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: mac
checksum:
type: github_release
asset: stripe-{{.OS}}-checksums.txt
algorithm: sha256
overrides:
- goos: darwin
asset: stripe_{{trimV .Version}}_{{.OS}}-os_{{.Arch}}.{{.Format}}
- goos: windows
format: zip
supported_envs:
- darwin
- windows
- amd64
- version_constraint: Version == "v1.7.5"
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: zip
windows_arm_emulation: true
replacements:
amd64: x86_64
checksum:
type: github_release
asset: stripe-{{.OS}}-checksums.txt
algorithm: sha256
overrides:
- goos: linux
format: tar.gz
supported_envs:
- linux/amd64
- windows
- version_constraint: Version == "v1.7.6"
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: mac
checksum:
type: github_release
asset: stripe-{{.OS}}-checksums.txt
algorithm: sha256
overrides:
- goos: darwin
asset: stripe_{{trimV .Version}}_{{.OS}}-os_{{.Arch}}.{{.Format}}
- goos: windows
format: zip
supported_envs:
- darwin
- windows
- amd64
- version_constraint: Version == "v1.7.7"
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: zip
windows_arm_emulation: true
replacements:
amd64: x86_64
checksum:
type: github_release
asset: stripe-{{.OS}}-checksums.txt
algorithm: sha256
overrides:
- goos: linux
format: tar.gz
supported_envs:
- linux/amd64
- windows
- version_constraint: Version == "v1.13.2"
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: zip
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: mac
checksum:
type: github_release
asset: stripe-{{.OS}}-checksums.txt
algorithm: sha256
overrides:
- goos: darwin
format: tar.gz
asset: stripe_{{trimV .Version}}_{{.OS}}-os_{{.Arch}}.{{.Format}}
supported_envs:
- darwin
- windows
- version_constraint: semver("<= 0.8.2")
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
rosetta2: true
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: mac-os
checksum:
type: github_release
asset: stripe-checksums.txt
algorithm: sha256
supported_envs:
- darwin
- windows
- amd64
- version_constraint: semver("<= 1.5.9")
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
rosetta2: true
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: mac-os
checksum:
type: github_release
asset: stripe-checksums.txt
algorithm: sha256
overrides:
- goos: windows
format: zip
supported_envs:
- darwin
- windows
- amd64
- version_constraint: semver("<= 1.12.3")
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: mac
checksum:
type: github_release
asset: stripe-{{.OS}}-checksums.txt
algorithm: sha256
overrides:
- goos: darwin
asset: stripe_{{trimV .Version}}_{{.OS}}-os_{{.Arch}}.{{.Format}}
- goos: windows
format: zip
supported_envs:
- darwin
- windows
- amd64
- version_constraint: "true"
asset: stripe_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: mac
checksum:
type: github_release
asset: stripe-{{.OS}}-checksums.txt
algorithm: sha256
overrides:
- goos: darwin
asset: stripe_{{trimV .Version}}_{{.OS}}-os_{{.Arch}}.{{.Format}}
- goos: windows
format: zip
Loading

0 comments on commit 810bb2c

Please sign in to comment.