From ca08262cd81650661362560951c13b4817d5e80d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 27 Jul 2018 09:05:16 -0400 Subject: [PATCH] snap script updates --- scripts/snap-build.ps1 | 6 +++++- scripts/snap-update.ps1 | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 scripts/snap-update.ps1 diff --git a/scripts/snap-build.ps1 b/scripts/snap-build.ps1 index c37f085a8f..d23d55d875 100644 --- a/scripts/snap-build.ps1 +++ b/scripts/snap-build.ps1 @@ -1,9 +1,13 @@ -# To run: +# Dependencies: +# 1. Install powershell, ex `sudo apt-get install -y powershell` +# +# To run: # ./snap-build.ps1 # # and then push to snap with: # cd ../dist/snap # snap push bw*.snap +# or, use the ./snap-update.ps1 script $dir = Split-Path -Parent $MyInvocation.MyCommand.Path $rootDir = $dir + "/.." diff --git a/scripts/snap-update.ps1 b/scripts/snap-update.ps1 new file mode 100644 index 0000000000..7c68284579 --- /dev/null +++ b/scripts/snap-update.ps1 @@ -0,0 +1,12 @@ +# Dependencies: +# 1. Install powershell, ex `sudo apt-get install -y powershell` +# +# To run: +# pwsh ./snap-update.ps1 + +$dir = Split-Path -Parent $MyInvocation.MyCommand.Path; +$rootDir = $dir + "/.."; +$distDir = $rootDir + "/dist"; +$distSnap = $distDir + "/snap/bw*.snap"; + +snapcraft push $distSnap --release stable