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
tilakpatel22038711acd5f0
diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.ymldeleted file mode 100644index 1dedc9b16..000000000--- a/.github/workflows/build-macos.yml+++ /dev/null@@ -1,217 +0,0 @@-name: Build macOS (Apple Silicon)--on:- workflow_dispatch:- push:- tags:- - 'v*'--env:- BUILD_TYPE: Release- QT_VERSION: "6.8.3"- QT_MODULES: "qtcharts qtwebsockets qtmultimedia"- APP_NAME: FinceptTerminal- FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true--jobs:- build:- name: macOS arm64- 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-${{ 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-- # ── 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 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=OFF \- -DDEPLOY_QT=OFF-- # ── 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"-- # ── 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: Package- 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.1</string>- <key>NSHighResolutionCapable</key><true/>- </dict></plist>- PLIST- fi-- # 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-- # 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 [ -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/- 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-- # Tar to preserve execute permissions- tar -czf dist.tar.gz -C "${DIST_DIR}" .- echo "Archive: dist.tar.gz ($(du -sh dist.tar.gz | cut -f1))"-- # ── Upload artifact ───────────────────────────────────────────────────- - name: Upload artifact- uses: actions/upload-artifact@v4- with:- name: FinceptTerminal-macOS-arm64- path: fincept-qt/dist.tar.gz- retention-days: 30diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex f1df2deb5..4e770788c 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -33,7 +33,7 @@ jobs:uses: actions/checkout@v4with:submodules: recursive- fetch-tags: true+ fetch-depth: 1# ── OpenSSL dev libs ──────────────────────────────────────────────────- name: Install OpenSSL@@ -186,7 +186,7 @@ jobs:uses: actions/checkout@v4with:submodules: recursive- fetch-tags: true+ fetch-depth: 1- name: Set up ccacheuses: hendrikmuhs/ccache-action@v1@@ -306,7 +306,7 @@ jobs:uses: actions/checkout@v4with:submodules: recursive- fetch-tags: true+ fetch-depth: 1- name: Set up ccacheuses: hendrikmuhs/ccache-action@v1