Skip to content

Commit

Permalink
update build for different platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifailon committed Nov 25, 2024
1 parent 0b84fbb commit 24a95e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ rm -rf bin/*
architectures=(amd64 arm64)
for arch in "${architectures[@]}"; do
GOOS=linux GOARCH=$arch go build -o bin/lazyjournal-$version-linux-$arch
GOOS=darwin GOARCH=$arch go build -o bin/lazyjournal-$version-macos-$arch
if [[ $arch == "amd64" ]]; then
GOOS=windows GOARCH=$arch go build -o bin/lazyjournal-$version-windows-$arch
fi
done

if [[ -n "$2" ]]; then
snapcraft --destructive-mode
mv "$(ls *.snap)" "bin/$(ls *.snap | sed "s/_/-/g")"
fi

ls -lh bin
7 changes: 3 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: lazyjournal
version: '0.2.0'
summary: TUI for journalctl, logs in the file system and docker containers
summary: TUI for journalctl, logs in the file system, Docker and Podman containers
description: |
Terminal user interface for journalctl, logs in the file system and docker containers for quick viewing and filtering with fuzzy find and regex support.
Terminal user interface for journalctl (tool for reading logs from systemd), logs in the file system, syslog, kernel, Docker and Podman containers for quick viewing and filtering with fuzzy find and regex support (like fzf and grep).
base: core20
confinement: strict
confinement: classic

architectures:
- amd64

apps:
lazyjournal:
command: bin/lazyjournal
plugs: [system-observe, home, docker-support]

parts:
lazyjournal:
Expand Down

0 comments on commit 24a95e6

Please sign in to comment.