From b55e779c7812d37feb4d8ce2105039993a218e3a Mon Sep 17 00:00:00 2001 From: CLARATION Date: Mon, 6 Jul 2026 04:29:53 -0700 Subject: [PATCH] fix(build): right, we can build without a tui --- .github/workflows/build.yml | 2 +- src/main.cpp | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6b9657..b855497 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -169,7 +169,7 @@ jobs: - name: Build run: | - make palera1n WITH_STATIC=1 WITH_GUI=1 BUILD_TYPE=Release JOBS=$(sysctl -n hw.ncpu) + make palera1n WITH_STATIC=1 WITH_GUI=1 WITH_TUI=1 BUILD_TYPE=Release JOBS=$(sysctl -n hw.ncpu) strip -x build/palera1n.app/Contents/MacOS/palera1n cd build && zip -r palera1n-macos-${{ matrix.arch }}.zip palera1n.app diff --git a/src/main.cpp b/src/main.cpp index a6608d4..4ac5cdd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -357,15 +357,16 @@ int main(int argc, char* argv[], char* envp[]) { wxTheApp->OnExit(); wxEntryCleanup(); return 0; - } else if (palerain_flags & palerain_option_tui) { + } + #endif + + #ifdef WITH_TUI + if (palerain_flags & palerain_option_tui) { ui_run(); return 0; - } else { - shared_t state{}; - return exploit(&state); } - #else + #endif + shared_t state{}; return exploit(&state); - #endif }