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
v4.0.1
tilakpatel22780560c6d936
diff --git a/.github/workflows/build-cpp.yml b/.github/workflows/build-cpp.ymlindex d41fc250b..007193e04 100644--- a/.github/workflows/build-cpp.yml+++ b/.github/workflows/build-cpp.yml@@ -535,7 +535,7 @@ jobs:<key>CFBundleIdentifier</key><string>in.fincept.terminal</string><key>CFBundleName</key><string>FinceptTerminal</string><key>CFBundlePackageType</key><string>APPL</string>- <key>CFBundleShortVersionString</key><string>4.0.0</string>+ <key>CFBundleShortVersionString</key><string>4.0.1</string><key>NSHighResolutionCapable</key><true/></dict></plist>PLISTdiff --git a/.github/workflows/build-linux-installer.yml b/.github/workflows/build-linux-installer.ymldeleted file mode 100644index 1dab7817a..000000000--- a/.github/workflows/build-linux-installer.yml+++ /dev/null@@ -1,190 +0,0 @@-name: Build Linux Installer (QtIFW)--on:- workflow_dispatch:- push:- tags:- - 'v*'--env:- BUILD_TYPE: Release- QT_VERSION: "6.8.3"- QT_MODULES: "qtcharts qtwebsockets qtmultimedia"- QT_IFW_VERSION: "4.7"- QT_IFW_TOOL: "tools_ifw"- APP_NAME: FinceptTerminal- FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true--jobs:- build:- name: Linux x64 Installer- runs-on: ubuntu-22.04-- steps:- - name: Checkout- uses: actions/checkout@v4- with:- submodules: recursive- fetch-tags: true-- # ── ccache ────────────────────────────────────────────────────────────- - name: Set up ccache- uses: hendrikmuhs/ccache-action@v1- with:- key: linux-x64-installer-${{ env.QT_VERSION }}- max-size: 500M- update-package-index: true-- # ── System dependencies ───────────────────────────────────────────────- - name: Install system dependencies- run: |- sudo add-apt-repository universe -y- sudo apt-get update -qq- sudo apt-get install -y \- cmake ninja-build g++ \- libssl-dev \- qt6-base-dev qt6-base-private-dev \- qt6-tools-dev qt6-tools-dev-tools \- libqt6charts6-dev libqt6websockets6-dev \- qt6-multimedia-dev libqt6multimediawidgets6 \- libqt6svg6-dev libqt6concurrent6 \- libgl1-mesa-dev libglu1-mesa-dev \- libxkbcommon-dev libxkbcommon-x11-0 \- libxcb-cursor0 libxcb-icccm4 libxcb-image0 \- libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \- libxcb-xinerama0 libxcb-xkb1 \- python3 python3-pip \- pkg-config zip-- # ── Install Qt Installer Framework ────────────────────────────────────- - name: Install Qt Installer Framework- run: |- pip3 install aqtinstall- aqt install-tool linux desktop ${{ env.QT_IFW_TOOL }} \- --outputdir "${{ runner.temp }}/qtifw"- IFW_DIR="${{ runner.temp }}/qtifw/Tools/QtInstallerFramework/${{ env.QT_IFW_VERSION }}"- echo "QT_IFW_DIR=${IFW_DIR}" >> "$GITHUB_ENV"- echo "PATH=${IFW_DIR}/bin:${PATH}" >> "$GITHUB_ENV"- echo "QtIFW installed:"- ls "${IFW_DIR}/bin/" || true-- # ── Configure CMake ───────────────────────────────────────────────────- - name: Configure CMake- working-directory: fincept-qt- run: |- cmake -B build -G Ninja \- -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \- -DCMAKE_C_COMPILER_LAUNCHER=ccache \- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \- -DDEPLOY_QT=ON \- -DFINCEPT_BUILD_INSTALLER=ON-- # ── Build ─────────────────────────────────────────────────────────────- - name: Build- working-directory: fincept-qt- run: cmake --build build --config ${{ env.BUILD_TYPE }} --parallel $(nproc)-- # ── Verify binary ─────────────────────────────────────────────────────- - name: Verify binary- working-directory: fincept-qt- run: |- BINARY="build/${{ env.APP_NAME }}"- if [ ! -f "$BINARY" ]; then- echo "::error::Binary not found at $BINARY"- find build -maxdepth 3 -name "${{ env.APP_NAME }}" 2>/dev/null || true- exit 1- fi- echo "Binary: $BINARY ($(du -sh "$BINARY" | cut -f1))"- file "$BINARY"- ldd "$BINARY" | grep Qt || true-- # ── Stage deployment package ──────────────────────────────────────────- # The IFW installer needs all runtime files in place before CPack runs.- - name: Stage package contents- working-directory: fincept-qt- run: |- set -euo pipefail- BUILD_DIR="build"- STAGE_DIR="${BUILD_DIR}/stage"- mkdir -p "${STAGE_DIR}"-- # Binary- cp "${BUILD_DIR}/${{ env.APP_NAME }}" "${STAGE_DIR}/"- chmod +x "${STAGE_DIR}/${{ env.APP_NAME }}"-- # Resources and Python analytics scripts- cp -r resources "${STAGE_DIR}/resources" 2>/dev/null || true- cp -r scripts "${STAGE_DIR}/scripts" 2>/dev/null || true-- # Qt platform / xcb plugins — needed at runtime even if not via linuxdeployqt- QT6_LIBS_DIR=$(qmake6 -query QT_INSTALL_LIBS 2>/dev/null || true)- QT6_PLUGINS_DIR=$(qmake6 -query QT_INSTALL_PLUGINS 2>/dev/null || true)- if [ -n "${QT6_PLUGINS_DIR}" ]; then- mkdir -p "${STAGE_DIR}/plugins/platforms"- cp -r "${QT6_PLUGINS_DIR}/platforms/"*.so "${STAGE_DIR}/plugins/platforms/" 2>/dev/null || true- mkdir -p "${STAGE_DIR}/plugins/sqldrivers"- cp -r "${QT6_PLUGINS_DIR}/sqldrivers/libqsqlite.so" "${STAGE_DIR}/plugins/sqldrivers/" 2>/dev/null || true- mkdir -p "${STAGE_DIR}/plugins/imageformats"- cp -r "${QT6_PLUGINS_DIR}/imageformats/"*.so "${STAGE_DIR}/plugins/imageformats/" 2>/dev/null || true- mkdir -p "${STAGE_DIR}/plugins/xcbglintegrations"- cp -r "${QT6_PLUGINS_DIR}/xcbglintegrations/"*.so "${STAGE_DIR}/plugins/xcbglintegrations/" 2>/dev/null || true- fi-- # qt.conf so the binary finds plugins relative to itself- printf '[Paths]\nPrefix = .\nPlugins = plugins\nLibraries = .\n' > "${STAGE_DIR}/qt.conf"-- echo "=== Staged files: $(find "${STAGE_DIR}" -type f | wc -l) ==="- du -sh "${STAGE_DIR}"-- # ── Generate installer via CPack IFW ──────────────────────────────────- - name: Generate Installer (CPack IFW)- working-directory: fincept-qt/build- run: |- set -euo pipefail- export PATH="${QT_IFW_DIR}/bin:${PATH}"-- if command -v binarycreator &>/dev/null; then- echo "Running CPack IFW..."- cpack -G IFW --verbose- echo "=== Generated IFW installer ==="- ls -lh ${{ env.APP_NAME }}-*-setup* 2>/dev/null || ls -lh *.run 2>/dev/null || true- else- echo "::error::binarycreator not found — ensure QT_IFW_DIR is set correctly"- exit 1- fi-- # ── Upload installer artifact ─────────────────────────────────────────- - name: Upload Installer- uses: actions/upload-artifact@v4- with:- name: FinceptTerminal-Linux-x64-installer- path: |- fincept-qt/build/FinceptTerminal-*-setup*- fincept-qt/build/FinceptTerminal-*.run- retention-days: 30-- # ── Release: attach installer to GitHub Release ──────────────────────────- release:- needs: build- runs-on: ubuntu-latest- name: Attach Linux Installer to Release- if: "!cancelled() && needs.build.result == 'success' && startsWith(github.ref, 'refs/tags/')"- permissions:- contents: write-- steps:- - name: Download installer artifact- uses: actions/download-artifact@v4- with:- name: FinceptTerminal-Linux-x64-installer- path: installer-- - name: List installer files- run: find installer -type f | sort-- - name: Attach to GitHub Release- uses: softprops/action-gh-release@v2- with:- tag_name: ${{ github.ref_name }}- files: installer/**- fail_on_unmatched_files: falsediff --git a/.github/workflows/build-macos-installer.yml b/.github/workflows/build-macos-installer.ymldeleted file mode 100644index c0a789c25..000000000--- a/.github/workflows/build-macos-installer.yml+++ /dev/null@@ -1,277 +0,0 @@-name: Build macOS Installer (Apple Silicon)--on:- workflow_dispatch:- push:- tags:- - 'v*'--env:- BUILD_TYPE: Release- QT_VERSION: "6.8.3"- QT_MODULES: "qtcharts qtwebsockets qtmultimedia"- QT_IFW_VERSION: "4.7"- QT_IFW_TOOL: "tools_ifw"- APP_NAME: FinceptTerminal- FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true--jobs:- build:- name: macOS arm64 Installer- runs-on: macos-15-- steps:- - name: Checkout- uses: actions/checkout@v4- with:- submodules: recursive- fetch-tags: true-- # ── ccache ────────────────────────────────────────────────────────────- - name: Set up ccache- uses: hendrikmuhs/ccache-action@v1- with:- key: macos-arm64-installer-${{ env.QT_VERSION }}- max-size: 500M-- # ── Install build tools ───────────────────────────────────────────────- - name: Install build tools- 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 }}- uses: jurplel/install-qt-action@v4- with:- version: ${{ env.QT_VERSION }}- arch: clang_64- modules: ${{ env.QT_MODULES }}- cache: true- cache-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.- - name: Install Qt Installer Framework- run: |- pip3 install --break-system-packages aqtinstall- aqt install-tool mac desktop ${{ env.QT_IFW_TOOL }} \- --outputdir "${{ runner.temp }}/qtifw"- IFW_DIR="${{ runner.temp }}/qtifw/Tools/QtInstallerFramework/${{ env.QT_IFW_VERSION }}"- echo "QT_IFW_DIR=${IFW_DIR}" >> "$GITHUB_ENV"- echo "PATH=${IFW_DIR}/bin:${PATH}" >> "$GITHUB_ENV"- 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 CMake- working-directory: fincept-qt- run: |- cmake -B build \- -G Ninja \- -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \- -DCMAKE_PREFIX_PATH="${QT_ROOT_DIR}" \- -DCMAKE_OSX_ARCHITECTURES=arm64 \- -DCMAKE_C_COMPILER_LAUNCHER=ccache \- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \- -DFINCEPT_BUILD_INSTALLER=ON \- -DDEPLOY_QT=ON-- # ── Build ─────────────────────────────────────────────────────────────- - name: Build- working-directory: fincept-qt- run: cmake --build build --config ${{ env.BUILD_TYPE }} --parallel $(sysctl -n hw.logicalcpu)-- # ── Verify binary ─────────────────────────────────────────────────────- - name: Verify binary- working-directory: fincept-qt- run: |- if [ -f "build/${{ env.APP_NAME }}" ]; then- BINARY="build/${{ env.APP_NAME }}"- elif [ -f "build/${{ env.APP_NAME }}.app/Contents/MacOS/${{ env.APP_NAME }}" ]; then- BINARY="build/${{ env.APP_NAME }}.app/Contents/MacOS/${{ env.APP_NAME }}"- else- echo "ERROR: binary not found"- find build -maxdepth 3 -name "${{ env.APP_NAME }}*" || true- exit 1- fi- echo "Binary: $BINARY ($(du -sh "$BINARY" | cut -f1))"- file "$BINARY"- lipo -info "$BINARY"-- # ── Package .app bundle (macdeployqt + Python + resources) ────────────- - name: Package .app bundle- working-directory: fincept-qt- run: |- set -euo pipefail- MACDEPLOYQT="${QT_ROOT_DIR}/bin/macdeployqt"- BUILD_DIR="build"- DIST_DIR="dist"- mkdir -p "${DIST_DIR}"-- # Locate or create .app bundle- if [ -d "${BUILD_DIR}/${{ env.APP_NAME }}.app" ]; then- APP_BUNDLE="${BUILD_DIR}/${{ env.APP_NAME }}.app"- else- APP_BUNDLE="${BUILD_DIR}/${{ env.APP_NAME }}.app"- mkdir -p "${APP_BUNDLE}/Contents/MacOS"- cp "${BUILD_DIR}/${{ env.APP_NAME }}" "${APP_BUNDLE}/Contents/MacOS/${{ env.APP_NAME }}"- chmod +x "${APP_BUNDLE}/Contents/MacOS/${{ env.APP_NAME }}"- cat > "${APP_BUNDLE}/Contents/Info.plist" <<'PLIST'- <?xml version="1.0" encoding="UTF-8"?>- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">- <plist version="1.0"><dict>- <key>CFBundleExecutable</key><string>FinceptTerminal</string>- <key>CFBundleIdentifier</key><string>in.fincept.terminal</string>- <key>CFBundleName</key><string>FinceptTerminal</string>- <key>CFBundlePackageType</key><string>APPL</string>- <key>CFBundleShortVersionString</key><string>4.0.0</string>- <key>NSHighResolutionCapable</key><true/>- </dict></plist>- PLIST- fi-- # 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-- BUNDLE_FRAMEWORKS="${APP_BUNDLE}/Contents/Frameworks"- mkdir -p "${BUNDLE_FRAMEWORKS}"- if [ -n "${PY_FRAMEWORK}" ]; then- echo "Embedding Python.framework from: ${PY_FRAMEWORK}"- cp -R "${PY_FRAMEWORK}" "${BUNDLE_FRAMEWORKS}/"- 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 — PythonRunner will require system Python"- fi-- # Copy resources and Python analytics scripts- cp -r resources "${APP_BUNDLE}/Contents/Resources/" 2>/dev/null || true- cp -r scripts "${APP_BUNDLE}/Contents/Resources/scripts" 2>/dev/null || true-- # Stage to dist/ for CPack / DMG packaging- cp -r "${APP_BUNDLE}" "${DIST_DIR}/"-- # Diagnostics- 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 "=== 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.- - name: Generate Installer- working-directory: fincept-qt/build- run: |- set -euo pipefail- export PATH="${QT_IFW_DIR}/bin:${PATH}"-- if command -v binarycreator &>/dev/null; then- echo "Running CPack IFW..."- cpack -G IFW --verbose- echo "=== Generated IFW installer ==="- ls -lh ${{ env.APP_NAME }}-*-setup* 2>/dev/null || ls -lh *.app *.dmg 2>/dev/null || true- else- echo "::warning::binarycreator not found — falling back to DMG via hdiutil"- STAGING="$(mktemp -d)/dmg_staging"- mkdir -p "${STAGING}"- cp -r "../dist/${{ env.APP_NAME }}.app" "${STAGING}/"- hdiutil create \- -volname "${{ env.APP_NAME }}" \- -srcfolder "${STAGING}" \- -ov -format UDZO \- "${{ env.APP_NAME }}-macOS-arm64.dmg"- echo "=== Generated DMG ==="- ls -lh ${{ env.APP_NAME }}-*.dmg- fi-- # ── Upload installer artifact ─────────────────────────────────────────- - name: Upload Installer- uses: actions/upload-artifact@v4- with:- name: FinceptTerminal-macOS-arm64-installer- path: |- fincept-qt/build/FinceptTerminal-*-setup*- fincept-qt/build/FinceptTerminal-*.dmg- retention-days: 30-- # ── Release: attach installer to GitHub Release ──────────────────────────- release:- needs: build- runs-on: ubuntu-latest- name: Attach macOS Installer to Release- if: "!cancelled() && needs.build.result == 'success' && startsWith(github.ref, 'refs/tags/')"- permissions:- contents: write-- steps:- - name: Download installer artifact- uses: actions/download-artifact@v4- with:- name: FinceptTerminal-macOS-arm64-installer- path: installer-- - name: List installer files- run: find installer -type f | sort-- - name: Attach to GitHub Release- uses: softprops/action-gh-release@v2- with:- tag_name: ${{ github.ref_name }}- files: installer/**- fail_on_unmatched_files: falsediff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.ymlindex 80a95f461..1dedc9b16 100644--- a/.github/workflows/build-macos.yml+++ b/.github/workflows/build-macos.yml@@ -140,7 +140,7 @@ jobs:<key>CFBundleIdentifier</key><string>in.fincept.terminal</string><key>CFBundleName</key><string>FinceptTerminal</string><key>CFBundlePackageType</key><string>APPL</string>- <key>CFBundleShortVersionString</key><string>4.0.0</string>+ <key>CFBundleShortVersionString</key><string>4.0.1</string><key>NSHighResolutionCapable</key><true/></dict></plist>PLISTdiff --git a/.github/workflows/build-windows-installer.yml b/.github/workflows/build-windows-installer.ymldeleted file mode 100644index 85c5a0759..000000000--- a/.github/workflows/build-windows-installer.yml+++ /dev/null@@ -1,250 +0,0 @@-name: Build Windows Installer (QtIFW)--on:- workflow_dispatch:- push:- tags:- - 'v*'--env:- BUILD_TYPE: Release- QT_VERSION: "6.8.3"- QT_MODULES: "qtcharts qtwebsockets qtmultimedia"- QT_IFW_VERSION: "4.7"- QT_IFW_TOOL: "tools_ifw"- APP_NAME: FinceptTerminal- FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true--jobs:- build:- name: Windows x64 Installer- runs-on: windows-2022-- steps:- - name: Checkout- uses: actions/checkout@v4- with:- submodules: recursive- fetch-tags: true-- # ── OpenSSL dev libs ──────────────────────────────────────────────────- # windows-2022 runners ship only the "Light" OpenSSL (no .lib files).- # vcpkg is pre-installed on every windows-2022 runner at C:\vcpkg.- - name: Install OpenSSL- shell: bash- run: |- set -euo pipefail- VCPKG_ROOT="${VCPKG_INSTALLATION_ROOT:-C:/vcpkg}"- echo "Using vcpkg at: $VCPKG_ROOT"- "$VCPKG_ROOT/vcpkg" install openssl:x64-windows --no-print-usage- OPENSSL_DIR="$VCPKG_ROOT/installed/x64-windows"- echo "OPENSSL_ROOT_DIR=$OPENSSL_DIR" >> "$GITHUB_ENV"- echo "OpenSSL installed at: $OPENSSL_DIR"- ls "$OPENSSL_DIR/lib/libcrypto.lib" && echo "libcrypto.lib confirmed"-- # ── Install Qt 6.8.3 ─────────────────────────────────────────────────- - name: Install Qt ${{ env.QT_VERSION }}- uses: jurplel/install-qt-action@v4- with:- version: ${{ env.QT_VERSION }}- arch: win64_msvc2022_64- modules: ${{ env.QT_MODULES }}- cache: true- cache-key-prefix: qt-windows-x64-installer-- # ── Install Qt Installer Framework ────────────────────────────────────- - name: Install Qt Installer Framework- shell: bash- run: |- pip install aqtinstall- aqt install-tool windows desktop ${{ env.QT_IFW_TOOL }} \- --outputdir "${{ runner.temp }}/qtifw"- IFW_DIR="${{ runner.temp }}/qtifw/Tools/QtInstallerFramework/${{ env.QT_IFW_VERSION }}"- echo "QT_IFW_DIR=${IFW_DIR}" >> "$GITHUB_ENV"- echo "PATH=${IFW_DIR}/bin:${PATH}" >> "$GITHUB_ENV"- echo "QtIFW installed:"- ls "${IFW_DIR}/bin/" || true-- # ── Configure CMake ───────────────────────────────────────────────────- - name: Configure CMake- shell: bash- working-directory: fincept-qt- run: |- cmake -B build \- -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \- -DCMAKE_PREFIX_PATH="${QT_ROOT_DIR}" \- -DOPENSSL_ROOT_DIR="${OPENSSL_ROOT_DIR}" \- -DDEPLOY_QT=ON \- -DFINCEPT_BUILD_INSTALLER=ON-- # ── Build ─────────────────────────────────────────────────────────────- - name: Build- shell: bash- working-directory: fincept-qt- run: cmake --build build --config ${{ env.BUILD_TYPE }} --parallel 4-- # ── Verify binary ─────────────────────────────────────────────────────- - name: Verify binary- shell: bash- working-directory: fincept-qt- run: |- BINARY="build/Release/${{ env.APP_NAME }}.exe"- if [ ! -f "$BINARY" ]; then- echo "::error::Binary not found at $BINARY"- find build -maxdepth 3 -name "${{ env.APP_NAME }}.exe" 2>/dev/null || true- exit 1- fi- echo "Binary: $BINARY ($(du -sh "$BINARY" | cut -f1))"-- # ── Deploy Qt DLLs ────────────────────────────────────────────────────- - name: Deploy Qt DLLs (windeployqt)- shell: bash- working-directory: fincept-qt- run: |- set -euo pipefail- BUILD_DIR="build/Release"- QT_BIN="${QT_ROOT_DIR}/bin"- QT_PLUGINS="${QT_ROOT_DIR}/plugins"-- # windeployqt — handles the bulk of Qt DLL discovery- WDQT="${QT_BIN}/windeployqt.exe"- if [ -f "$WDQT" ]; then- echo "Running windeployqt..."- "$WDQT" \- --release \- --no-translations \- --compiler-runtime \- --include-soft-plugins \- --force \- "${BUILD_DIR}/${{ env.APP_NAME }}.exe"- else- echo "::warning::windeployqt not found at ${WDQT}"- fi-- # Qt Core DLLs (belt+suspenders)- for qt_dll in \- Qt6Core.dll Qt6Gui.dll Qt6Widgets.dll \- Qt6Charts.dll Qt6PrintSupport.dll \- Qt6Network.dll Qt6Sql.dll Qt6Concurrent.dll \- Qt6WebSockets.dll Qt6Multimedia.dll Qt6MultimediaWidgets.dll \- Qt6OpenGL.dll Qt6OpenGLWidgets.dll \- Qt6Svg.dll Qt6Xml.dll Qt6TextToSpeech.dll; do- if [ -f "${QT_BIN}/${qt_dll}" ] && [ ! -f "${BUILD_DIR}/${qt_dll}" ]; then- cp "${QT_BIN}/${qt_dll}" "${BUILD_DIR}/"- fi- done-- # OpenSSL DLLs — Qt ships them in its own bin/- for ssl_dll in \- libssl-3-x64.dll libcrypto-3-x64.dll \- libssl-3.dll libcrypto-3.dll; do- if [ -f "${QT_BIN}/${ssl_dll}" ] && [ ! -f "${BUILD_DIR}/${ssl_dll}" ]; then- cp "${QT_BIN}/${ssl_dll}" "${BUILD_DIR}/"- echo "Copied ${ssl_dll} from Qt bin"- fi- done- # Also check OPENSSL_ROOT_DIR bin/ if Qt didn't ship them- for ssl_dll in libssl-3-x64.dll libcrypto-3-x64.dll libssl-3.dll libcrypto-3.dll; do- if [ -f "${OPENSSL_ROOT_DIR}/bin/${ssl_dll}" ] && [ ! -f "${BUILD_DIR}/${ssl_dll}" ]; then- cp "${OPENSSL_ROOT_DIR}/bin/${ssl_dll}" "${BUILD_DIR}/"- echo "Copied ${ssl_dll} from OPENSSL_ROOT_DIR"- fi- done-- # MSVC Runtime DLLs- for vcrt_dll in \- vcruntime140.dll vcruntime140_1.dll vcruntime140_2.dll \- msvcp140.dll msvcp140_1.dll msvcp140_2.dll \- concrt140.dll vccorlib140.dll; do- SYS32="/c/Windows/System32/${vcrt_dll}"- if [ -f "$SYS32" ] && [ ! -f "${BUILD_DIR}/${vcrt_dll}" ]; then- cp "$SYS32" "${BUILD_DIR}/"- fi- done-- # Qt plugin directories- for plugin_dir in platforms sqldrivers imageformats iconengines styles tls \- multimedia texttospeech networkinformation platforminputcontexts \- printsupport generic; do- if [ -d "${QT_PLUGINS}/${plugin_dir}" ]; then- mkdir -p "${BUILD_DIR}/${plugin_dir}"- cp -n "${QT_PLUGINS}/${plugin_dir}/"*.dll "${BUILD_DIR}/${plugin_dir}/" 2>/dev/null || true- fi- done-- # D3D / OpenGL fallback- for d3d_dll in d3dcompiler_47.dll opengl32sw.dll libEGL.dll libGLESv2.dll \- dxcompiler.dll dxil.dll; do- if [ -f "${QT_BIN}/${d3d_dll}" ] && [ ! -f "${BUILD_DIR}/${d3d_dll}" ]; then- cp "${QT_BIN}/${d3d_dll}" "${BUILD_DIR}/"- fi- done-- # ICU DLLs- for icu_dll in "${QT_BIN}"/icu*.dll; do- base=$(basename "$icu_dll")- if [ -f "$icu_dll" ] && [ ! -f "${BUILD_DIR}/${base}" ]; then- cp "$icu_dll" "${BUILD_DIR}/"- fi- done-- # Copy resources and Python analytics scripts- cp -r resources "${BUILD_DIR}/resources" 2>/dev/null || true- cp -r scripts "${BUILD_DIR}/scripts" 2>/dev/null || true-- printf '[Paths]\nPrefix = .\nPlugins = .\nLibraries = .\n' > "${BUILD_DIR}/qt.conf"- echo "=== Build dir: $(find "${BUILD_DIR}" -type f | wc -l) files ==="-- # ── Generate installer via CPack IFW ──────────────────────────────────- - name: Generate Installer (CPack IFW)- shell: bash- working-directory: fincept-qt/build- run: |- set -euo pipefail- export PATH="${QT_IFW_DIR}/bin:${PATH}"-- if command -v binarycreator &>/dev/null; then- echo "Running CPack IFW..."- cpack -G IFW -C ${{ env.BUILD_TYPE }} --verbose- echo "=== Generated IFW installer ==="- ls -lh ${{ env.APP_NAME }}-*-setup* 2>/dev/null || ls -lh *.exe 2>/dev/null || true- else- echo "::error::binarycreator not found — ensure QT_IFW_DIR is set correctly"- exit 1- fi-- # ── Upload installer artifact ─────────────────────────────────────────- - name: Upload Installer- uses: actions/upload-artifact@v4- with:- name: FinceptTerminal-Windows-x64-installer- path: |- fincept-qt/build/FinceptTerminal-*-setup*- fincept-qt/build/FinceptTerminal-*.exe- retention-days: 30-- # ── Release: attach installer to GitHub Release ──────────────────────────- release:- needs: build- runs-on: ubuntu-latest- name: Attach Windows Installer to Release- if: "!cancelled() && needs.build.result == 'success' && startsWith(github.ref, 'refs/tags/')"- permissions:- contents: write-- steps:- - name: Download installer artifact- uses: actions/download-artifact@v4- with:- name: FinceptTerminal-Windows-x64-installer- path: installer-- - name: List installer files- run: find installer -type f | sort-- - name: Attach to GitHub Release- uses: softprops/action-gh-release@v2- with:- tag_name: ${{ github.ref_name }}- files: installer/**- fail_on_unmatched_files: falsediff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 000000000..f1df2deb5--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,760 @@+name: Release — Build All Installers++# ─────────────────────────────────────────────────────────────────────────────+# Triggered on:+# • git tag push (v*) → builds installers, creates GH Release, updates README+# • workflow_dispatch → manual run (skips release + README update)+# ─────────────────────────────────────────────────────────────────────────────+on:+ push:+ tags:+ - 'v*'+ workflow_dispatch:++env:+ BUILD_TYPE: Release+ QT_VERSION: "6.8.3"+ QT_MODULES: "qtcharts qtwebsockets qtmultimedia"+ QT_IFW_VERSION: "4.7"+ QT_IFW_TOOL: "tools_ifw"+ APP_NAME: FinceptTerminal+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true++# ═════════════════════════════════════════════════════════════════════════════+# JOB 1 — Windows x64 Installer (QtIFW .exe)+# ═════════════════════════════════════════════════════════════════════════════+jobs:+ build-windows:+ name: Windows x64 Installer+ runs-on: windows-2022++ steps:+ - name: Checkout+ uses: actions/checkout@v4+ with:+ submodules: recursive+ fetch-tags: true++ # ── OpenSSL dev libs ──────────────────────────────────────────────────+ - name: Install OpenSSL+ shell: bash+ run: |+ set -euo pipefail+ VCPKG_ROOT="${VCPKG_INSTALLATION_ROOT:-C:/vcpkg}"+ "$VCPKG_ROOT/vcpkg" install openssl:x64-windows --no-print-usage+ OPENSSL_DIR="$VCPKG_ROOT/installed/x64-windows"+ echo "OPENSSL_ROOT_DIR=$OPENSSL_DIR" >> "$GITHUB_ENV"+ ls "$OPENSSL_DIR/lib/libcrypto.lib" && echo "libcrypto.lib confirmed"++ # ── Qt ────────────────────────────────────────────────────────────────+ - name: Install Qt ${{ env.QT_VERSION }}+ uses: jurplel/install-qt-action@v4+ with:+ version: ${{ env.QT_VERSION }}+ arch: win64_msvc2022_64+ modules: ${{ env.QT_MODULES }}+ cache: true+ cache-key-prefix: qt-windows-x64-release++ # ── Qt Installer Framework ────────────────────────────────────────────+ - name: Install Qt Installer Framework+ shell: bash+ run: |+ pip install aqtinstall+ aqt install-tool windows desktop ${{ env.QT_IFW_TOOL }} \+ --outputdir "${{ runner.temp }}/qtifw"+ IFW_DIR="${{ runner.temp }}/qtifw/Tools/QtInstallerFramework/${{ env.QT_IFW_VERSION }}"+ echo "QT_IFW_DIR=${IFW_DIR}" >> "$GITHUB_ENV"+ echo "PATH=${IFW_DIR}/bin:${PATH}" >> "$GITHUB_ENV"++ # ── Configure + Build ─────────────────────────────────────────────────+ - name: Configure CMake+ shell: bash+ working-directory: fincept-qt+ run: |+ cmake -B build \+ -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \+ -DCMAKE_PREFIX_PATH="${QT_ROOT_DIR}" \+ -DOPENSSL_ROOT_DIR="${OPENSSL_ROOT_DIR}" \+ -DDEPLOY_QT=ON \+ -DFINCEPT_BUILD_INSTALLER=ON++ - name: Build+ shell: bash+ working-directory: fincept-qt+ run: cmake --build build --config ${{ env.BUILD_TYPE }} --parallel 4++ # ── Verify ───────────────────────────────────────────────────────────+ - name: Verify binary+ shell: bash+ working-directory: fincept-qt+ run: |+ BINARY="build/Release/${{ env.APP_NAME }}.exe"+ [ -f "$BINARY" ] || { echo "::error::Binary not found"; exit 1; }+ echo "Binary: $BINARY ($(du -sh "$BINARY" | cut -f1))"++ # ── Deploy Qt DLLs ────────────────────────────────────────────────────+ - name: Deploy Qt DLLs (windeployqt)+ shell: bash+ working-directory: fincept-qt+ run: |+ set -euo pipefail+ BUILD_DIR="build/Release"+ QT_BIN="${QT_ROOT_DIR}/bin"+ QT_PLUGINS="${QT_ROOT_DIR}/plugins"++ WDQT="${QT_BIN}/windeployqt.exe"+ [ -f "$WDQT" ] && "$WDQT" --release --no-translations --compiler-runtime \+ --include-soft-plugins --force "${BUILD_DIR}/${{ env.APP_NAME }}.exe"++ for qt_dll in \+ Qt6Core.dll Qt6Gui.dll Qt6Widgets.dll Qt6Charts.dll Qt6PrintSupport.dll \+ Qt6Network.dll Qt6Sql.dll Qt6Concurrent.dll Qt6WebSockets.dll \+ Qt6Multimedia.dll Qt6MultimediaWidgets.dll Qt6OpenGL.dll \+ Qt6OpenGLWidgets.dll Qt6Svg.dll Qt6Xml.dll Qt6TextToSpeech.dll; do+ [ -f "${QT_BIN}/${qt_dll}" ] && [ ! -f "${BUILD_DIR}/${qt_dll}" ] && \+ cp "${QT_BIN}/${qt_dll}" "${BUILD_DIR}/" || true+ done++ for ssl_dll in libssl-3-x64.dll libcrypto-3-x64.dll libssl-3.dll libcrypto-3.dll; do+ [ -f "${QT_BIN}/${ssl_dll}" ] && [ ! -f "${BUILD_DIR}/${ssl_dll}" ] && \+ cp "${QT_BIN}/${ssl_dll}" "${BUILD_DIR}/" || true+ [ -f "${OPENSSL_ROOT_DIR}/bin/${ssl_dll}" ] && [ ! -f "${BUILD_DIR}/${ssl_dll}" ] && \+ cp "${OPENSSL_ROOT_DIR}/bin/${ssl_dll}" "${BUILD_DIR}/" || true+ done++ for vcrt_dll in vcruntime140.dll vcruntime140_1.dll msvcp140.dll msvcp140_1.dll \+ msvcp140_2.dll concrt140.dll; do+ SYS32="/c/Windows/System32/${vcrt_dll}"+ [ -f "$SYS32" ] && [ ! -f "${BUILD_DIR}/${vcrt_dll}" ] && \+ cp "$SYS32" "${BUILD_DIR}/" || true+ done++ for plugin_dir in platforms sqldrivers imageformats iconengines styles tls \+ multimedia texttospeech networkinformation platforminputcontexts printsupport generic; do+ [ -d "${QT_PLUGINS}/${plugin_dir}" ] && \+ { mkdir -p "${BUILD_DIR}/${plugin_dir}"; \+ cp -n "${QT_PLUGINS}/${plugin_dir}/"*.dll "${BUILD_DIR}/${plugin_dir}/" 2>/dev/null || true; }+ done++ for d3d_dll in d3dcompiler_47.dll opengl32sw.dll libEGL.dll libGLESv2.dll; do+ [ -f "${QT_BIN}/${d3d_dll}" ] && [ ! -f "${BUILD_DIR}/${d3d_dll}" ] && \+ cp "${QT_BIN}/${d3d_dll}" "${BUILD_DIR}/" || true+ done++ for icu_dll in "${QT_BIN}"/icu*.dll; do+ base=$(basename "$icu_dll")+ [ -f "$icu_dll" ] && [ ! -f "${BUILD_DIR}/${base}" ] && \+ cp "$icu_dll" "${BUILD_DIR}/" || true+ done++ cp -r resources "${BUILD_DIR}/resources" 2>/dev/null || true+ cp -r scripts "${BUILD_DIR}/scripts" 2>/dev/null || true+ printf '[Paths]\nPrefix = .\nPlugins = .\nLibraries = .\n' > "${BUILD_DIR}/qt.conf"+ echo "=== $(find "${BUILD_DIR}" -type f | wc -l) files staged ==="++ # ── Generate Installer ────────────────────────────────────────────────+ - name: Generate Installer (CPack IFW)+ shell: bash+ working-directory: fincept-qt/build+ run: |+ set -euo pipefail+ export PATH="${QT_IFW_DIR}/bin:${PATH}"+ command -v binarycreator || { echo "::error::binarycreator not found"; exit 1; }+ cpack -G IFW -C ${{ env.BUILD_TYPE }} --verbose+ ls -lh ${{ env.APP_NAME }}-*-setup* 2>/dev/null || ls -lh *.exe 2>/dev/null || true++ # ── Upload ────────────────────────────────────────────────────────────+ - name: Upload artifact+ uses: actions/upload-artifact@v4+ with:+ name: FinceptTerminal-Windows-x64-installer+ path: |+ fincept-qt/build/FinceptTerminal-*-setup*+ fincept-qt/build/FinceptTerminal-*.exe+ retention-days: 30++# ═════════════════════════════════════════════════════════════════════════════+# JOB 2 — Linux x64 Installer (QtIFW .run)+# ═════════════════════════════════════════════════════════════════════════════+ build-linux:+ name: Linux x64 Installer+ runs-on: ubuntu-22.04++ steps:+ - name: Checkout+ uses: actions/checkout@v4+ with:+ submodules: recursive+ fetch-tags: true++ - name: Set up ccache+ uses: hendrikmuhs/ccache-action@v1+ with:+ key: linux-x64-release-${{ env.QT_VERSION }}+ max-size: 500M+ update-package-index: true++ # ── System deps ───────────────────────────────────────────────────────+ - name: Install system dependencies+ run: |+ sudo add-apt-repository universe -y+ sudo apt-get update -qq+ sudo apt-get install -y \+ cmake ninja-build g++ \+ libssl-dev \+ qt6-base-dev qt6-base-private-dev \+ qt6-tools-dev qt6-tools-dev-tools \+ libqt6charts6-dev libqt6websockets6-dev \+ qt6-multimedia-dev libqt6multimediawidgets6 \+ libqt6svg6-dev libqt6concurrent6 \+ libgl1-mesa-dev libglu1-mesa-dev \+ libxkbcommon-dev libxkbcommon-x11-0 \+ libxcb-cursor0 libxcb-icccm4 libxcb-image0 \+ libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \+ libxcb-xinerama0 libxcb-xkb1 \+ python3 python3-pip pkg-config zip++ # ── Qt Installer Framework ────────────────────────────────────────────+ - name: Install Qt Installer Framework+ run: |+ pip3 install aqtinstall+ aqt install-tool linux desktop ${{ env.QT_IFW_TOOL }} \+ --outputdir "${{ runner.temp }}/qtifw"+ IFW_DIR="${{ runner.temp }}/qtifw/Tools/QtInstallerFramework/${{ env.QT_IFW_VERSION }}"+ echo "QT_IFW_DIR=${IFW_DIR}" >> "$GITHUB_ENV"+ echo "PATH=${IFW_DIR}/bin:${PATH}" >> "$GITHUB_ENV"++ # ── Configure + Build ─────────────────────────────────────────────────+ - name: Configure CMake+ working-directory: fincept-qt+ run: |+ cmake -B build -G Ninja \+ -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \+ -DCMAKE_C_COMPILER_LAUNCHER=ccache \+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \+ -DDEPLOY_QT=ON \+ -DFINCEPT_BUILD_INSTALLER=ON++ - name: Build+ working-directory: fincept-qt+ run: cmake --build build --config ${{ env.BUILD_TYPE }} --parallel $(nproc)++ # ── Verify ───────────────────────────────────────────────────────────+ - name: Verify binary+ working-directory: fincept-qt+ run: |+ BINARY="build/${{ env.APP_NAME }}"+ [ -f "$BINARY" ] || { echo "::error::Binary not found"; exit 1; }+ echo "Binary: $BINARY ($(du -sh "$BINARY" | cut -f1))"+ file "$BINARY"++ # ── Stage package ─────────────────────────────────────────────────────+ - name: Stage package contents+ working-directory: fincept-qt+ run: |+ set -euo pipefail+ STAGE_DIR="build/stage"+ mkdir -p "${STAGE_DIR}"+ cp "build/${{ env.APP_NAME }}" "${STAGE_DIR}/"+ chmod +x "${STAGE_DIR}/${{ env.APP_NAME }}"+ cp -r resources "${STAGE_DIR}/resources" 2>/dev/null || true+ cp -r scripts "${STAGE_DIR}/scripts" 2>/dev/null || true++ QT6_PLUGINS_DIR=$(qmake6 -query QT_INSTALL_PLUGINS 2>/dev/null || true)+ if [ -n "${QT6_PLUGINS_DIR}" ]; then+ for plugin_dir in platforms sqldrivers imageformats xcbglintegrations; do+ mkdir -p "${STAGE_DIR}/plugins/${plugin_dir}"+ cp -r "${QT6_PLUGINS_DIR}/${plugin_dir}/"*.so \+ "${STAGE_DIR}/plugins/${plugin_dir}/" 2>/dev/null || true+ done+ fi++ printf '[Paths]\nPrefix = .\nPlugins = plugins\nLibraries = .\n' \+ > "${STAGE_DIR}/qt.conf"+ echo "=== $(find "${STAGE_DIR}" -type f | wc -l) files staged ==="++ # ── Generate Installer ────────────────────────────────────────────────+ - name: Generate Installer (CPack IFW)+ working-directory: fincept-qt/build+ run: |+ set -euo pipefail+ export PATH="${QT_IFW_DIR}/bin:${PATH}"+ command -v binarycreator || { echo "::error::binarycreator not found"; exit 1; }+ cpack -G IFW --verbose+ ls -lh ${{ env.APP_NAME }}-*-setup* 2>/dev/null || ls -lh *.run 2>/dev/null || true++ # ── Upload ────────────────────────────────────────────────────────────+ - name: Upload artifact+ uses: actions/upload-artifact@v4+ with:+ name: FinceptTerminal-Linux-x64-installer+ path: |+ fincept-qt/build/FinceptTerminal-*-setup*+ fincept-qt/build/FinceptTerminal-*.run+ retention-days: 30++# ═════════════════════════════════════════════════════════════════════════════+# JOB 3 — macOS arm64 Installer (DMG via QtIFW or hdiutil fallback)+# ═════════════════════════════════════════════════════════════════════════════+ build-macos:+ name: macOS arm64 Installer+ runs-on: macos-15++ steps:+ - name: Checkout+ uses: actions/checkout@v4+ with:+ submodules: recursive+ fetch-tags: true++ - name: Set up ccache+ uses: hendrikmuhs/ccache-action@v1+ with:+ key: macos-arm64-release-${{ env.QT_VERSION }}+ max-size: 500M++ - name: Install build tools+ run: brew install ninja cmake || brew upgrade ninja cmake || true++ # ── Qt ────────────────────────────────────────────────────────────────+ - name: Install Qt ${{ env.QT_VERSION }}+ uses: jurplel/install-qt-action@v4+ with:+ version: ${{ env.QT_VERSION }}+ arch: clang_64+ modules: ${{ env.QT_MODULES }}+ cache: true+ cache-key-prefix: qt-macos-arm64-release++ - name: Install Python 3.12+ run: brew install [email protected] || brew upgrade [email protected] || true++ # ── Qt Installer Framework ────────────────────────────────────────────+ - name: Install Qt Installer Framework+ run: |+ pip3 install --break-system-packages aqtinstall+ aqt install-tool mac desktop ${{ env.QT_IFW_TOOL }} \+ --outputdir "${{ runner.temp }}/qtifw"+ IFW_DIR="${{ runner.temp }}/qtifw/Tools/QtInstallerFramework/${{ env.QT_IFW_VERSION }}"+ echo "QT_IFW_DIR=${IFW_DIR}" >> "$GITHUB_ENV"+ echo "PATH=${IFW_DIR}/bin:${PATH}" >> "$GITHUB_ENV"++ # ── Icon ──────────────────────────────────────────────────────────────+ - 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"+ 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}"+ else+ echo "WARNING: No source icon — app will use generic icon"+ fi++ # ── Configure + Build ─────────────────────────────────────────────────+ - name: Configure CMake+ working-directory: fincept-qt+ run: |+ cmake -B build -G Ninja \+ -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \+ -DCMAKE_PREFIX_PATH="${QT_ROOT_DIR}" \+ -DCMAKE_OSX_ARCHITECTURES=arm64 \+ -DCMAKE_C_COMPILER_LAUNCHER=ccache \+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \+ -DFINCEPT_BUILD_INSTALLER=ON \+ -DDEPLOY_QT=ON++ - name: Build+ working-directory: fincept-qt+ run: cmake --build build --config ${{ env.BUILD_TYPE }} \+ --parallel $(sysctl -n hw.logicalcpu)++ # ── Verify ───────────────────────────────────────────────────────────+ - name: Verify binary+ working-directory: fincept-qt+ run: |+ if [ -f "build/${{ env.APP_NAME }}" ]; then+ BINARY="build/${{ env.APP_NAME }}"+ elif [ -f "build/${{ env.APP_NAME }}.app/Contents/MacOS/${{ env.APP_NAME }}" ]; then+ BINARY="build/${{ env.APP_NAME }}.app/Contents/MacOS/${{ env.APP_NAME }}"+ else+ echo "::error::Binary not found"+ find build -maxdepth 3 -name "${{ env.APP_NAME }}*" || true+ exit 1+ fi+ echo "Binary: $BINARY ($(du -sh "$BINARY" | cut -f1))"+ lipo -info "$BINARY"++ # ── Package .app bundle ───────────────────────────────────────────────+ - name: Package .app bundle+ working-directory: fincept-qt+ run: |+ set -euo pipefail+ BUILD_DIR="build"+ DIST_DIR="dist"+ mkdir -p "${DIST_DIR}"++ if [ -d "${BUILD_DIR}/${{ env.APP_NAME }}.app" ]; then+ APP_BUNDLE="${BUILD_DIR}/${{ env.APP_NAME }}.app"+ else+ APP_BUNDLE="${BUILD_DIR}/${{ env.APP_NAME }}.app"+ mkdir -p "${APP_BUNDLE}/Contents/MacOS"+ cp "${BUILD_DIR}/${{ env.APP_NAME }}" "${APP_BUNDLE}/Contents/MacOS/${{ env.APP_NAME }}"+ chmod +x "${APP_BUNDLE}/Contents/MacOS/${{ env.APP_NAME }}"+ cat > "${APP_BUNDLE}/Contents/Info.plist" <<'PLIST'+ <?xml version="1.0" encoding="UTF-8"?>+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+ <plist version="1.0"><dict>+ <key>CFBundleExecutable</key><string>FinceptTerminal</string>+ <key>CFBundleIdentifier</key><string>in.fincept.terminal</string>+ <key>CFBundleName</key><string>FinceptTerminal</string>+ <key>CFBundlePackageType</key><string>APPL</string>+ <key>CFBundleShortVersionString</key><string>4.0.1</string>+ <key>NSHighResolutionCapable</key><true/>+ </dict></plist>+ PLIST+ fi++ # Embed Python 3.12+ 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+ [ -d "${candidate}/Versions" ] && { PY_FRAMEWORK="${candidate}"; break; }+ done++ BUNDLE_FRAMEWORKS="${APP_BUNDLE}/Contents/Frameworks"+ mkdir -p "${BUNDLE_FRAMEWORKS}"+ if [ -n "${PY_FRAMEWORK}" ]; then+ echo "Embedding Python.framework from: ${PY_FRAMEWORK}"+ cp -R "${PY_FRAMEWORK}" "${BUNDLE_FRAMEWORKS}/"+ 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"+ else+ echo "WARNING: Python.framework not found"+ fi++ cp -r resources "${APP_BUNDLE}/Contents/Resources/" 2>/dev/null || true+ cp -r scripts "${APP_BUNDLE}/Contents/Resources/scripts" 2>/dev/null || true+ cp -r "${APP_BUNDLE}" "${DIST_DIR}/"+ echo "Bundle size: $(du -sh "${DIST_DIR}/${{ env.APP_NAME }}.app" | cut -f1)"++ # ── Generate Installer (IFW → DMG fallback) ───────────────────────────+ - name: Generate Installer+ working-directory: fincept-qt/build+ run: |+ set -euo pipefail+ export PATH="${QT_IFW_DIR}/bin:${PATH}"++ if command -v binarycreator &>/dev/null; then+ echo "Running CPack IFW..."+ cpack -G IFW --verbose+ ls -lh ${{ env.APP_NAME }}-*-setup* 2>/dev/null || ls -lh *.dmg 2>/dev/null || true+ else+ echo "::warning::binarycreator not found — falling back to DMG via hdiutil"+ STAGING="$(mktemp -d)/dmg_staging"+ mkdir -p "${STAGING}"+ cp -r "../dist/${{ env.APP_NAME }}.app" "${STAGING}/"+ hdiutil create \+ -volname "${{ env.APP_NAME }}" \+ -srcfolder "${STAGING}" \+ -ov -format UDZO \+ "${{ env.APP_NAME }}-macOS-arm64.dmg"+ ls -lh ${{ env.APP_NAME }}-*.dmg+ fi++ # ── Upload ────────────────────────────────────────────────────────────+ - name: Upload artifact+ uses: actions/upload-artifact@v4+ with:+ name: FinceptTerminal-macOS-arm64-installer+ path: |+ fincept-qt/build/FinceptTerminal-*-setup*+ fincept-qt/build/FinceptTerminal-*.dmg+ retention-days: 30++# ═════════════════════════════════════════════════════════════════════════════+# JOB 4 — Create GitHub Release and attach all installers+# Only runs on tag push after all builds succeed+# ═════════════════════════════════════════════════════════════════════════════+ release:+ name: Create GitHub Release+ needs: [build-windows, build-linux, build-macos]+ runs-on: ubuntu-latest+ if: >-+ !cancelled() &&+ needs.build-windows.result == 'success' &&+ needs.build-linux.result == 'success' &&+ needs.build-macos.result == 'success' &&+ startsWith(github.ref, 'refs/tags/')+ permissions:+ contents: write++ outputs:+ # Pass the tag so update-readme can use it+ tag: ${{ github.ref_name }}++ steps:+ - name: Download Windows installer+ uses: actions/download-artifact@v4+ with:+ name: FinceptTerminal-Windows-x64-installer+ path: dist/windows++ - name: Download Linux installer+ uses: actions/download-artifact@v4+ with:+ name: FinceptTerminal-Linux-x64-installer+ path: dist/linux++ - name: Download macOS installer+ uses: actions/download-artifact@v4+ with:+ name: FinceptTerminal-macOS-arm64-installer+ path: dist/macos++ - name: List release assets+ run: find dist -type f | sort++ - name: Create GitHub Release and attach installers+ uses: softprops/action-gh-release@v2+ with:+ tag_name: ${{ github.ref_name }}+ name: "Fincept Terminal ${{ github.ref_name }}"+ body: |+ ## Fincept Terminal ${{ github.ref_name }}++ Native C++20 financial intelligence terminal — Qt6, embedded Python analytics, 50+ screens.++ ### Downloads++ | Platform | File | Notes |+ |----------|------|-------|+ | **Windows x64** | `FinceptTerminal-*-setup*.exe` | Run installer → `FinceptTerminal.exe` |+ | **Linux x64** | `FinceptTerminal-*.run` | `chmod +x` → run installer |+ | **macOS Apple Silicon** | `FinceptTerminal-*.dmg` or setup | Open DMG → drag to Applications |++ ### Requirements+ - Windows 10/11 x64+ - Ubuntu 20.04+ / Debian 11++ - macOS 13+ (Apple Silicon)++ See the [README](https://github.com/Fincept-Corporation/FinceptTerminal#readme) for full installation instructions.+ files: |+ dist/windows/**+ dist/linux/**+ dist/macos/**+ fail_on_unmatched_files: false+ draft: false+ prerelease: ${{ contains(github.ref_name, '-') }}++# ═════════════════════════════════════════════════════════════════════════════+# JOB 5 — Update README with direct download links+# Runs after release, uses gh CLI to get actual asset URLs+# ═════════════════════════════════════════════════════════════════════════════+ update-readme:+ name: Update README download links+ needs: release+ runs-on: ubuntu-latest+ if: >-+ !cancelled() &&+ needs.release.result == 'success' &&+ startsWith(github.ref, 'refs/tags/')+ permissions:+ contents: write++ steps:+ - name: Checkout repository+ uses: actions/checkout@v4+ with:+ # Use a token with write access so we can push the commit back+ token: ${{ secrets.GITHUB_TOKEN }}+ fetch-depth: 1+ # Checkout main branch (not the tag) so we can push a commit+ ref: main++ # ── Fetch release asset URLs via gh CLI ───────────────────────────────+ # gh is pre-installed on all GitHub-hosted runners.+ # We query the release created in the previous job and extract+ # each installer's browser_download_url.+ - name: Fetch release asset URLs+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ TAG: ${{ github.ref_name }}+ run: |+ set -euo pipefail+ echo "Fetching asset URLs for release ${TAG}..."++ # Poll up to 60s for the release to be fully published+ for i in $(seq 1 12); do+ ASSETS=$(gh release view "${TAG}" --json assets --jq '.assets' 2>/dev/null || echo "[]")+ COUNT=$(echo "$ASSETS" | python3 -c "import sys,json; print(len(json.load(sys.stdin)))" 2>/dev/null || echo "0")+ echo " attempt ${i}: ${COUNT} asset(s) found"+ [ "$COUNT" -ge 1 ] && break+ sleep 5+ done++ # Extract URLs for each platform (first match per pattern)+ WIN_URL=$(gh release view "${TAG}" --json assets \+ --jq '.assets[] | select(.name | test("(?i)windows.*\\.exe$|setup.*\\.exe$")) | .url' \+ | head -1)+ LIN_URL=$(gh release view "${TAG}" --json assets \+ --jq '.assets[] | select(.name | test("\\.run$|linux.*setup")) | .url' \+ | head -1)+ MAC_URL=$(gh release view "${TAG}" --json assets \+ --jq '.assets[] | select(.name | test("\\.dmg$|macos.*setup")) | .url' \+ | head -1)++ # Fallback: if browser_download_url not available via .url, try .browserDownloadUrl+ [ -z "$WIN_URL" ] && WIN_URL=$(gh release view "${TAG}" --json assets \+ --jq '.assets[] | select(.name | test("(?i)windows.*\\.exe$|setup.*\\.exe$")) | .browserDownloadUrl' \+ | head -1) || true+ [ -z "$LIN_URL" ] && LIN_URL=$(gh release view "${TAG}" --json assets \+ --jq '.assets[] | select(.name | test("\\.run$|linux.*setup")) | .browserDownloadUrl' \+ | head -1) || true+ [ -z "$MAC_URL" ] && MAC_URL=$(gh release view "${TAG}" --json assets \+ --jq '.assets[] | select(.name | test("\\.dmg$|macos.*setup")) | .browserDownloadUrl' \+ | head -1) || true++ # Release page URL as final fallback+ RELEASE_URL="https://github.com/Fincept-Corporation/FinceptTerminal/releases/tag/${TAG}"+ WIN_URL="${WIN_URL:-${RELEASE_URL}}"+ LIN_URL="${LIN_URL:-${RELEASE_URL}}"+ MAC_URL="${MAC_URL:-${RELEASE_URL}}"++ echo "WIN_URL=${WIN_URL}" >> "$GITHUB_ENV"+ echo "LIN_URL=${LIN_URL}" >> "$GITHUB_ENV"+ echo "MAC_URL=${MAC_URL}" >> "$GITHUB_ENV"+ echo "RELEASE_URL=${RELEASE_URL}" >> "$GITHUB_ENV"+ echo "TAG=${TAG}" >> "$GITHUB_ENV"++ echo "Windows : ${WIN_URL}"+ echo "Linux : ${LIN_URL}"+ echo "macOS : ${MAC_URL}"++ # ── Rewrite the download table in README.md ───────────────────────────+ # Strategy: sed-replace a clearly-delimited block between two sentinel+ # comments. This is the most robust approach — no regex on links needed.+ # The sentinels already exist in the README (added below by this step on+ # first run; subsequent runs just overwrite between them).+ - name: Update README download table+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ run: |+ set -euo pipefail++ # Sentinel markers in README — we replace everything between them.+ START_MARKER="<!-- DOWNLOAD-TABLE-START -->"+ END_MARKER="<!-- DOWNLOAD-TABLE-END -->"++ NEW_BLOCK="${START_MARKER}+ ### Option 1 — Download Installer (Recommended)++ Latest release: **${TAG}** — [View all releases](${RELEASE_URL})++ | Platform | Download | Run |+ |----------|----------|-----|+ | **Windows x64** | [FinceptTerminal-Windows-x64-setup.exe](${WIN_URL}) | Run installer → launch \`FinceptTerminal.exe\` |+ | **Linux x64** | [FinceptTerminal-Linux-x64.run](${LIN_URL}) | \`chmod +x\` → run installer |+ | **macOS Apple Silicon** | [FinceptTerminal-macOS-arm64.dmg](${MAC_URL}) | Open DMG → drag to Applications |+ ${END_MARKER}"++ README="README.md"++ # If markers are already present, replace the block between them.+ # If not, replace the old static "Option 1" section header line.+ if grep -q "${START_MARKER}" "${README}"; then+ # Use python for reliable multi-line replacement+ python3 - <<PYEOF+ import re, pathlib++ readme = pathlib.Path("${README}")+ content = readme.read_text(encoding="utf-8")++ new_block = """${NEW_BLOCK}"""++ pattern = re.compile(+ r'<!-- DOWNLOAD-TABLE-START -->.*?<!-- DOWNLOAD-TABLE-END -->',+ re.DOTALL+ )+ updated = pattern.sub(new_block, content)+ readme.write_text(updated, encoding="utf-8")+ print("README updated (existing markers replaced)")+ PYEOF+ else+ # First run — insert markers by replacing the old "Option 1" heading+ python3 - <<PYEOF+ import re, pathlib++ readme = pathlib.Path("${README}")+ content = readme.read_text(encoding="utf-8")++ new_block = """${NEW_BLOCK}"""++ # Replace the "### Option 1 — Download Pre-built Binary" section+ # up to (but not including) the next "### Option 2" or "---" line+ pattern = re.compile(+ r'### Option 1 — Download Pre-built Binary.*?(?=\n---|\n### Option 2)',+ re.DOTALL+ )+ updated = pattern.sub(new_block, content)+ if updated == content:+ # Pattern didn't match — prepend before "## Installation"+ updated = content.replace(+ "## Installation\n",+ "## Installation\n\n" + new_block + "\n"+ )+ readme.write_text(updated, encoding="utf-8")+ print("README updated (sentinels inserted for first time)")+ PYEOF+ fi++ echo "=== README diff preview (first 60 lines) ==="+ git diff README.md | head -60 || true++ # ── Commit and push ───────────────────────────────────────────────────+ - name: Commit and push README update+ run: |+ set -euo pipefail+ git config user.name "github-actions[bot]"+ git config user.email "github-actions[bot]@users.noreply.github.com"++ if git diff --quiet README.md; then+ echo "README unchanged — nothing to commit"+ exit 0+ fi++ git add README.md+ git commit -m "docs: update download links for ${TAG}++ Auto-updated by release workflow after successful build.+ Windows, Linux, macOS installer URLs reflect the ${TAG} release.++ Co-Authored-By: github-actions[bot] <github-actions[bot]@users.noreply.github.com>"++ git push origin main+ echo "README pushed to main"diff --git a/README.md b/README.mdindex 0619999c5..b776c3d01 100644--- a/README.md+++ b/README.md@@ -45,18 +45,17 @@ State-of-the-art financial intelligence platform with CFA-level analytics, AI au## Installation-### Option 1 — Download Pre-built Binary (Recommended)+<!-- DOWNLOAD-TABLE-START -->+### Option 1 — Download Installer (Recommended)-Pre-built binaries are available on the [Releases page](https://github.com/Fincept-Corporation/FinceptTerminal/releases). No build tools required — just extract and run.+Latest release: **v4.0.1** — [View all releases](https://github.com/Fincept-Corporation/FinceptTerminal/releases)| Platform | Download | Run ||----------|----------|-----|-| **Windows x64** | `FinceptTerminal-Windows-x64.zip` | Extract → `FinceptTerminal.exe` |-| **Windows ARM64** | `FinceptTerminal-Windows-arm64.zip` | Extract → `FinceptTerminal.exe` |-| **Linux x64** | `FinceptTerminal-Linux-x86_64.AppImage` | `chmod +x` → `./FinceptTerminal-Linux-x86_64.AppImage` |-| **macOS (Apple Silicon)** | `FinceptTerminal-macOS-arm64.tar.gz` | Extract → `./FinceptTerminal` |-| **macOS (Intel)** | `FinceptTerminal-macOS-x64.tar.gz` | Extract → `./FinceptTerminal` |-| **macOS (Universal)** | `FinceptTerminal-macOS-universal.tar.gz` | Extract → `./FinceptTerminal` |+| **Windows x64** | [FinceptTerminal-Windows-x64-setup.exe](https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest) | Run installer → launch `FinceptTerminal.exe` |+| **Linux x64** | [FinceptTerminal-Linux-x64.run](https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest) | `chmod +x` → run installer |+| **macOS Apple Silicon** | [FinceptTerminal-macOS-arm64.dmg](https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest) | Open DMG → drag to Applications |+<!-- DOWNLOAD-TABLE-END -->---diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex b7f7b8af0..d3dc231f3 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -300,5 +300,5 @@ No external package manager required — Qt6 provides all core dependencies.----**Version**: 4.0.0+**Version**: 4.0.1**Last Updated**: March 2026diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.mdindex adc612379..6afeaa2d8 100644--- a/docs/CONTRIBUTING.md+++ b/docs/CONTRIBUTING.md@@ -220,5 +220,5 @@ Look for labels: `good first issue`, `help wanted`, `documentation`---**Repository**: https://github.com/Fincept-Corporation/FinceptTerminal-**Version**: 4.0.0+**Version**: 4.0.1**License**: AGPL-3.0diff --git a/fincept-qt/packaging/linux/AppImageBuilder.yml b/fincept-qt/packaging/linux/AppImageBuilder.ymlindex cec55808e..bfb5362a1 100644--- a/fincept-qt/packaging/linux/AppImageBuilder.yml+++ b/fincept-qt/packaging/linux/AppImageBuilder.yml@@ -16,7 +16,7 @@ AppDir:id: com.fincept.terminalname: Fincept Terminalicon: fincept-terminal- version: !ENV ${FINCEPT_VERSION:-4.0.0}+ version: !ENV ${FINCEPT_VERSION:-4.0.1}exec: usr/bin/FinceptTerminalexec_args: $@@@ -56,6 +56,6 @@ AppDir:AppImage:arch: x86_64comp: xz- file_name: FinceptTerminal-!ENV ${FINCEPT_VERSION:-4.0.0}-x86_64.AppImage+ file_name: FinceptTerminal-!ENV ${FINCEPT_VERSION:-4.0.1}-x86_64.AppImagesign-key: Noneupdate-information: gh-releases-zsync|Fincept-Corporation|FinceptTerminal|latest|FinceptTerminal-*x86_64.AppImage.zsyncdiff --git a/fincept-qt/packaging/linux/fincept-terminal.appdata.xml b/fincept-qt/packaging/linux/fincept-terminal.appdata.xmlindex 2b516349b..a1c725b67 100644--- a/fincept-qt/packaging/linux/fincept-terminal.appdata.xml+++ b/fincept-qt/packaging/linux/fincept-terminal.appdata.xml@@ -28,6 +28,11 @@<binary>FinceptTerminal</binary></provides><releases>+ <release version="4.0.1" date="2026-04-14">+ <description>+ <p>Version 4.0.1 — Patch release.</p>+ </description>+ </release><release version="4.0.0" date="2025-01-01"><description><p>Version 4.0.0 — Complete rewrite in native C++20 with Qt6.</p>diff --git a/fincept-qt/scripts/bcb_data.py b/fincept-qt/scripts/bcb_data.pyindex 602f24540..e649f1fbb 100644--- a/fincept-qt/scripts/bcb_data.py+++ b/fincept-qt/scripts/bcb_data.py@@ -138,7 +138,7 @@ class BCBWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "*/*",})diff --git a/fincept-qt/scripts/bnm_data.py b/fincept-qt/scripts/bnm_data.pyindex 4d67bc7b5..72315636d 100644--- a/fincept-qt/scripts/bnm_data.py+++ b/fincept-qt/scripts/bnm_data.py@@ -99,7 +99,7 @@ class BNMWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": ACCEPT_HEADER,})diff --git a/fincept-qt/scripts/bnr_data.py b/fincept-qt/scripts/bnr_data.pyindex e6052af3a..f82ea0601 100644--- a/fincept-qt/scripts/bnr_data.py+++ b/fincept-qt/scripts/bnr_data.py@@ -80,7 +80,7 @@ class BNRWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "application/xml, text/xml, */*",})diff --git a/fincept-qt/scripts/boc_data.py b/fincept-qt/scripts/boc_data.pyindex 79241a938..1e2ea5544 100644--- a/fincept-qt/scripts/boc_data.py+++ b/fincept-qt/scripts/boc_data.py@@ -121,7 +121,7 @@ class BoCWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "application/json",})diff --git a/fincept-qt/scripts/boi_data.py b/fincept-qt/scripts/boi_data.pyindex 06decba19..708fee8db 100644--- a/fincept-qt/scripts/boi_data.py+++ b/fincept-qt/scripts/boi_data.py@@ -108,7 +108,7 @@ class BOIWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "text/csv, application/json, */*",})diff --git a/fincept-qt/scripts/cnb_data.py b/fincept-qt/scripts/cnb_data.pyindex ee413e7b1..bd993ea33 100644--- a/fincept-qt/scripts/cnb_data.py+++ b/fincept-qt/scripts/cnb_data.py@@ -103,7 +103,7 @@ class CNBWrapper:self.lang = langself.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "application/json",})diff --git a/fincept-qt/scripts/debug_test.py b/fincept-qt/scripts/debug_test.pyindex 35614490a..2103b1fe3 100644--- a/fincept-qt/scripts/debug_test.py+++ b/fincept-qt/scripts/debug_test.py@@ -11,7 +11,7 @@ with open(out_path, 'w') as f:'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}body = {'amount': 100, 'from_currency': 'USD', 'to_currency': 'EUR', 'rate': 0.92}data = json.dumps(body).encode()diff --git a/fincept-qt/scripts/hnb_data.py b/fincept-qt/scripts/hnb_data.pyindex 6ff7f63d2..08d5afcd8 100644--- a/fincept-qt/scripts/hnb_data.py+++ b/fincept-qt/scripts/hnb_data.py@@ -94,7 +94,7 @@ class HNBWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "application/json",})diff --git a/fincept-qt/scripts/ilostat_data.py b/fincept-qt/scripts/ilostat_data.pyindex 9c35e9181..29094c10b 100644--- a/fincept-qt/scripts/ilostat_data.py+++ b/fincept-qt/scripts/ilostat_data.py@@ -135,7 +135,7 @@ def _session() -> requests.Session:"""Return a pre-configured requests Session."""s = requests.Session()s.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0 (ILOSTAT-wrapper)",+ "User-Agent": "Fincept-Terminal/4.0.1 (ILOSTAT-wrapper)","Accept-Language": "en",})return sdiff --git a/fincept-qt/scripts/mnb_data.py b/fincept-qt/scripts/mnb_data.pyindex 0b34b4166..8120f360b 100644--- a/fincept-qt/scripts/mnb_data.py+++ b/fincept-qt/scripts/mnb_data.py@@ -88,7 +88,7 @@ class MNBWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Content-Type": "text/xml; charset=utf-8",})diff --git a/fincept-qt/scripts/nbp_data.py b/fincept-qt/scripts/nbp_data.pyindex 9f7cf36b8..984da333f 100644--- a/fincept-qt/scripts/nbp_data.py+++ b/fincept-qt/scripts/nbp_data.py@@ -93,7 +93,7 @@ class NBPWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "application/json",})diff --git a/fincept-qt/scripts/norges_bank_data.py b/fincept-qt/scripts/norges_bank_data.pyindex 96d4d6b46..b2f59485a 100644--- a/fincept-qt/scripts/norges_bank_data.py+++ b/fincept-qt/scripts/norges_bank_data.py@@ -104,7 +104,7 @@ class NorgesBankWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "text/csv,text/plain,*/*",})diff --git a/fincept-qt/scripts/polymarket.py b/fincept-qt/scripts/polymarket.pyindex f394726c9..d016d5d0f 100644--- a/fincept-qt/scripts/polymarket.py+++ b/fincept-qt/scripts/polymarket.py@@ -28,7 +28,7 @@ def get_markets(limit=10):}headers = {"Accept": "application/json",- "User-Agent": "FinceptTerminal/4.0.0",+ "User-Agent": "FinceptTerminal/4.0.1",}r = requests.get(url, params=params, headers=headers, timeout=15)r.raise_for_status()diff --git a/fincept-qt/scripts/riksbank_data.py b/fincept-qt/scripts/riksbank_data.pyindex c5bbfa496..63b6ac0e7 100644--- a/fincept-qt/scripts/riksbank_data.py+++ b/fincept-qt/scripts/riksbank_data.py@@ -124,7 +124,7 @@ class RiksbankWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "application/json",})diff --git a/fincept-qt/scripts/snb_data.py b/fincept-qt/scripts/snb_data.pyindex ead8d26ed..d6dce434b 100644--- a/fincept-qt/scripts/snb_data.py+++ b/fincept-qt/scripts/snb_data.py@@ -139,7 +139,7 @@ class SNBWrapper:self.lang = langself.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0 (SNB-wrapper)",+ "User-Agent": "Fincept-Terminal/4.0.1 (SNB-wrapper)","Accept": "text/csv,text/plain,*/*",})diff --git a/fincept-qt/scripts/tcmb_data.py b/fincept-qt/scripts/tcmb_data.pyindex 11eebacb8..86a3b65df 100644--- a/fincept-qt/scripts/tcmb_data.py+++ b/fincept-qt/scripts/tcmb_data.py@@ -82,7 +82,7 @@ class TCMBWrapper:def __init__(self):self.session = requests.Session()self.session.headers.update({- "User-Agent": "Fincept-Terminal/4.0.0",+ "User-Agent": "Fincept-Terminal/4.0.1","Accept": "application/xml, text/xml, */*",})diff --git a/fincept-qt/scripts/test_ql_all.py b/fincept-qt/scripts/test_ql_all.pyindex f47e3db9e..8ef5fa126 100644--- a/fincept-qt/scripts/test_ql_all.py+++ b/fincept-qt/scripts/test_ql_all.py@@ -6,7 +6,7 @@ HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def post(path, body):diff --git a/fincept-qt/scripts/test_ql_corrected.py b/fincept-qt/scripts/test_ql_corrected.pyindex 82cf2db06..4b360851c 100644--- a/fincept-qt/scripts/test_ql_corrected.py+++ b/fincept-qt/scripts/test_ql_corrected.py@@ -6,7 +6,7 @@ HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def post(path, body):diff --git a/fincept-qt/scripts/test_ql_final.py b/fincept-qt/scripts/test_ql_final.pyindex 67e5c8d56..f415c5887 100644--- a/fincept-qt/scripts/test_ql_final.py+++ b/fincept-qt/scripts/test_ql_final.py@@ -6,7 +6,7 @@ HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def post(path, body):diff --git a/fincept-qt/scripts/test_ql_final2.py b/fincept-qt/scripts/test_ql_final2.pyindex 156247a57..c3d41ec8b 100644--- a/fincept-qt/scripts/test_ql_final2.py+++ b/fincept-qt/scripts/test_ql_final2.py@@ -6,7 +6,7 @@ HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def post(path, body):diff --git a/fincept-qt/scripts/test_ql_retry.py b/fincept-qt/scripts/test_ql_retry.pyindex 3bcf6c75c..e9f1b935f 100644--- a/fincept-qt/scripts/test_ql_retry.py+++ b/fincept-qt/scripts/test_ql_retry.py@@ -6,7 +6,7 @@ HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def post(path, body):diff --git a/fincept-qt/scripts/test_ql_retry2.py b/fincept-qt/scripts/test_ql_retry2.pyindex f27f1c51a..6e7e09163 100644--- a/fincept-qt/scripts/test_ql_retry2.py+++ b/fincept-qt/scripts/test_ql_retry2.py@@ -6,7 +6,7 @@ HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def post(path, body):diff --git a/fincept-qt/scripts/test_ql_retry3.py b/fincept-qt/scripts/test_ql_retry3.pyindex cc08bfa65..8dc8a5117 100644--- a/fincept-qt/scripts/test_ql_retry3.py+++ b/fincept-qt/scripts/test_ql_retry3.py@@ -6,7 +6,7 @@ HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def post(path, body):diff --git a/fincept-qt/scripts/test_ql_schema.py b/fincept-qt/scripts/test_ql_schema.pyindex b58cd7328..056674f00 100644--- a/fincept-qt/scripts/test_ql_schema.py+++ b/fincept-qt/scripts/test_ql_schema.py@@ -5,7 +5,7 @@ BASE = 'https://api.fincept.in'HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def get(path):diff --git a/fincept-qt/scripts/test_quantlib_batch1.py b/fincept-qt/scripts/test_quantlib_batch1.pyindex 7aebc3914..76ea9259d 100644--- a/fincept-qt/scripts/test_quantlib_batch1.py+++ b/fincept-qt/scripts/test_quantlib_batch1.py@@ -7,7 +7,7 @@ HEADERS = {'X-API-Key': 'fk_user_vU20qwUxKtPmg0fWpriNBhcAnBVGgOtJxsKiiwfD9Qo','Accept': 'application/json','Content-Type': 'application/json',- 'User-Agent': 'FinceptTerminal/4.0.0'+ 'User-Agent': 'FinceptTerminal/4.0.1'}def post(path, body):diff --git a/fincept-qt/src/app/MainWindow.h b/fincept-qt/src/app/MainWindow.hindex a9742c200..9b18c92df 100644--- a/fincept-qt/src/app/MainWindow.h+++ b/fincept-qt/src/app/MainWindow.h@@ -81,6 +81,8 @@ class MainWindow : public QMainWindow {void show_lock_screen();void on_terminal_unlocked();void update_window_title();+ /// Show or hide the toolbar/status bar shell (hidden during auth screens).+ void set_shell_visible(bool visible);// Info screens stack (Contact, Terms, Privacy, Trademarks, Help)QStackedWidget* info_stack_ = nullptr;diff --git a/fincept-qt/src/mcp/McpClient.cpp b/fincept-qt/src/mcp/McpClient.cppindex e4036f1bd..719b8942a 100644--- a/fincept-qt/src/mcp/McpClient.cpp+++ b/fincept-qt/src/mcp/McpClient.cpp@@ -168,7 +168,7 @@ Result<QJsonObject> McpClient::initialize() {QJsonObject client_info;client_info["name"] = "FinceptTerminal";- client_info["version"] = "4.0.0";+ client_info["version"] = "4.0.1";params["clientInfo"] = client_info;QJsonObject capabilities;diff --git a/fincept-qt/src/trading/brokers/motilal/MotilalBroker.cpp b/fincept-qt/src/trading/brokers/motilal/MotilalBroker.cppindex 00f67349c..710f07ac1 100644--- a/fincept-qt/src/trading/brokers/motilal/MotilalBroker.cpp+++ b/fincept-qt/src/trading/brokers/motilal/MotilalBroker.cpp@@ -118,7 +118,7 @@ QMap<QString, QString> MotilalBroker::auth_headers(const BrokerCredentials& cred{"devicemodel", "PC"},{"manufacturer", "Generic"},{"productname", "FinceptTerminal"},- {"productversion", "4.0.0"},+ {"productversion", "4.0.1"},{"browsername", "Chrome"},{"browserversion", "120.0"},};@@ -161,7 +161,7 @@ TokenExchangeResponse MotilalBroker::exchange_token(const QString& api_key, cons{"devicemodel", "PC"},{"manufacturer", "Generic"},{"productname", "FinceptTerminal"},- {"productversion", "4.0.0"},+ {"productversion", "4.0.1"},{"browsername", "Chrome"},{"browserversion", "120.0"},};diff --git a/fincept-qt/src/ui/navigation/StatusBar.cpp b/fincept-qt/src/ui/navigation/StatusBar.cppindex 6f52a9018..01ca121ae 100644--- a/fincept-qt/src/ui/navigation/StatusBar.cpp+++ b/fincept-qt/src/ui/navigation/StatusBar.cpp@@ -19,7 +19,7 @@ StatusBar::StatusBar(QWidget* parent) : QWidget(parent) {return l;};- hl->addWidget(mk("v4.0.0", "sbVersion"));+ hl->addWidget(mk("v4.0.1", "sbVersion"));hl->addWidget(mk(" | ", "sbSep"));const char* feeds[] = {"EQ", "FX", "CM", "FI", "CR"};for (auto& f : feeds) {diff --git a/setup.bat b/setup.batindex e1a3673e4..f2e3e994c 100644--- a/setup.bat+++ b/setup.bat@@ -10,7 +10,7 @@ for %%A in (%*) do (echo.echo ================================================-echo Fincept Terminal v4.0.0 — Windows Setup+echo Fincept Terminal v4.0.1 — Windows Setupif "!CI_MODE!"=="true" echo (CI mode -- skipping interactive steps)echo ================================================echo.diff --git a/setup.sh b/setup.shindex d92a27c56..c505387f2 100644--- a/setup.sh+++ b/setup.sh@@ -21,7 +21,7 @@ info() { echo -e " ${YELLOW}$1${NC}"; }echo ""echo "================================================"-echo " Fincept Terminal v4.0.0 — Setup"+echo " Fincept Terminal v4.0.1 — Setup"[ "$CI_MODE" = true ] && echo " (CI mode — skipping interactive steps)"echo "================================================"echo ""diff --git a/updates.json b/updates.jsonindex 0ca7056ab..b4898d28b 100644--- a/updates.json+++ b/updates.json@@ -1,25 +1,25 @@{"updates": {"windows": {- "latest-version": "4.0.0",+ "latest-version": "4.0.1","mandatory-update": false,- "download-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest/download/FinceptTerminal-4.0.0-windows-x64-setup.exe",+ "download-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest/download/FinceptTerminal-4.0.1-windows-x64-setup.exe","open-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest",- "changelog": "Fincept Terminal v4.0.0 — Full rewrite in C++20 + Qt6. Native performance, embedded Python analytics, 50+ screens, MCP AI integration, and multi-broker trading.\n\nSee https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest for full release notes."+ "changelog": "Fincept Terminal v4.0.1 — Full rewrite in C++20 + Qt6. Native performance, embedded Python analytics, 50+ screens, MCP AI integration, and multi-broker trading.\n\nSee https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest for full release notes."},"osx": {- "latest-version": "4.0.0",+ "latest-version": "4.0.1","mandatory-update": false,- "download-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest/download/FinceptTerminal-4.0.0-macOS.dmg",+ "download-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest/download/FinceptTerminal-4.0.1-macOS.dmg","open-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest",- "changelog": "Fincept Terminal v4.0.0 — Full rewrite in C++20 + Qt6. Native performance, embedded Python analytics, 50+ screens, MCP AI integration, and multi-broker trading.\n\nSee https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest for full release notes."+ "changelog": "Fincept Terminal v4.0.1 — Full rewrite in C++20 + Qt6. Native performance, embedded Python analytics, 50+ screens, MCP AI integration, and multi-broker trading.\n\nSee https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest for full release notes."},"linux": {- "latest-version": "4.0.0",+ "latest-version": "4.0.1","mandatory-update": false,- "download-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest/download/FinceptTerminal-4.0.0-x86_64.AppImage",+ "download-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest/download/FinceptTerminal-4.0.1-x86_64.AppImage","open-url": "https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest",- "changelog": "Fincept Terminal v4.0.0 — Full rewrite in C++20 + Qt6. Native performance, embedded Python analytics, 50+ screens, MCP AI integration, and multi-broker trading.\n\nSee https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest for full release notes."+ "changelog": "Fincept Terminal v4.0.1 — Full rewrite in C++20 + Qt6. Native performance, embedded Python analytics, 50+ screens, MCP AI integration, and multi-broker trading.\n\nSee https://github.com/Fincept-Corporation/FinceptTerminal/releases/latest for full release notes."}}}