Browse Source

snap script updates

pull/19/head v1.1.0
Kyle Spearrin 8 years ago
parent
commit
ca08262cd8
  1. 6
      scripts/snap-build.ps1
  2. 12
      scripts/snap-update.ps1

6
scripts/snap-build.ps1

@ -1,9 +1,13 @@ @@ -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 + "/.."

12
scripts/snap-update.ps1

@ -0,0 +1,12 @@ @@ -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
Loading…
Cancel
Save