|
3 | 3 | "description": "Password management solutions for individuals, teams, and business organizations", |
4 | 4 | "homepage": "https://bitwarden.com", |
5 | 5 | "license": "GPL-3.0-or-later", |
6 | | - "url": "https://github.com/bitwarden/clients/releases/download/desktop-v2025.2.1/Bitwarden-Portable-2025.2.1.exe", |
7 | | - "hash": "6b705acd9c3ee391d72d993c649f309e652cf111e2b1fa24d03ad1880f0fb0aa", |
| 6 | + "architecture": { |
| 7 | + "32bit": { |
| 8 | + "url": "https://github.com/bitwarden/clients/releases/download/desktop-v2025.2.1/bitwarden-2025.2.1-ia32.nsis.7z", |
| 9 | + "hash": "2f9959351c62ba020704f03d600593b8e59fbc161f2db3d3170e10b4a46f8589" |
| 10 | + }, |
| 11 | + "64bit": { |
| 12 | + "url": "https://github.com/bitwarden/clients/releases/download/desktop-v2025.2.1/bitwarden-2025.2.1-x64.nsis.7z", |
| 13 | + "hash": "ccadc00b8e40ef3e7184bce4d3b4b94cb7b5d1ae8c529f6f52cc9c24a05aa502" |
| 14 | + }, |
| 15 | + "arm64": { |
| 16 | + "url": "https://github.com/bitwarden/clients/releases/download/desktop-v2025.2.1/bitwarden-2025.2.1-arm64.nsis.7z", |
| 17 | + "hash": "215abd822d52b9a9509c857e18105aca3ad72767f68e1a4cb694e6b04986a936" |
| 18 | + } |
| 19 | + }, |
8 | 20 | "pre_install": [ |
9 | | - "Rename-Item \"$dir\\Bitwarden-Portable-$version.exe\" 'Bitwarden.exe'", |
10 | | - "# copy config from non-portable version", |
11 | | - "if (!(Test-Path \"$dir\\bitwarden-appdata\\*\") -and (Test-Path \"$env:Appdata\\Bitwarden\")) {", |
12 | | - " if (!(Test-Path \"$dir\\bitwarden-appdata\")) { New-Item \"$dir\\bitwarden-appdata\" -ItemType Directory | Out-Null }", |
13 | | - " Copy-Item \"$env:Appdata\\Bitwarden\\*\" \"$dir\\bitwarden-appdata\\\" -Recurse -Force", |
14 | | - "}" |
| 21 | + "# Remove built in updater info", |
| 22 | + "$null = Remove-Item -Force -Path \"$dir\\resources\\app-update.yml\"" |
15 | 23 | ], |
16 | 24 | "bin": "Bitwarden.exe", |
17 | 25 | "shortcuts": [ |
18 | 26 | [ |
19 | 27 | "Bitwarden.exe", |
20 | | - "Bitwarden" |
| 28 | + "Bitwarden", |
| 29 | + "--user-data-dir=\"$dir\\data\"" |
21 | 30 | ] |
22 | 31 | ], |
23 | | - "persist": "bitwarden-appdata", |
| 32 | + "persist": "data", |
24 | 33 | "checkver": { |
25 | | - "url": "https://api.github.com/repositories/53538899/releases", |
26 | | - "regex": "tag/desktop-v([\\d.]+)" |
| 34 | + "url": "https://api.github.com/repos/bitwarden/clients/releases", |
| 35 | + "jsonpath": "$[*].tag_name", |
| 36 | + "regex": "desktop-v([\\d.]+)" |
27 | 37 | }, |
28 | 38 | "autoupdate": { |
29 | | - "url": "https://github.com/bitwarden/clients/releases/download/desktop-v$version/Bitwarden-Portable-$version.exe" |
| 39 | + "architecture": { |
| 40 | + "32bit": { |
| 41 | + "url": "https://github.com/bitwarden/clients/releases/download/desktop-v$version/bitwarden-$version-ia32.nsis.7z" |
| 42 | + }, |
| 43 | + "64bit": { |
| 44 | + "url": "https://github.com/bitwarden/clients/releases/download/desktop-v$version/bitwarden-$version-x64.nsis.7z" |
| 45 | + }, |
| 46 | + "arm64": { |
| 47 | + "url": "https://github.com/bitwarden/clients/releases/download/desktop-v$version/bitwarden-$version-arm64.nsis.7z" |
| 48 | + } |
| 49 | + }, |
| 50 | + "hash": { |
| 51 | + "url": "$baseurl/sha256-checksums.txt", |
| 52 | + "regex": "$sha256\\s+$basename" |
| 53 | + } |
30 | 54 | } |
31 | 55 | } |
0 commit comments