/
bitwarden-portable.json
64 lines (64 loc) · 2.49 KB
/
bitwarden-portable.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"version": "1.33.0",
"description": "Password management solutions for individuals, teams, and business organizations",
"homepage": "https://bitwarden.com",
"license": {
"identifier": "GPL-3.0-or-later",
"url": "https://github.com/bitwarden/desktop/blob/master/LICENSE.txt"
},
"architecture": {
"64bit": {
"url": "https://github.com/bitwarden/desktop/releases/download/v1.33.0/Bitwarden-1.33.0-x64.nsis.7z",
"hash": "sha512:216a9c4e95cde3ec5fe592dd1d670f34878d14c1daace50717b7b412c6911731d4f8a4a9b10a16f92587294ece6be73f4c8b87e3c91666a46ee2af7b98fc517f"
},
"32bit": {
"url": "https://github.com/bitwarden/desktop/releases/download/v1.33.0/Bitwarden-1.33.0-ia32.nsis.7z",
"hash": "sha512:63ea70fac285868406dcdaceab8e3743d55a76928a9af245881bc3c5c7e7549615de58d4c156164a63ae5bec757608bd569937564a9a0ed800f4190e24a1c670"
}
},
"pre_install": [
"# copy config from non-portable version",
"if (!(Test-Path \"$dir\\User Data\\*\") -and (Test-Path \"$env:Appdata\\Bitwarden\")) {",
" if (!(Test-Path \"$dir\\User Data\")) { New-Item \"$dir\\User Data\" -ItemType Directory | Out-Null }",
" Copy-Item \"$env:Appdata\\Bitwarden\\*\" \"$dir\\User Data\\\" -Recurse -Force",
"}"
],
"bin": [
[
"Bitwarden.exe",
"bitwarden",
"--user-data-dir=\"$dir\\User Data\""
]
],
"shortcuts": [
[
"Bitwarden.exe",
"Bitwarden",
"--user-data-dir=\"$dir\\User Data\""
]
],
"persist": "User Data",
"checkver": {
"github": "https://github.com/bitwarden/desktop"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/bitwarden/desktop/releases/download/v$version/Bitwarden-$version-x64.nsis.7z",
"hash": {
"url": "$baseurl/latest.yml",
"mode": "extract",
"regex": "(?sm)x64.+sha512:\\s+$base64.+$basename"
}
},
"32bit": {
"url": "https://github.com/bitwarden/desktop/releases/download/v$version/Bitwarden-$version-ia32.nsis.7z",
"hash": {
"url": "$baseurl/latest.yml",
"mode": "extract",
"regex": "(?sm)ia32.+sha512:\\s+$base64.+$basename"
}
}
}
}
}