mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 12:13:45 +00:00
Fix bitwarden app data folder in build script
This commit is contained in:
@@ -7,7 +7,7 @@ if ($null -eq $env:ELECTRON_BUILDER_SIGN_CERT) {
|
||||
if ($null -eq $env:ELECTRON_BUILDER_SIGN_CERT_PW) {
|
||||
$env:ELECTRON_BUILDER_SIGN_CERT_PW = "1234"
|
||||
}
|
||||
$bwFolder = "$env:LOCALAPPDATA\Packages\bitwardendesktop_h4e712dmw3xyy"
|
||||
$bwFolder = "$env:LOCALAPPDATA\Packages\bitwardendesktop_jhp7wx9v9pf64"
|
||||
|
||||
$package = (Get-AppxPackage -name bitwardendesktop)
|
||||
$appx = ".\dist\Bitwarden-2025.10.2-arm64.appx"
|
||||
@@ -18,7 +18,7 @@ $comLogFile = "C:\temp\bitwarden_com_debug.log"
|
||||
npm run build-native && npm run build:dev && npm run pack:win:appx:arm64
|
||||
|
||||
# Backup tokens
|
||||
# Copy-Item -Path "$bwFolder\LocalCache\Roaming\Bitwarden\data.json" -Destination $backupDataFile
|
||||
Copy-Item -Path "$bwFolder\LocalCache\Roaming\Bitwarden\data.json" -Destination $backupDataFile
|
||||
|
||||
# Reinstall Appx
|
||||
Remove-AppxPackage $package && Add-AppxPackage $appx
|
||||
@@ -27,5 +27,5 @@ Remove-AppxPackage $package && Add-AppxPackage $appx
|
||||
Remove-Item -Path $comLogFile -Force -ErrorAction SilentlyContinue
|
||||
|
||||
# Restore tokens
|
||||
# New-Item -Type Directory -Force -Path "$bwFolder\LocalCache\Roaming\Bitwarden\"
|
||||
# Copy-Item -Path $backupDataFile -Destination "$bwFolder\LocalCache\Roaming\Bitwarden\data.json"
|
||||
New-Item -Type Directory -Force -Path "$bwFolder\LocalCache\Roaming\Bitwarden\"
|
||||
Copy-Item -Path $backupDataFile -Destination "$bwFolder\LocalCache\Roaming\Bitwarden\data.json"
|
||||
|
||||
Reference in New Issue
Block a user