Skip to content

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.

workflow update

tilakpatel222e6e9b79fb07
diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.yml
deleted file mode 100644
index 9ee1fbb3c..000000000
--- a/.github/workflows/build-installer.yml
+++ /dev/null
@@ -1,348 +0,0 @@
-name: Build Installers (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"
- FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
-
-jobs:
- build-installer:
- strategy:
- fail-fast: false
- matrix:
- include:
- # ---- Windows x64 ----
- - os: windows-2022
- arch: x64
- platform: Windows
- artifact: FinceptTerminal-Windows-x64-setup
- exe: FinceptTerminal.exe
- qt_arch: win64_msvc2022_64
- cmake_extra: ""
- installer_ext: ".exe"
-
- # ---- Linux x64 ----
- - os: ubuntu-22.04
- arch: x64
- platform: Linux
- artifact: FinceptTerminal-Linux-x64-setup
- exe: FinceptTerminal
- qt_arch: ""
- cmake_extra: ""
- installer_ext: ".run"
-
- # ---- macOS ARM64 (Apple Silicon) ----
- - os: macos-15
- arch: arm64
- platform: macOS
- artifact: FinceptTerminal-macOS-arm64-setup
- exe: FinceptTerminal
- qt_arch: clang_64
- cmake_extra: "-DCMAKE_OSX_ARCHITECTURES=arm64"
- installer_ext: ".app"
-
- runs-on: ${{ matrix.os }}
- name: Installer ${{ matrix.platform }} ${{ matrix.arch }}
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- submodules: recursive
-
- # ---- ccache (macOS / Linux) ----
- - name: Set up ccache
- if: runner.os != 'Windows'
- uses: hendrikmuhs/ccache-action@v1
- with:
- key: installer-${{ matrix.platform }}-${{ matrix.arch }}-${{ env.QT_VERSION }}
- max-size: 500M
- update-package-index: true
-
- # ---- System dependencies (Linux) ----
- - name: Install system dependencies (Linux)
- if: runner.os == 'Linux'
- 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 \
- pkg-config zip
-
- # ---- OpenSSL dev libs (Windows) ----
- # 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 (Windows)
- if: runner.os == 'Windows'
- 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"
-
- # ---- Qt6 (Windows / macOS) ----
- - name: Install Qt6
- if: runner.os != 'Linux'
- uses: jurplel/install-qt-action@v4
- with:
- version: ${{ env.QT_VERSION }}
- arch: ${{ matrix.qt_arch }}
- modules: ${{ env.QT_MODULES }}
- cache: true
- cache-key-prefix: qt-installer-${{ matrix.platform }}-${{ matrix.arch }}
-
- # ---- Qt Installer Framework ----
- - name: Install Qt Installer Framework
- shell: bash
- run: |
- pip install aqtinstall
- if [ "${{ runner.os }}" == "Windows" ]; then
- aqt install-tool windows desktop ${{ env.QT_IFW_TOOL }} \
- --outputdir "${{ runner.temp }}/qtifw"
- elif [ "${{ runner.os }}" == "macOS" ]; then
- aqt install-tool mac desktop ${{ env.QT_IFW_TOOL }} \
- --outputdir "${{ runner.temp }}/qtifw"
- else
- aqt install-tool linux desktop ${{ env.QT_IFW_TOOL }} \
- --outputdir "${{ runner.temp }}/qtifw"
- fi
- echo "QT_IFW_DIR=${{ runner.temp }}/qtifw/Tools/QtInstallerFramework/${{ env.QT_IFW_VERSION }}" >> $GITHUB_ENV
- echo "QtIFW installed:"
- ls "${{ runner.temp }}/qtifw/Tools/QtInstallerFramework/" || true
-
- # ---- Configure CMake (Linux) ----
- - name: Configure CMake (Linux)
- if: runner.os == 'Linux'
- 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 \
- ${{ matrix.cmake_extra }}
-
- # ---- Configure CMake (Windows / macOS) ----
- - name: Configure CMake (Windows / macOS)
- if: runner.os != 'Linux'
- shell: bash
- working-directory: fincept-qt
- run: |
- OPENSSL_ARG=""
- if [ -n "${OPENSSL_ROOT_DIR:-}" ]; then
- OPENSSL_ARG="-DOPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR}"
- fi
-
- cmake -B build \
- -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
- -DCMAKE_PREFIX_PATH="${QT_ROOT_DIR}" \
- -DDEPLOY_QT=ON \
- -DFINCEPT_BUILD_INSTALLER=ON \
- ${OPENSSL_ARG} \
- ${{ runner.os == 'macOS' && '-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache' || '' }} \
- ${{ matrix.cmake_extra }}
-
- # ---- Build ----
- - name: Build
- shell: bash
- working-directory: fincept-qt
- run: cmake --build build --config ${{ env.BUILD_TYPE }} --parallel $(nproc 2>/dev/null || sysctl -n hw.logicalcpu 2>/dev/null || echo 4)
-
- # ---- Verify binary ----
- - name: Verify build output
- shell: bash
- working-directory: fincept-qt
- run: |
- if [ "${{ runner.os }}" == "Windows" ]; then
- BINARY="build/Release/${{ matrix.exe }}"
- elif [ "${{ runner.os }}" == "macOS" ]; then
- if [ -f "build/${{ matrix.exe }}" ]; then
- BINARY="build/${{ matrix.exe }}"
- elif [ -f "build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}" ]; then
- BINARY="build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}"
- else
- BINARY="build/${{ matrix.exe }}"
- fi
- else
- BINARY="build/${{ matrix.exe }}"
- fi
- if [ ! -f "$BINARY" ]; then
- echo "::error::Binary not found — searched: build/${{ matrix.exe }} and build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}"
- find build -maxdepth 3 -name "${{ matrix.exe }}" 2>/dev/null || true
- exit 1
- fi
- echo "Binary verified: $BINARY ($(du -sh "$BINARY" | cut -f1))"
-
- # ---- Windows: deploy Qt DLLs before packaging ----
- - name: Deploy Qt DLLs (Windows)
- if: runner.os == 'Windows'
- 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}/${{ matrix.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 the OPENSSL_ROOT_DIR bin/ if Qt didn't ship them
- if [ -n "${OPENSSL_ROOT_DIR:-}" ]; then
- 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
- fi
-
- # 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
-
- printf '[Paths]\nPrefix = .\nPlugins = .\nLibraries = .\n' > "${BUILD_DIR}/qt.conf"
- echo "=== Build dir: $(find "${BUILD_DIR}" -type f | wc -l) files ==="
-
- # ---- Generate installer ----
- - name: Generate Installer (CPack IFW)
- shell: bash
- working-directory: fincept-qt/build
- run: |
- export PATH="${QT_IFW_DIR}/bin:${PATH}"
- which binarycreator || echo "::warning::binarycreator not on PATH"
-
- if [ "${{ runner.os }}" == "Windows" ]; then
- cpack -G IFW -C ${{ env.BUILD_TYPE }} --verbose
- else
- cpack -G IFW --verbose
- fi
-
- echo "=== Generated installer ==="
- ls -lh FinceptTerminal-* || true
-
- # ---- Upload installer artifact ----
- - name: Upload Installer
- uses: actions/upload-artifact@v4
- with:
- name: ${{ matrix.artifact }}
- path: fincept-qt/build/FinceptTerminal-*-setup*
- retention-days: 30
-
- # ---- Release: attach installers to GitHub Release ----
- release:
- needs: build-installer
- runs-on: ubuntu-latest
- name: Attach Installers to Release
- if: "!cancelled() && needs.build-installer.result == 'success' && startsWith(github.ref, 'refs/tags/')"
- permissions:
- contents: write
-
- steps:
- - name: Download all installer artifacts
- uses: actions/download-artifact@v4
- with:
- path: installers
-
- - name: List installers
- run: find installers -type f | sort
-
- - name: Attach installers to release
- uses: softprops/action-gh-release@v2
- with:
- tag_name: ${{ github.ref_name }}
- files: installers/**/*-setup*
- fail_on_unmatched_files: false
diff --git a/.github/workflows/build-linux-installer.yml b/.github/workflows/build-linux-installer.yml
new file mode 100644
index 000000000..1dab7817a
--- /dev/null
+++ b/.github/workflows/build-linux-installer.yml
@@ -0,0 +1,190 @@
+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: false
diff --git a/.github/workflows/build-windows-installer.yml b/.github/workflows/build-windows-installer.yml
new file mode 100644
index 000000000..85c5a0759
--- /dev/null
+++ b/.github/workflows/build-windows-installer.yml
@@ -0,0 +1,250 @@
+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: false