mirror of
https://github.com/bitwarden/cli
synced 2025-12-15 07:43:38 +00:00
snap script updates
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
# To run:
|
# Dependencies:
|
||||||
|
# 1. Install powershell, ex `sudo apt-get install -y powershell`
|
||||||
|
#
|
||||||
|
# To run:
|
||||||
# ./snap-build.ps1
|
# ./snap-build.ps1
|
||||||
#
|
#
|
||||||
# and then push to snap with:
|
# and then push to snap with:
|
||||||
# cd ../dist/snap
|
# cd ../dist/snap
|
||||||
# snap push bw*.snap
|
# snap push bw*.snap
|
||||||
|
# or, use the ./snap-update.ps1 script
|
||||||
|
|
||||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||||
$rootDir = $dir + "/.."
|
$rootDir = $dir + "/.."
|
||||||
|
|||||||
12
scripts/snap-update.ps1
Normal file
12
scripts/snap-update.ps1
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user