mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
switch for choco nopush
This commit is contained in:
parent
32769d932e
commit
553f80f19b
@ -1,4 +1,8 @@
|
|||||||
# To run:
|
param (
|
||||||
|
[switch] $nopush,
|
||||||
|
)
|
||||||
|
|
||||||
|
# To run:
|
||||||
# .\choco-update.ps1
|
# .\choco-update.ps1
|
||||||
|
|
||||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path;
|
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path;
|
||||||
@ -22,6 +26,9 @@ $srcPackage = $rootDir + "\package.json";
|
|||||||
$srcPackageVersion = (Get-Content -Raw -Path $srcPackage | ConvertFrom-Json).version;
|
$srcPackageVersion = (Get-Content -Raw -Path $srcPackage | ConvertFrom-Json).version;
|
||||||
$nuspec = $distChocoDir + "\bitwarden-cli.nuspec";
|
$nuspec = $distChocoDir + "\bitwarden-cli.nuspec";
|
||||||
choco pack $nuspec --version $srcPackageVersion --out $distChocoDir
|
choco pack $nuspec --version $srcPackageVersion --out $distChocoDir
|
||||||
|
|
||||||
|
if (!$nopush) {
|
||||||
cd $distChocoDir
|
cd $distChocoDir
|
||||||
choco push
|
choco push
|
||||||
cd $rootDir
|
cd $rootDir
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user