mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-27 12:26:38 +01:00
choco pack script
This commit is contained in:
parent
a32fff16a2
commit
b0f6105ae6
8
scripts/choco-pack.ps1
Normal file
8
scripts/choco-pack.ps1
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path;
|
||||||
|
$rootDir = $dir + "\..";
|
||||||
|
$distDir = $rootDir + "\dist";
|
||||||
|
$nuspec = $rootDir + "\stores\chocolatey\bitwarden.nuspec";
|
||||||
|
$srcPackage = $rootDir + "\src\package.json";
|
||||||
|
$srcPackageVersion = (Get-Content -Raw -Path $srcPackage | ConvertFrom-Json).version;
|
||||||
|
|
||||||
|
choco pack $nuspec --version $srcPackageVersion --out $distDir
|
@ -3,7 +3,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>bitwarden</id>
|
<id>bitwarden</id>
|
||||||
<version>0.0.5</version>
|
<version>0.0.0</version>
|
||||||
<packageSourceUrl>https://github.com/bitwarden/desktop/tree/master/stores/chocolatey</packageSourceUrl>
|
<packageSourceUrl>https://github.com/bitwarden/desktop/tree/master/stores/chocolatey</packageSourceUrl>
|
||||||
<owners>kspearrin</owners>
|
<owners>kspearrin</owners>
|
||||||
<title>Bitwarden</title>
|
<title>Bitwarden</title>
|
||||||
|
Loading…
Reference in New Issue
Block a user