Skip to content

Commit

Permalink
Update Makefile to build all .go packages in package main.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvn committed Apr 27, 2024
1 parent abca2cd commit 28a59a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
all: mac mac_amd64 linux windows

mac:
GOOS=darwin GOARCH=arm64 go build -o builds/gwir
GOOS=darwin GOARCH=arm64 go build -o builds/gwir ./
tar -czvf builds/gwir.macos-arm64.tar.gz -C builds gwir
rm -rf builds/gwir

mac_amd64:
GOOS=darwin GOARCH=amd64 go build -o builds/gwir
GOOS=darwin GOARCH=amd64 go build -o builds/gwir ./
tar -czvf builds/gwir.macos-amd64.tar.gz -C builds gwir
rm -rf builds/gwir

linux:
GOOS=linux GOARCH=amd64 go build -o builds/gwir
GOOS=linux GOARCH=amd64 go build -o builds/gwir ./
tar -czvf builds/gwir.linux-amd64.tar.gz -C builds gwir
rm -rf builds/gwir

windows:
GOOS=windows GOARCH=amd64 go build -o builds/gwir.exe
GOOS=windows GOARCH=amd64 go build -o builds/gwir.exe ./
tar -czvf builds/gwir.windows-amd64.tar.gz -C builds gwir.exe
rm -rf builds/gwir.exe

Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ sudo mv gwir /usr/local/bin

<!--
TODO:
- Pass a "-user" flag to understand the activity of a user?
- Automate releases via Github workflows?
- Enrich data when -usr flag is passsed? Not all events have associated HTML URLs.
- TUI
- https://github.com/avelino/awesome-go?tab=readme-ov-file#command-line
- https://github.com/charmbracelet/bubbletea
- Frontend?
- Provide a --version flag
- Automate releases via Github workflows?
- CLI tool downloadable via `go get` or `brew install`
- Use a repo's pushed_at or updated_at to quickly filter out repos?
- https://stackoverflow.com/questions/15918588/github-api-v3-what-is-the-difference-between-pushed-at-and-updated-at
- https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories
- TUI
- https://github.com/avelino/awesome-go?tab=readme-ov-file#command-line
- https://github.com/charmbracelet/bubbletea
- Frontend?
- Use a pretty image for the README. https://github.com/charmbracelet/vhs. Keep it up to date with vhs-actions
- Asciicinema? https://github.com/kubecost/kubectl-cost/blob/main/assets/presentation-script.md
- Pipe to Glow?
Expand All @@ -88,6 +88,7 @@ TODO:

<!--
DONE (newest to oldest):
- First implementation of -usr flag.
- Prettify output. Specifically PR/Issue title length?
- Github MultiArch releases
- Take params via args instead of env vars.
Expand Down

0 comments on commit 28a59a6

Please sign in to comment.