From 8ed2308340b55c333cd9e1b472417e7c2e7f2dfe Mon Sep 17 00:00:00 2001 From: ardocrat Date: Fri, 13 Sep 2024 14:53:22 +0300 Subject: [PATCH] macos: build, warn fix --- macos/build_release.sh | 9 ++++----- src/gui/views/content.rs | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/macos/build_release.sh b/macos/build_release.sh index f533246..d9330d1 100755 --- a/macos/build_release.sh +++ b/macos/build_release.sh @@ -9,14 +9,13 @@ case $2 in exit 1 esac -if [[ ! -v SDKROOT ]]; then +if [[ "$OSTYPE" != "darwin"* ]]; then + if [ -z ${SDKROOT+x} ]; then echo "MacOS SDKROOT is not set" exit 1 -elif [[ -z "SDKROOT" ]]; then - echo "MacOS SDKROOT is set to the empty string" - exit 1 -else + else echo "Use MacOS SDK: ${SDKROOT}" + fi fi # Setup build directory diff --git a/src/gui/views/content.rs b/src/gui/views/content.rs index bc36690..2590a42 100644 --- a/src/gui/views/content.rs +++ b/src/gui/views/content.rs @@ -241,7 +241,7 @@ impl Content { }); }); columns[1].vertical_centered_justified(|ui| { - View::button_ui(ui, t!("modal_exit.exit"), Colors::white_or_black(false), |ui| { + View::button_ui(ui, t!("modal_exit.exit"), Colors::white_or_black(false), |_| { if !Node::is_running() { self.exit_allowed = true; cb.exit();