Skip to content

Commit 9442150

Browse files
committed
Add goreleaser to make packages on github
1 parent 77dde64 commit 9442150

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.goreleaser.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# .goreleaser.yml
2+
# Build customization
3+
builds:
4+
- binary: gpython
5+
goos:
6+
- windows
7+
- darwin
8+
- linux
9+
- freebsd
10+
- netbsd
11+
goarch:
12+
- amd64
13+
- 386
14+
- arm
15+
- arm64
16+
17+
snapshot:
18+
# Allows you to change the name of the generated snapshot
19+
# releases. The following variables are available:
20+
# - Commit
21+
# - Tag
22+
# - Timestamp
23+
# Default is `SNAPSHOT-{{.Commit}}`.
24+
name_template: "{{.Tag}}-DEV"
25+
26+
# Archive customization
27+
archive:
28+
format: zip
29+
replacements:
30+
darwin: macOS
31+
files:
32+
- README.md
33+
- LICENSE

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ modules are written in C not python. The converted modules are:
2323
* time
2424
* sys
2525

26+
## Install
27+
28+
Gpython is a Go program and comes as a single binary file.
29+
30+
Download the relevant binary from here: https://github.com/ncw/gpython/releases
31+
32+
Or alternatively if you have Go installed use
33+
34+
go get github.com/ncw/gpython
35+
36+
and this will build the binary in `$GOPATH/bin`. You can then modify
37+
the source and submit patches.
38+
2639
## Objectives
2740

2841
Gpython was written as a learning experiment to investigate how hard

RELEASE.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Making a release #
2+
3+
Compile and test
4+
5+
Then run
6+
7+
goreleaser --rm-dist --snapshot
8+
9+
To test the build
10+
11+
When happy, tag the release
12+
13+
git tag -a v1.0.XX -m "Release v1.0.XX"
14+
15+
Then do a release build (set GITHUB token first)
16+
17+
goreleaser --rm-dist

0 commit comments

Comments
 (0)