Skip to content

Commit

Permalink
snap better cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Jan 23, 2019
1 parent 68c3a62 commit 08175ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,18 @@ debug
debug.test
.vscode
*pdf
release
release

*.out
*.pb.gz
*.test
*pprof*

# snap
stage
snap
prime
parts
*.snap
*.xdelta3
*.tar.bz2
6 changes: 4 additions & 2 deletions do_release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

# build into ./release/
rm -rf release
mkdir -p release
Expand All @@ -19,10 +21,10 @@ GOOS=darwin GOARCH=amd64 go build -o "release/xioc-macos64-${VERSION}"

# publish ubuntu snap

rm -rf snap *.snap*
rm -rf snap *.snap* *_source.tar.bz2
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*
rm -rf snap *.snap* *_source.tar.bz2

0 comments on commit 08175ae

Please sign in to comment.