Compare commits

...

2 Commits

Author SHA1 Message Date
a5cc2e1230 chore: bump libparakeet-js to v0.2.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-07-16 16:21:06 +01:00
35fde207f6 fix: pwsh script to dump db to current dir 2023-07-16 16:20:44 +01:00
3 changed files with 16 additions and 13 deletions

View File

@ -21,7 +21,7 @@
"@chakra-ui/react": "^2.7.0",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@jixun/libparakeet": "0.2.0",
"@jixun/libparakeet": "0.2.1",
"@reduxjs/toolkit": "^1.9.5",
"framer-motion": "^10.12.16",
"immer": "^10.0.2",

View File

@ -26,8 +26,8 @@ dependencies:
specifier: ^11.11.0
version: 11.11.0(@emotion/react@11.11.0)(@types/react@18.2.7)(react@18.2.0)
'@jixun/libparakeet':
specifier: 0.2.0
version: 0.2.0
specifier: 0.2.1
version: 0.2.1
'@reduxjs/toolkit':
specifier: ^1.9.5
version: 1.9.5(react-redux@8.0.5)(react@18.2.0)
@ -2866,8 +2866,8 @@ packages:
chalk: 4.1.2
dev: true
/@jixun/libparakeet@0.2.0:
resolution: {integrity: sha512-FASxHQuiLZZMv2QpP/RajmUuI+HiKJNRYVHkUkZ7UdKpOesWVhhuXv5FGEETLL/Im/Ky2orpF3gOnejY0tR+Ow==}
/@jixun/libparakeet@0.2.1:
resolution: {integrity: sha512-OZRx72yKfRs8ZRZcNPAOBEAz9/v3jXK5V6ue4WomcW6HhNZy7JjdXZOF7lHqMgfB47d1CyLNJbaT0r0tiKGjbA==}
dev: false
/@jridgewell/gen-mapping@0.3.3:

View File

@ -1,11 +1,14 @@
try {
$gz_b64 = adb shell su -c "cat '{{ dir }}/{{ file }}' | gzip | base64" | Out-String
$bStream = New-Object System.IO.MemoryStream(,[System.Convert]::FromBase64String($gz_b64))
$decoded = New-Object System.IO.Compression.GzipStream($bStream, [System.IO.Compression.CompressionMode]::Decompress)
$outFile = New-Object System.IO.FileStream("{{ file }}", [System.IO.FileMode]::Create, [System.IO.FileAccess]::Write)
$decoded.CopyTo($outFile)
$gz_b64 = adb shell su -c "cat '{{ dir }}/{{ file }}' | gzip | base64" | Out-String
$bStream = New-Object System.IO.MemoryStream(,[System.Convert]::FromBase64String($gz_b64))
$decoded = New-Object System.IO.Compression.GzipStream($bStream, [System.IO.Compression.CompressionMode]::Decompress)
$outFile = New-Object System.IO.FileStream("${PWD}\{{ file }}", [System.IO.FileMode]::Create, [System.IO.FileAccess]::Write)
$decoded.CopyTo($outFile)
} catch {
Write-Host "遇到错误:"
Write-Host $_
} finally {
if ($outFile -ne $null) { $outFile.Dispose() }
if ($decoded -ne $null) { $decoded.Dispose() }
if ($bStream -ne $null) { $bStream.Dispose() }
if ($outFile -ne $null) { $outFile.Dispose() }
if ($decoded -ne $null) { $decoded.Dispose() }
if ($bStream -ne $null) { $bStream.Dispose() }
}