Skip to content

Commit

Permalink
snap install
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Jan 23, 2019
1 parent bfa5f24 commit 68c3a62
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Extract indicators of compromise from text, including "escaped" ones like `hxxp:
go get -u github.com/assafmo/xioc
```

- Or... Use snap install (Ubuntu):

```bash
snap install xioc
```

## Features

- Extract IOCs (indicators of compromise) from an input text:
Expand Down
9 changes: 9 additions & 0 deletions do_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ GOOS=darwin GOARCH=amd64 go build -o "release/xioc-macos64-${VERSION}"
parallel --bar 'zip "$(echo "{}" | sed "s/.exe//").zip" "{}" && rm -f "{}"'
)

# publish ubuntu snap

rm -rf snap *.snap*
snapcraft
snapcraft push *.snap
REV=$(snapcraft list-revisions xioc | head -2 | tail -1 | awk '{print $1}')
snapcraft release xioc "$REV" stable
snapcraft clean
rm -rf snap *.snap*
19 changes: 19 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: xioc
version: git
version-script: |
echo $(git describe --tags $(git rev-list --tags --max-count=1))-$(git log --oneline | head -1 | awk '{print $1}')
summary: Extract indicators of compromise from text, including "escaped" ones.
description: |
Extract indicators of compromise from text, including "escaped" ones.
grade: stable
confinement: strict

parts:
xioc:
source: .
plugin: go
go-importpath: github.com/assafmo/xioc

apps:
xioc:
command: xioc

0 comments on commit 68c3a62

Please sign in to comment.