Skip to content

Add Chocolatey for Windows #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,37 @@ docker_manifests:
image_templates: *docker_images
- name_template: ghcr.io/symfony-cli/{{ .ProjectName }}:latest
image_templates: *docker_images

chocolateys:
-
owners: Symfony
title: Symfony CLI
authors: Symfony
project_url: https://symfony.com/

# Template for the url which is determined by the given Token (github,
# gitlab or gitea)
# Default depends on the client.
url_template: "https://github.com/foo/bar/releases/download/{{ .Tag }}/{{ .ArtifactName }}"

# App's icon.
# Default is empty.
icon_url: 'https://rawcdn.githack.com/foo/bar/efbdc760-395b-43f1-bf69-ba25c374d473/icon.png'
copyright: 2021-present Fabien Potencier
license_url: https://github.com/symfony-cli/symfony-cli/blob/main/LICENSE
project_source_url: https://github.com/symfony-cli/symfony-cli
bug_tracker_url: https://github.com/symfony-cli/symfony-cli/issues
summary: Symfony CLI helps Symfony developers manage projects, from local code to remote infrastructure
description: Symfony CLI helps Symfony developers manage projects, from local code to remote infrastructure
release_notes: "https://github.com/symfony-cli/symfony-cli/releases/tag/v{{ .Version }}"
api_key: '{{ .Env.CHOCOLATEY_API_KEY }}'

# The source repository that will push the package to.
#
# Defaults are shown below.
source_repo: "https://push.chocolatey.org/"

# Setting this will prevent goreleaser to actually try to push the package
# to chocolatey repository, leaving the responsability of publishing it to
# the user.
skip_publish: false
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func main() {
app := &console.Application{
Name: "Symfony CLI",
Usage: "Symfony CLI helps developers manage projects, from local code to remote infrastructure",
Copyright: fmt.Sprintf("(c) 2017-%d Symfony SAS <bg=#0057B7;fg=#FFDD00>#StandWith</><bg=#FFDD00;fg=#0057B7>Ukraine</> <href=https://sf.to/ukraine>Support Ukraine</>", time.Now().Year()),
Copyright: fmt.Sprintf("(c) 2021-%d Fabien Potencier <bg=#0057B7;fg=#FFDD00>#StandWith</><bg=#FFDD00;fg=#0057B7>Ukraine</> <href=https://sf.to/ukraine>Support Ukraine</>", time.Now().Year()),
FlagEnvPrefix: []string{"SYMFONY", "PLATFORM"},
Commands: cmds,
Action: func(ctx *console.Context) error {
Expand Down