Skip to content

Commit 1e668d8

Browse files
committed
chore: Add GoReleaser configuration for building and releasing zed-cli for Windows
1 parent 6a096fc commit 1e668d8

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

.goreleaser.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
11+
before:
12+
hooks:
13+
# You may remove this if you don't use go modules.
14+
- go mod tidy
15+
# you may remove this if you don't need go generate
16+
- go generate ./...
17+
18+
project_name: zed-cli-win-unofficial
19+
builds:
20+
- env:
21+
- CGO_ENABLED=0
22+
goos:
23+
- windows
24+
goarch:
25+
- amd64
26+
main: .
27+
ldflags:
28+
- -s -w
29+
binary: zed-cli-win-unofficial
30+
31+
archives:
32+
- formats: [zip]
33+
files:
34+
- src: "scripts/zed.cmd"
35+
dst: zed.cmd
36+
name_template: >-
37+
{{ .ProjectName }}_v{{ .Version }}
38+
{{- if eq .Arch "amd64" }}x86_64
39+
{{- else }}{{ .Arch }}{{ end }}
40+
wrap_in_directory: "{{ .ProjectName }}"
41+
format_overrides:
42+
- goos: windows
43+
formats: [zip]
44+
45+
checksum:
46+
name_template: "checksums.txt"
47+
48+
changelog:
49+
sort: asc
50+
filters:
51+
exclude:
52+
- "^docs:"
53+
- "^test:"
54+
55+
release:
56+
# By default, GoReleaser uploads:
57+
# - All archives (your ZIP files)
58+
# - Checksums
59+
# - Any other configured artifacts (like Chocolatey packages)
60+
61+
footer: >-
62+
63+
---
64+
65+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
66+
67+
chocolateys:
68+
- name: zed-cli-win-unofficial
69+
title: Zed CLI for Windows (Unofficial)
70+
authors: SameerJS6
71+
project_url: https://github.com/SameerJS6/zed-cli-win-unofficial
72+
url_template: "https://github.com/SameerJS6/zed-cli-win-unofficial/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
73+
icon_url: https://raw.githubusercontent.com/SameerJS6/zed-cli-win-unofficial/main/public/icon.png
74+
copyright: 2024 SameerJS6
75+
license_url: https://github.com/SameerJS6/zed-cli-win-unofficial/blob/main/LICENSE
76+
require_license_acceptance: false
77+
project_source_url: https://github.com/SameerJS6/zed-cli-win-unofficial
78+
docs_url: https://github.com/SameerJS6/zed-cli-win-unofficial/blob/main/readme.md
79+
bug_tracker_url: https://github.com/SameerJS6/zed-cli-win-unofficial/issues
80+
tags: "zed editor cli windows launcher unofficial"
81+
summary: Unofficial Windows CLI launcher for Zed editor
82+
description: |
83+
An unofficial Windows CLI launcher for Zed editor that provides:
84+
85+
* Configurable zed.exe path
86+
* Path launching with 'zed .'
87+
* Just running 'zed' opens last project
88+
* Integration with Windows context menu (Open with Zed)
89+
* Environment variable parsing for installation paths
90+
91+
This tool is not affiliated with or endorsed by the Zed team.
92+
release_notes: "https://github.com/SameerJS6/zed-cli-win-unofficial/releases/tag/v{{ .Version }}"
93+
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
94+
source_repo: "https://push.chocolatey.org/"
95+
skip_publish: false

0 commit comments

Comments
 (0)