Skip to content

Commit 4e83d11

Browse files
committed
✨ Add goreleaser config
1 parent 41013d1 commit 4e83d11

File tree

3 files changed

+239
-0
lines changed

3 files changed

+239
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ fabric.properties
5959
!.idea/runConfigurations
6060

6161
.DS_Store
62+
63+
dist/

.goreleaser.yaml

+233
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
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+
builds:
12+
- id: windows
13+
gobinary: ./orbstack_go.sh
14+
tags:
15+
- vtable
16+
- fts5
17+
- sqlite_json
18+
- sqlite_math_functions
19+
20+
ldflags:
21+
- -s -w
22+
env:
23+
- CGO_ENABLED=1
24+
- "ORBENV=CGO_ENABLED:CC:CGO_CFLAGS:GOOS:GOARCH"
25+
- CGO_CFLAGS=-O2
26+
- >-
27+
{{- if eq .Os "windows" }}
28+
{{- if eq .Arch "amd64" }}CC=x86_64-w64-mingw32-gcc{{- end }}
29+
{{- if eq .Arch "arm64" }}CC=/home/julien/llvm-mingw/bin/aarch64-w64-mingw32-gcc{{- end }}
30+
{{- end }}
31+
32+
goos:
33+
- windows
34+
goarch:
35+
- amd64
36+
- arm64
37+
ignore:
38+
# go-sqlite3 seems to not be supported on windows/arm64
39+
- goos: windows
40+
goarch: arm64
41+
42+
- id: linux
43+
gobinary: ./orbstack_go.sh
44+
tags:
45+
- vtable
46+
- fts5
47+
- sqlite_json
48+
- sqlite_math_functions
49+
50+
ldflags:
51+
- -s -w
52+
env:
53+
- CGO_ENABLED=1
54+
- "ORBENV=CGO_ENABLED:CC:CGO_CFLAGS:GOOS:GOARCH"
55+
- CGO_CFLAGS=-O2
56+
- >-
57+
{{- if eq .Os "linux" }}
58+
{{- if eq .Arch "amd64" }}CC=gcc{{- end }}
59+
{{- if eq .Arch "arm64" }}CC=aarch64-linux-gnu-gcc{{- end }}
60+
{{- end }}
61+
62+
goos:
63+
- linux
64+
goarch:
65+
- amd64
66+
- arm64
67+
- id: darwin
68+
tags:
69+
- vtable
70+
- fts5
71+
- sqlite_json
72+
- sqlite_math_functions
73+
ldflags:
74+
- -s -w
75+
env:
76+
- CGO_ENABLED=1
77+
- CGO_CFLAGS="-O2"
78+
goos:
79+
- darwin
80+
goarch:
81+
- arm64
82+
- amd64
83+
84+
archives:
85+
- id: unix
86+
format: tar.gz
87+
# this name template makes the OS and Arch compatible with the results of `uname`.
88+
name_template: >-
89+
{{ .ProjectName }}_
90+
{{- title .Os }}_
91+
{{- if eq .Arch "amd64" }}x86_64
92+
{{- else if eq .Arch "386" }}i386
93+
{{- else }}{{ .Arch }}{{ end }}
94+
{{- if .Arm }}v{{ .Arm }}{{ end }}
95+
# use zip for windows archives
96+
builds:
97+
- linux
98+
- darwin
99+
- id: windows
100+
format: zip
101+
builds:
102+
- windows
103+
104+
changelog:
105+
sort: asc
106+
filters:
107+
exclude:
108+
- "^docs:"
109+
- "^test:"
110+
111+
nfpms:
112+
- id: anyquery
113+
package_name: anyquery
114+
builds:
115+
- linux
116+
vendor: Julien CAGNIART
117+
homepage: https://anyquery.dev
118+
maintainer: Julien CAGNIART <[email protected]>
119+
description: |-
120+
Query anything (HTTP APIs, local files, local apps) over SQL.
121+
license: AGPL-3.0
122+
formats:
123+
- apk
124+
- deb
125+
- rpm
126+
- termux.deb
127+
- archlinux
128+
129+
chocolateys:
130+
-
131+
name: anyquery
132+
ids:
133+
- windows
134+
owners: Julien CAGNIART
135+
authors: Julien CAGNIART
136+
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
137+
title: anyquery
138+
project_url: https://anyquery.dev
139+
license_url: https://github.com/julien040/anyquery/blob/main/LICENSE
140+
require_license_acceptance: true
141+
project_source_url: https://github.com/julien040/anyquery/
142+
docs_url: https://anyquery.dev/docs/
143+
bug_tracker_url: https://github.com/julien040/anyquery/issues
144+
summary: Query anything (HTTP APIs, local files, local apps) over SQL.
145+
skip_publish: false
146+
description: |-
147+
Query anything (HTTP APIs, local files, local apps) over SQL.
148+
Anyquery is a query engine that allows you to query anything over SQL. It's built on top of SQLite.
149+
150+
icon_url: https://anyquery.dev/favicon.png
151+
copyright: 2024 Julien CAGNIART
152+
153+
snapcrafts:
154+
- summary: Query anything (HTTP APIs, local files, local apps) over SQL.
155+
description: |-
156+
Query anything (HTTP APIs, local files, local apps) over SQL.
157+
Anyquery is a query engine that allows you to query anything over SQL. It's built on top of SQLite.
158+
grade: stable
159+
confinement: strict
160+
title: anyquery
161+
name: anyquery
162+
license: AGPL-3.0
163+
publish: false
164+
165+
brews:
166+
- name: anyquery
167+
repository:
168+
owner: julien040
169+
name: homebrew-anyquery
170+
commit_author:
171+
name: anyquery
172+
173+
homepage: https://anyquery.dev
174+
description: Anyquery is a query engine that allows you to query anything over SQL.
175+
license: AGPL-3.0
176+
177+
scoops:
178+
- name: anyquery
179+
commit_author:
180+
name: anyquery
181+
182+
homepage: https://anyquery.dev
183+
description: Anyquery is a query engine that allows you to query anything over SQL.
184+
license: AGPL-3.0
185+
repository:
186+
owner: julien040
187+
name: anyquery-scoop
188+
189+
190+
release:
191+
header: |-
192+
## What is Anyquery?
193+
194+
Anyquery is a query engine that allows you to query anything over SQL.
195+
Whether it's a local CSV, a Google Sheet, your Apple notes, or your GitHub stars, you can query it with Anyquery.
196+
197+
It's built on top of SQLite, and you can use alternative languages like PRQL and PQL to query your data.
198+
199+
Get started at [anyquery.dev](https://anyquery.dev)
200+
github:
201+
owner: julien040
202+
name: anyquery
203+
draft: true
204+
prerelease: auto
205+
206+
winget:
207+
- name: anyquery
208+
publisher: Julien CAGNIART
209+
package_identifier: julien040.anyquery
210+
repository:
211+
owner: julien040
212+
name: winget-anyquery
213+
214+
short_description: Query anything (HTTP APIs, local files, local apps) over SQL.
215+
license: AGPL-3.0
216+
ids:
217+
- windows
218+
commit_author:
219+
name: anyquery
220+
221+
homepage: https://anyquery.dev
222+
license_url: https://github.com/julien040/anyquery/blob/main/LICENSE
223+
skip_upload: false
224+
225+
226+
227+
checksum:
228+
name_template: 'checksums.txt'
229+
ids:
230+
- unix
231+
- windows
232+
- darwin
233+

orbstack_go.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /usr/bin/env sh
2+
3+
# Pass all the arguments of this script to the orb go executable
4+
exec orb run -u julien go "$@"

0 commit comments

Comments
 (0)