fix releases

This commit is contained in:
Clément DOUIN 2023-07-18 17:23:24 +02:00
parent cb1178ee9d
commit 34ad1add65
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72
5 changed files with 13 additions and 6 deletions

View file

@ -42,7 +42,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v20
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-22.11
extra_nix_config: |
@ -139,7 +139,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v20
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-22.11
extra_nix_config: |

View file

@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fixed windows releases due to `coredump` crate compilation error.
- Fixed macos releases due to macos 12 System Integrity Protection.
## [0.8.2] - 2023-07-18
### Changed

View file

@ -36,7 +36,6 @@ clap = "4.0"
clap_complete = "4.0"
clap_mangen = "0.2"
console = "0.15.2"
coredump = "=0.1.2"
dialoguer = "0.10.2"
dirs = "4.0.0"
email_address = "0.2.4"
@ -67,3 +66,6 @@ uuid = { version = "0.8", features = ["v4"] }
rusqlite = { version = "0.29", features = [] }
[target.'cfg(not(target_env = "musl"))'.dependencies]
rusqlite = { version = "0.29", features = ["bundled"] }
[target.'cfg(not(target_env = "windows"))'.dependencies]
coredump = "=0.1.2"

View file

@ -2,7 +2,7 @@ fenix:
let
file = ./rust-toolchain.toml;
sha256 = "gdYqng0y9iHYzYPAdkC/ka3DRny3La/S5G8ASj0Ayyc=";
sha256 = "ks0nMEGGXKrHnfv4Fku+vhQ7gx76ruv6Ij4fKZR3l78=";
in
{
fromFile = { system }: fenix.packages.${system}.fromToolchainFile {

View file

@ -1,6 +1,5 @@
use anyhow::{anyhow, Context, Result};
use clap::Command;
use coredump::register_panic_handler;
use log::{debug, warn};
#[cfg(feature = "imap-backend")]
use pimalaya_email::backend::ImapBackend;
@ -49,7 +48,8 @@ fn create_app() -> Command {
#[allow(clippy::single_match)]
#[tokio::main]
async fn main() -> Result<()> {
if let Err((_, err)) = register_panic_handler() {
#[cfg(not(target_os = "windows"))]
if let Err((_, err)) = coredump::register_panic_handler() {
warn!("cannot register custom panic handler: {err}");
debug!("cannot register custom panic handler: {err:?}");
}