FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
workflow file updates
tilakpatel22c0b0b4cf9a20
diff --git a/.github/workflows/build-cpp.yml b/.github/workflows/build-cpp.ymlindex fa7e95353..d41fc250b 100644--- a/.github/workflows/build-cpp.yml+++ b/.github/workflows/build-cpp.yml@@ -10,6 +10,7 @@ env:BUILD_TYPE: ReleaseQT_VERSION: "6.8.3"QT_MODULES: "qtcharts qtwebsockets qtmultimedia"+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: truejobs:build:diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.ymlindex 885c9d62b..9ee1fbb3c 100644--- a/.github/workflows/build-installer.yml+++ b/.github/workflows/build-installer.yml@@ -12,6 +12,7 @@ env:QT_MODULES: "qtcharts qtwebsockets qtmultimedia"QT_IFW_VERSION: "4.7"QT_IFW_TOOL: "tools_ifw"+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: truejobs:build-installer:diff --git a/.github/workflows/build-macos-installer.yml b/.github/workflows/build-macos-installer.ymlindex c0061bcd5..c0a789c25 100644--- a/.github/workflows/build-macos-installer.yml+++ b/.github/workflows/build-macos-installer.yml@@ -13,6 +13,7 @@ env:QT_IFW_VERSION: "4.7"QT_IFW_TOOL: "tools_ifw"APP_NAME: FinceptTerminal+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: truejobs:build:@@ -24,6 +25,7 @@ jobs:uses: actions/checkout@v4with:submodules: recursive+ fetch-tags: true# ── ccache ────────────────────────────────────────────────────────────- name: Set up ccache@@ -34,7 +36,7 @@ jobs:# ── Install build tools ───────────────────────────────────────────────- name: Install build tools- run: brew install ninja cmake+ run: brew install ninja cmake || brew upgrade ninja cmake || true# ── Install Qt 6.8.3 (official installer, includes private headers) ──- name: Install Qt ${{ env.QT_VERSION }}@@ -46,6 +48,12 @@ jobs:cache: truecache-key-prefix: qt-macos-arm64-installer+ # ── Ensure Python 3.12 is installed (for embedding) ──────────────────+ - name: Install Python 3.12+ run: |+ brew install [email protected] || brew upgrade [email protected] || true+ python3.12 --version+# ── Install Qt Installer Framework ────────────────────────────────────# Uses --break-system-packages because macOS Sequoia (PEP 668) blocks# system-wide pip installs without it.@@ -60,6 +68,36 @@ jobs:echo "QtIFW installed:"ls "${IFW_DIR}/bin/" || true+ # ── Generate macOS .icns icon from .ico ────────────────────────────────+ # CMake expects resources/fincept.icns for MACOSX_BUNDLE_ICON_FILE.+ # The repo only has fincept.ico (Windows). Convert using sips + iconutil.+ - name: Generate .icns icon+ working-directory: fincept-qt+ run: |+ ICO="resources/fincept.ico"+ ICNS="resources/fincept.icns"+ if [ -f "${ICNS}" ]; then+ echo ".icns already exists — skipping generation"+ elif [ -f "${ICO}" ]; then+ ICONSET="$(mktemp -d)/fincept.iconset"+ mkdir -p "${ICONSET}"+ # Extract the largest image from the .ico and resize to all required sizes+ sips -s format png "${ICO}" --out "${ICONSET}/icon_512x512.png" --resampleHeightWidth 512 512 2>/dev/null+ for size in 16 32 64 128 256; do+ sips -z ${size} ${size} "${ICONSET}/icon_512x512.png" --out "${ICONSET}/icon_${size}x${size}.png" 2>/dev/null+ done+ # Retina variants (@2x)+ cp "${ICONSET}/icon_512x512.png" "${ICONSET}/[email protected]"+ sips -z 1024 1024 "${ICONSET}/icon_512x512.png" --out "${ICONSET}/[email protected]" 2>/dev/null+ sips -z 64 64 "${ICONSET}/icon_512x512.png" --out "${ICONSET}/[email protected]" 2>/dev/null+ sips -z 32 32 "${ICONSET}/icon_512x512.png" --out "${ICONSET}/[email protected]" 2>/dev/null+ sips -z 256 256 "${ICONSET}/icon_512x512.png" --out "${ICONSET}/[email protected]" 2>/dev/null+ iconutil -c icns -o "${ICNS}" "${ICONSET}"+ echo "Generated ${ICNS} ($(du -sh "${ICNS}" | cut -f1))"+ else+ echo "WARNING: No source icon found — app will have generic icon"+ fi+# ── Configure CMake ───────────────────────────────────────────────────- name: Configure CMakeworking-directory: fincept-qt@@ -128,22 +166,38 @@ jobs:PLISTfi- # macdeployqt — bundles all Qt frameworks + plugins + fixes rpaths- echo "Running macdeployqt..."- "${MACDEPLOYQT}" "${APP_BUNDLE}" -always-overwrite 2>&1 || true+ # NOTE: macdeployqt is NOT run here — it already ran as a CMake POST_BUILD+ # command (DEPLOY_QT=ON). Running it twice causes rpath conflicts and+ # duplicate "ERROR: no file at ..." noise. SQL plugin cleanup is also+ # handled by the POST_BUILD step in CMakeLists.txt.++ # Embed Python 3.12 framework.+ # On macOS CI runners, Python.framework may live in several locations:+ # 1. /Library/Frameworks/Python.framework (system / python.org installer)+ # 2. $(brew --prefix [email protected])/Frameworks/Python.framework (Homebrew)+ # The GitHub Actions runner typically has the system framework at /Library/Frameworks.+ PY_FRAMEWORK=""+ for candidate in \+ "/Library/Frameworks/Python.framework" \+ "$(brew --prefix [email protected] 2>/dev/null)/Frameworks/Python.framework" \+ "$(brew --prefix python3 2>/dev/null)/Frameworks/Python.framework"; do+ if [ -d "${candidate}/Versions" ]; then+ PY_FRAMEWORK="${candidate}"+ break+ fi+ done- # Embed Python 3.12 framework- PY_PREFIX="$(brew --prefix [email protected] 2>/dev/null || brew --prefix python3)"- PY_FRAMEWORK="${PY_PREFIX}/Frameworks/Python.framework"BUNDLE_FRAMEWORKS="${APP_BUNDLE}/Contents/Frameworks"mkdir -p "${BUNDLE_FRAMEWORKS}"- if [ -d "${PY_FRAMEWORK}" ]; then- echo "Embedding Python.framework..."+ if [ -n "${PY_FRAMEWORK}" ]; then+ echo "Embedding Python.framework from: ${PY_FRAMEWORK}"cp -R "${PY_FRAMEWORK}" "${BUNDLE_FRAMEWORKS}/"- ln -sf "../Frameworks/Python.framework/Versions/3.12/bin/python3.12" \+ PY_VER="$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"+ ln -sf "../Frameworks/Python.framework/Versions/${PY_VER}/bin/python${PY_VER}" \"${APP_BUNDLE}/Contents/MacOS/python3" 2>/dev/null || true+ echo "Python ${PY_VER} embedded successfully"else- echo "WARNING: Python.framework not found — skipping embed"+ echo "WARNING: Python.framework not found — PythonRunner will require system Python"fi# Copy resources and Python analytics scripts@@ -156,6 +210,8 @@ jobs:# Diagnosticsecho "=== Bundle size ===" && du -sh "${DIST_DIR}/${{ env.APP_NAME }}.app"echo "=== Qt frameworks ===" && ls "${DIST_DIR}/${{ env.APP_NAME }}.app/Contents/Frameworks/" | grep -i qt || true+ echo "=== SQL plugins (should have no odbc/psql/mimer) ===" \+ && ls "${DIST_DIR}/${{ env.APP_NAME }}.app/Contents/PlugIns/sqldrivers/" 2>/dev/null || true# ── Generate installer via CPack IFW ──────────────────────────────────# Falls back to DMG if binarycreator is unavailable.diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.ymlindex b454257d6..80a95f461 100644--- a/.github/workflows/build-macos.yml+++ b/.github/workflows/build-macos.yml@@ -11,6 +11,7 @@ env:QT_VERSION: "6.8.3"QT_MODULES: "qtcharts qtwebsockets qtmultimedia"APP_NAME: FinceptTerminal+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: truejobs:build:@@ -22,6 +23,7 @@ jobs:uses: actions/checkout@v4with:submodules: recursive+ fetch-tags: true# ── ccache ────────────────────────────────────────────────────────────- name: Set up ccache@@ -32,7 +34,7 @@ jobs:# ── Install build tools ───────────────────────────────────────────────- name: Install build tools- run: brew install ninja cmake+ run: brew install ninja cmake || brew upgrade ninja cmake || true# ── Install Qt 6.8.3 (official installer, includes private headers) ──- name: Install Qt ${{ env.QT_VERSION }}@@ -44,6 +46,32 @@ jobs:cache: truecache-key-prefix: qt-macos-arm64+ # ── Generate macOS .icns icon from .ico ────────────────────────────────+ - name: Generate .icns icon+ working-directory: fincept-qt+ run: |+ ICO="resources/fincept.ico"+ ICNS="resources/fincept.icns"+ if [ -f "${ICNS}" ]; then+ echo ".icns already exists — skipping generation"+ elif [ -f "${ICO}" ]; then+ ICONSET="$(mktemp -d)/fincept.iconset"+ mkdir -p "${ICONSET}"+ sips -s format png "${ICO}" --out "${ICONSET}/icon_512x512.png" --resampleHeightWidth 512 512 2>/dev/null+ for size in 16 32 64 128 256; do+ sips -z ${size} ${size} "${ICONSET}/icon_512x512.png" --out "${ICONSET}/icon_${size}x${size}.png" 2>/dev/null+ done+ cp "${ICONSET}/icon_512x512.png" "${ICONSET}/[email protected]"+ sips -z 1024 1024 "${ICONSET}/icon_512x512.png" --out "${ICONSET}/[email protected]" 2>/dev/null+ sips -z 64 64 "${ICONSET}/icon_512x512.png" --out "${ICONSET}/[email protected]" 2>/dev/null+ sips -z 32 32 "${ICONSET}/icon_512x512.png" --out "${ICONSET}/[email protected]" 2>/dev/null+ sips -z 256 256 "${ICONSET}/icon_512x512.png" --out "${ICONSET}/[email protected]" 2>/dev/null+ iconutil -c icns -o "${ICNS}" "${ICONSET}"+ echo "Generated ${ICNS} ($(du -sh "${ICNS}" | cut -f1))"+ else+ echo "WARNING: No source icon found — app will have generic icon"+ fi+# ── Configure CMake ───────────────────────────────────────────────────- name: Configure CMakeworking-directory: fincept-qt@@ -80,6 +108,12 @@ jobs:file "$BINARY"lipo -info "$BINARY"+ # ── Ensure Python 3.12 is installed (for embedding) ──────────────────+ - name: Install Python 3.12+ run: |+ brew install [email protected] || brew upgrade [email protected] || true+ python3.12 --version+# ── Package (macdeployqt + Python + resources) ────────────────────────- name: Packageworking-directory: fincept-qt@@ -112,36 +146,63 @@ jobs:PLISTfi- # macdeployqt — bundles all Qt frameworks + plugins + fixes rpaths+ # macdeployqt — bundles all Qt frameworks + plugins + fixes rpaths.+ # Errors about missing ODBC/PostgreSQL/Mimer libs are from unused Qt SQL+ # plugins that we don't need. We strip them after deployment.echo "Running macdeployqt...""${MACDEPLOYQT}" "${APP_BUNDLE}" -always-overwrite 2>&1 || true- # Embed Python 3.12 framework- PY_PREFIX="$(brew --prefix [email protected] 2>/dev/null || brew --prefix python3)"- PY_FRAMEWORK="${PY_PREFIX}/Frameworks/Python.framework"+ # Remove unused SQL plugins that have unsatisfied dylib dependencies.+ # These drivers (ODBC, PostgreSQL, Mimer) are not used by FinceptTerminal.+ SQL_PLUGINS="${APP_BUNDLE}/Contents/PlugIns/sqldrivers"+ for unused_plugin in libqsqlodbc.dylib libqsqlpsql.dylib libqsqlmimer.dylib; do+ if [ -f "${SQL_PLUGINS}/${unused_plugin}" ]; then+ rm -f "${SQL_PLUGINS}/${unused_plugin}"+ echo "Removed unused SQL plugin: ${unused_plugin}"+ fi+ done++ # Embed Python 3.12 framework.+ # On macOS CI runners, Python.framework may live in several locations:+ # 1. /Library/Frameworks/Python.framework (system / python.org installer)+ # 2. $(brew --prefix [email protected])/Frameworks/Python.framework (Homebrew)+ # The GitHub Actions runner typically has the system framework at /Library/Frameworks.+ PY_FRAMEWORK=""+ for candidate in \+ "/Library/Frameworks/Python.framework" \+ "$(brew --prefix [email protected] 2>/dev/null)/Frameworks/Python.framework" \+ "$(brew --prefix python3 2>/dev/null)/Frameworks/Python.framework"; do+ if [ -d "${candidate}/Versions" ]; then+ PY_FRAMEWORK="${candidate}"+ break+ fi+ done+BUNDLE_FRAMEWORKS="${APP_BUNDLE}/Contents/Frameworks"mkdir -p "${BUNDLE_FRAMEWORKS}"- if [ -d "${PY_FRAMEWORK}" ]; then- echo "Embedding Python.framework..."+ if [ -n "${PY_FRAMEWORK}" ]; then+ echo "Embedding Python.framework from: ${PY_FRAMEWORK}"cp -R "${PY_FRAMEWORK}" "${BUNDLE_FRAMEWORKS}/"- ln -sf "../Frameworks/Python.framework/Versions/3.12/bin/python3.12" \+ PY_VER="$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"+ ln -sf "../Frameworks/Python.framework/Versions/${PY_VER}/bin/python${PY_VER}" \"${APP_BUNDLE}/Contents/MacOS/python3" 2>/dev/null || true+ echo "Python ${PY_VER} embedded successfully"else- echo "WARNING: Python.framework not found — skipping embed"+ echo "WARNING: Python.framework not found — PythonRunner will require system Python"fi# Copy resources and Python analytics scriptscp -r resources "${APP_BUNDLE}/Contents/Resources/" 2>/dev/null || truecp -r scripts "${APP_BUNDLE}/Contents/Resources/scripts" 2>/dev/null || true- # Move bundle to dist/+ # Stage to dist/cp -r "${APP_BUNDLE}" "${DIST_DIR}/"# Diagnostics- BINARY="${DIST_DIR}/${{ env.APP_NAME }}.app/Contents/MacOS/${{ env.APP_NAME }}"echo "=== Bundle size ===" && du -sh "${DIST_DIR}/${{ env.APP_NAME }}.app"echo "=== Qt frameworks ===" && ls "${DIST_DIR}/${{ env.APP_NAME }}.app/Contents/Frameworks/" | grep -i qt || true- echo "=== Plugins ===" && find "${DIST_DIR}/${{ env.APP_NAME }}.app/Contents/PlugIns" -name "*.dylib" 2>/dev/null | sort || true+ echo "=== SQL plugins (should have no odbc/psql/mimer) ===" \+ && ls "${DIST_DIR}/${{ env.APP_NAME }}.app/Contents/PlugIns/sqldrivers/" 2>/dev/null || true# Tar to preserve execute permissionstar -czf dist.tar.gz -C "${DIST_DIR}" .diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex b25453d5c..cd74547cf 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -3,6 +3,9 @@ name: Linton:workflow_dispatch:+env:+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+jobs:# ── clang-format ─────────────────────────────────────────────────────────────clang-format:diff --git a/.github/workflows/test-setup.yml b/.github/workflows/test-setup.ymlindex 1b5573ce4..0b42e16e5 100644--- a/.github/workflows/test-setup.yml+++ b/.github/workflows/test-setup.yml@@ -3,6 +3,9 @@ name: Test Setup Scriptson:workflow_dispatch:+env:+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+jobs:# ── Test exact Cirrus CI Qt install commands on real macOS runner ──────────# Run this job to validate .cirrus.yml commands before pushing to Cirrus.diff --git a/.github/workflows/translate-readme.yml b/.github/workflows/translate-readme.ymlindex 5564043da..b410ccfe1 100644--- a/.github/workflows/translate-readme.yml+++ b/.github/workflows/translate-readme.yml@@ -3,6 +3,9 @@ name: Translate READMEon:workflow_dispatch:+env:+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+jobs:translate:runs-on: ubuntu-latestdiff --git a/fincept-qt/CMakeLists.txt b/fincept-qt/CMakeLists.txtindex cebcd6650..e6fda9880 100644--- a/fincept-qt/CMakeLists.txt+++ b/fincept-qt/CMakeLists.txt@@ -7,6 +7,17 @@ set(CMAKE_AUTOMOC ON)set(CMAKE_AUTORCC ON)set(CMAKE_AUTOUIC ON)+# ── macOS rpath configuration ────────────────────────────────────────────────+# Set install rpaths so the binary looks inside its own bundle for frameworks.+# Without this, CMake embeds build-tree rpaths (e.g. _deps/qgeoview-build/lib)+# and CPack IFW fails trying to delete them after macdeployqt already rewrote them.+if(APPLE)+ set(CMAKE_MACOSX_RPATH ON)+ set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks;@executable_path/../lib")+ set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF)+ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)+endif()+# Export compile_commands.json for clang-tidyset(CMAKE_EXPORT_COMPILE_COMMANDS ON)@@ -91,6 +102,11 @@ set(CMAKE_SKIP_INSTALL_RULES TRUE CACHE BOOL "" FORCE)# ── Qt6::GuiPrivate availability check ───────────────────────────────────────# QXlsx requires Qt6::GuiPrivate (uses private/qzipreader_p.h internally).+# The Qt6::GuiPrivate target is created as a side-effect of loading Qt6::Gui+# (which is pulled in by Qt6::Widgets above). There is NO separate cmake+# package called "Qt6GuiPrivate" — so find_package(Qt6 COMPONENTS GuiPrivate)+# always fails. The correct check is: if(TARGET Qt6::GuiPrivate).+## The official Qt installer (jurplel/install-qt-action, aqtinstall) always# includes private headers. System Qt packages require an extra package:# Ubuntu/Debian : sudo apt-get install qt6-base-private-dev@@ -99,8 +115,7 @@ set(CMAKE_SKIP_INSTALL_RULES TRUE CACHE BOOL "" FORCE)# macOS Homebrew: included by default# When private headers are absent, QXlsx is disabled and Excel export shows# a "not available" message rather than crashing or failing to build.-find_package(Qt6 QUIET COMPONENTS GuiPrivate)-if(Qt6GuiPrivate_FOUND)+if(TARGET Qt6::GuiPrivate)set(FINCEPT_HAS_PRIVATE_HEADERS TRUE)else()set(FINCEPT_HAS_PRIVATE_HEADERS FALSE)@@ -1318,9 +1333,19 @@ if(APPLE AND DEPLOY_QT)add_custom_command(TARGET FinceptTerminal POST_BUILDCOMMAND "${MACDEPLOYQT_EXECUTABLE}""$<TARGET_BUNDLE_DIR:FinceptTerminal>"- -no-strip+ -no-strip -always-overwriteCOMMENT "Running macdeployqt to bundle Qt frameworks...")+ # Remove unused SQL driver plugins that reference libraries not present+ # on typical macOS installs (ODBC, PostgreSQL, Mimer). These cause+ # harmless but noisy "ERROR: no file at ..." warnings from macdeployqt.+ add_custom_command(TARGET FinceptTerminal POST_BUILD+ COMMAND ${CMAKE_COMMAND} -E rm -f+ "$<TARGET_BUNDLE_DIR:FinceptTerminal>/Contents/PlugIns/sqldrivers/libqsqlodbc.dylib"+ "$<TARGET_BUNDLE_DIR:FinceptTerminal>/Contents/PlugIns/sqldrivers/libqsqlpsql.dylib"+ "$<TARGET_BUNDLE_DIR:FinceptTerminal>/Contents/PlugIns/sqldrivers/libqsqlmimer.dylib"+ COMMENT "Removing unused SQL driver plugins (ODBC/PostgreSQL/Mimer)..."+ )else()message(WARNING "macdeployqt not found — Qt frameworks will not be bundled. ""Pass -DCMAKE_PREFIX_PATH=<Qt install dir> to help CMake find it.")@@ -1876,14 +1901,14 @@ if(FINCEPT_BUILD_INSTALLER)VERSION "${CMAKE_PROJECT_VERSION}"SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/packaging/installer/packages/com.fincept.terminal.core/meta/installscript.qs"LICENSES "AGPL-3.0" "${CMAKE_CURRENT_SOURCE_DIR}/packaging/installer/packages/com.fincept.terminal.core/meta/license.txt"- PRIORITY 100+ SORTING_PRIORITY 100DEFAULT TRUEFORCED_INSTALLATION)cpack_ifw_configure_component(scriptsNAME "com.fincept.terminal.scripts"VERSION "${CMAKE_PROJECT_VERSION}"- PRIORITY 50+ SORTING_PRIORITY 50DEFAULT TRUEDEPENDS "com.fincept.terminal.core")