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.

fix: correct PyOxidizer binary copy and remove unused import

tilakpatel22d7581798eb6d
diff --git a/.github/workflows/build-with-updater.yml b/.github/workflows/build-with-updater.yml
index 68b3f56d9..0e479703e 100644
--- a/.github/workflows/build-with-updater.yml
+++ b/.github/workflows/build-with-updater.yml
@@ -97,13 +97,21 @@ jobs:
run: pip install pyoxidizer
- name: Build Python interpreter with PyOxidizer
+ shell: bash
run: |
cd fincept-terminal-desktop/src-tauri
pyoxidizer build --release --target-triple ${{ matrix.target }}
mkdir -p binaries
- find build -name "python-interpreter*" -type f -executable -exec cp {} binaries/ \;
+
+ # Copy binary with proper naming
+ if [[ "${{ matrix.platform }}" == "windows-latest" ]]; then
+ cp build/${{ matrix.target }}/release/install/python-interpreter.exe binaries/python-interpreter-${{ matrix.target }}.exe
+ else
+ cp build/${{ matrix.target }}/release/install/python-interpreter binaries/python-interpreter-${{ matrix.target }}
+ chmod +x binaries/python-interpreter-${{ matrix.target }}
+ fi
+
ls -lh binaries/
- shell: bash
- name: Build the app with updater
uses: tauri-apps/tauri-action@v0
diff --git a/fincept-terminal-desktop/src-tauri/build.rs b/fincept-terminal-desktop/src-tauri/build.rs
index ab34c272b..bda573532 100644
--- a/fincept-terminal-desktop/src-tauri/build.rs
+++ b/fincept-terminal-desktop/src-tauri/build.rs
@@ -1,8 +1,6 @@
fn main() {
// Build platform-specific PyOxidizer executable during CI
- // This runs pyoxidizer against the local python-{platform} directory
use std::path::Path;
- use std::process::Command;
let binaries_dir = Path::new("binaries");
std::fs::create_dir_all(binaries_dir).ok();