From 2cb61650be200c5a0e8699eba84783cdcda8bb16 Mon Sep 17 00:00:00 2001 From: Float314 Date: Thu, 1 Oct 2026 15:51:05 +0530 Subject: [PATCH 1/5] [Workflow] Install an earlier version of OpenSSL. Known Issue: OpenSSL Takes a long time to install on GHub CI + It fails. Temporary Fix: Fallback to v3.4.7 of Choco Co-authored-by: Shourya Jangam --- .github/workflows/multi-platform.yml | 3 ++- src/main.cpp | 10 +++++----- src/settings_manager.cpp | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/multi-platform.yml b/.github/workflows/multi-platform.yml index 1ef608b..b2ca021 100644 --- a/.github/workflows/multi-platform.yml +++ b/.github/workflows/multi-platform.yml @@ -55,9 +55,10 @@ jobs: # Make find_package(OpenSSL) pick up the Homebrew installation echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> "$GITHUB_ENV" + # OpenSSL is shitting up in Chocolatey Package manager. We need to install an earlier version. - name: Install OpenSSL (Windows) if: matrix.os == 'windows-latest' - run: choco install openssl --no-progress -y + run: choco install openssl --no-progress -y --version=3.4.7 - name: Install GCC (macOS) if: matrix.os == 'macos-latest' diff --git a/src/main.cpp b/src/main.cpp index d49d672..86346c1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,11 +22,11 @@ int main() { try{ - application app; - app.run(); - endscreen endsc; - endsc.render(); - return 0; + application app; + app.run(); + endscreen endsc; + endsc.render(); + return 0; } catch(const std::runtime_error& e) { std::cerr << "Runtime error: " << e.what() << std::endl; return 1; diff --git a/src/settings_manager.cpp b/src/settings_manager.cpp index 4ec0449..3c80eb6 100644 --- a/src/settings_manager.cpp +++ b/src/settings_manager.cpp @@ -74,7 +74,7 @@ std::string settings_manager::get_config_dir() const { } return "./tpedia_config"; #else - // linux + // linux or freeBSD const char* xdg = std::getenv("XDG_CONFIG_HOME"); if (xdg) { return std::string(xdg) + "/tpedia"; From 2408de1e1cff1bdfa3ec42574b3abf79185e4c01 Mon Sep 17 00:00:00 2001 From: Float314 Date: Thu, 1 Oct 2026 15:54:53 +0530 Subject: [PATCH 2/5] [fix] Change version to v3.6.2 for OpenSSL --- .github/workflows/multi-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-platform.yml b/.github/workflows/multi-platform.yml index b2ca021..060016a 100644 --- a/.github/workflows/multi-platform.yml +++ b/.github/workflows/multi-platform.yml @@ -58,7 +58,7 @@ jobs: # OpenSSL is shitting up in Chocolatey Package manager. We need to install an earlier version. - name: Install OpenSSL (Windows) if: matrix.os == 'windows-latest' - run: choco install openssl --no-progress -y --version=3.4.7 + run: choco install openssl --no-progress -y --version=3.6.2 - name: Install GCC (macOS) if: matrix.os == 'macos-latest' From 0a38b19706519e2a4a0cb7456feaaaa59ded7d4b Mon Sep 17 00:00:00 2001 From: Float314 Date: Thu, 1 Oct 2026 16:01:16 +0530 Subject: [PATCH 3/5] [Workflow] Idk man... --- .github/workflows/multi-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-platform.yml b/.github/workflows/multi-platform.yml index 060016a..c099c04 100644 --- a/.github/workflows/multi-platform.yml +++ b/.github/workflows/multi-platform.yml @@ -58,7 +58,7 @@ jobs: # OpenSSL is shitting up in Chocolatey Package manager. We need to install an earlier version. - name: Install OpenSSL (Windows) if: matrix.os == 'windows-latest' - run: choco install openssl --no-progress -y --version=3.6.2 + run: echo "Hi" # Test to see if OpenSSL is already isntalled. It is giving workflow issues... - name: Install GCC (macOS) if: matrix.os == 'macos-latest' From 76082ae527dc2e741c11e15244df3add9e982037 Mon Sep 17 00:00:00 2001 From: Float314 Date: Thu, 1 Oct 2026 16:04:34 +0530 Subject: [PATCH 4/5] [CMake] Change target sources to ./other/asstes/resources.rc OpenSSL is working file for CI/CL bye --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 57c7a00..0c0ebf8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,7 +91,7 @@ set(windows_api "") if(WIN32 AND MSVC) # Limit assets embeding to msvc compilers only # such as clang-cl and MSVC (there exists no compiler of msvc flags # in the market except these two. Clang-cl is peak tho) - target_sources(${PROJECT_NAME} PRIVATE assets/resource.rc) + target_sources(${PROJECT_NAME} PRIVATE /other/assets/resource.rc) set(windows_api "kernel32.lib") endif() From da85bf8e36738bbb9d193973b2ded50c005de5fa Mon Sep 17 00:00:00 2001 From: Float314 Date: Thu, 1 Oct 2026 16:06:27 +0530 Subject: [PATCH 5/5] [CMake] oh... --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c0ebf8..a95bbed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,7 +91,7 @@ set(windows_api "") if(WIN32 AND MSVC) # Limit assets embeding to msvc compilers only # such as clang-cl and MSVC (there exists no compiler of msvc flags # in the market except these two. Clang-cl is peak tho) - target_sources(${PROJECT_NAME} PRIVATE /other/assets/resource.rc) + target_sources(${PROJECT_NAME} PRIVATE other/assets/resource.rc) set(windows_api "kernel32.lib") endif()