From 27011f59914d808df4d23a43a0385bd4814bb91d Mon Sep 17 00:00:00 2001 From: Tom Paine Date: Wed, 15 Mar 2023 00:41:23 +0000 Subject: [PATCH 1/2] Update Installation.md --- instructions/Installation.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/instructions/Installation.md b/instructions/Installation.md index 903206ebb..8a5a066bc 100644 --- a/instructions/Installation.md +++ b/instructions/Installation.md @@ -42,16 +42,21 @@ At the end execute it: ```shell ./mac_czkawka_gui ``` +#### Compiling on Apple Silicon +Prebuilt binaries are available only for x86_64, so if you use ARM e.g. Mac M1/M2, you must compile the app manually. -**Warning** -Prebuilt binaries are available only for x86_64, so if you use ARM machine like e.g. Mac M1, you need to compile manually app. +**Compilation is simple, and takes less than 10 minutes on an M1/M2 mac.** +User [@bauchdj](https://github.com/bauchdj) wrote [working rust complication instuctions](https://github.com/qarmin/czkawka/issues/689#issuecomment-1310549801) + +#### x86 on ARM There is also a way to use x86_64 binaries on ARM, but this requires to install special version of required libraries probably via: ```shell arch -x86_64 /usr/local/bin/brew install gtk4 adwaita-icon-theme ffmpeg librsvg libheif ``` Sadly this doesn't work for all users, so feel free to update this part of documentation(look at https://github.com/qarmin/czkawka/issues/689 and https://github.com/qarmin/czkawka/issues/637 for more info) + ### Windows By default, all needed libraries are bundled with the app, inside `windows_czkawka_gui.zip`, but if you compile the app or just move `czkawka_gui.exe`, then you will need to install the `GTK 4` runtime from [**here**](https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases). From 4487d41f33bac79fd4f978d01f1235817a0ddbb7 Mon Sep 17 00:00:00 2001 From: Tom Paine Date: Sun, 9 Apr 2023 23:45:32 +0100 Subject: [PATCH 2/2] Update Installation.md --- instructions/Installation.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/instructions/Installation.md b/instructions/Installation.md index 8a5a066bc..7e646d226 100644 --- a/instructions/Installation.md +++ b/instructions/Installation.md @@ -47,7 +47,19 @@ Prebuilt binaries are available only for x86_64, so if you use ARM e.g. Mac M1/M **Compilation is simple, and takes less than 10 minutes on an M1/M2 mac.** -User [@bauchdj](https://github.com/bauchdj) wrote [working rust complication instuctions](https://github.com/qarmin/czkawka/issues/689#issuecomment-1310549801) +``` +# Install Rust and Libraries +brew install rustup +rustup-init +brew install gtk4 adwaita-icon-theme librsvg libheif +``` +``` +# Clone and Build +git clone https://github.com/qarmin/czkawka.git +cd czkawka +cargo run --release --bin czkawka_gui +``` +Credit to User [@bauchdj](https://github.com/bauchdj) #### x86 on ARM There is also a way to use x86_64 binaries on ARM, but this requires to install special version of required libraries probably via: