mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
fix(build): right, we can build without a tui
This commit is contained in:
2 files changed
+8
-7
No files matched your search
@@ -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
|
||||
|
||||
|
||||
+7
-6
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user