π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(ci): stabilize ensu release workflows
Prateek Sunalcf45d268c629
diff --git a/.github/workflows/ensu-release.yml b/.github/workflows/ensu-release.ymlindex eb7104413c..5731ec5033 100644--- a/.github/workflows/ensu-release.yml+++ b/.github/workflows/ensu-release.yml@@ -217,7 +217,7 @@ jobs:includeDebug: falseincludeRelease: trueincludeUpdaterJson: false- args: ${{ matrix.platform.rust-target != 'x86_64-unknown-linux-gnu' && format('--target {0}', matrix.platform.rust-target) || '' }}+ args: ${{ matrix.platform.rust-target == 'aarch64-apple-darwin' && '--target aarch64-apple-darwin --bundles app' || matrix.platform.rust-target != 'x86_64-unknown-linux-gnu' && format('--target {0}', matrix.platform.rust-target) || '' }}build-android:runs-on: ubuntu-22.04diff --git a/rust/apps/ensu/src-tauri/src/commands.rs b/rust/apps/ensu/src-tauri/src/commands.rsindex 9095acdae1..d5719e44c8 100644--- a/rust/apps/ensu/src-tauri/src/commands.rs+++ b/rust/apps/ensu/src-tauri/src/commands.rs@@ -1842,18 +1842,12 @@ fn migrate_attachment_bytes() -> Result<(), ApiError> {let legacy_ciphertext =fs::read(source_path).map_err(|err| ApiError::new("io", err.to_string()))?;- let plaintext = chat_sync::crypto::decrypt_attachment_bytes(- &legacy_ciphertext,- legacy_key,- session_uuid,- )- .map_err(|err| ApiError::new("db_crypto", err.to_string()))?;- let ciphertext = chat_sync::crypto::encrypt_attachment_bytes(- &plaintext,- target_key,- session_uuid,- )- .map_err(|err| ApiError::new("db_crypto", err.to_string()))?;+ let plaintext =+ chat_sync::crypto::decrypt_attachment_bytes(&legacy_ciphertext, legacy_key, session_uuid)+ .map_err(|err| ApiError::new("db_crypto", err.to_string()))?;+ let ciphertext =+ chat_sync::crypto::encrypt_attachment_bytes(&plaintext, target_key, session_uuid)+ .map_err(|err| ApiError::new("db_crypto", err.to_string()))?;fs::write(target_path, ciphertext).map_err(|err| ApiError::new("io", err.to_string()))?;Ok(())}