Skip to content

Commit 856b293

Browse files
authored
Merge pull request #10 from dzikus/pidscope
PIDscope 26.03.1
2 parents 51d01c9 + bbd5a54 commit 856b293

2 files changed

Lines changed: 23 additions & 10 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
26.03
1+
26.03.1

packaging/windows/PIDscope.bat

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
@echo off
2-
setlocal
32
cd /d "%~dp0"
43

5-
rem First launch: run Octave post-install to rebuild font cache and register packages
6-
if not exist ".pidscope-initialized" (
7-
echo Initializing PIDscope - please wait...
8-
call octave\post-install.bat >nul 2>&1
9-
echo. > .pidscope-initialized
10-
echo Done. Launching PIDscope...
4+
set "OCT_HOME=%~dp0octave\mingw64\"
5+
for %%I in ("%OCT_HOME%") do set "OCT_HOME=%%~sI"
6+
7+
set "PATH=%OCT_HOME%bin;%OCT_HOME%qt6\bin;%PATH%"
8+
set "QT_PLUGIN_PATH=%OCT_HOME%qt6\plugins"
9+
if not exist "%OCT_HOME%qt6\bin\" (
10+
set "QT_PLUGIN_PATH=%OCT_HOME%qt5\plugins"
11+
set "PATH=%OCT_HOME%qt5\bin;%PATH%"
1112
)
1213

13-
rem Launch PIDscope in Octave GUI
14-
start "" "octave\mingw64\bin\octave-gui.exe" --gui --persist --eval "cd('%~dp0app'); PIDscope"
14+
set "HOME=%USERPROFILE%"
15+
for %%I in ("%HOME%") do set "HOME=%%~sI"
16+
17+
set "OCTAVE_EXE=%OCT_HOME%bin\octave-gui.exe"
18+
if not exist "%OCTAVE_EXE%" (
19+
echo ERROR: Octave not found at: %OCTAVE_EXE%
20+
pause
21+
exit /b 1
22+
)
23+
24+
set "APP_PATH=%~dp0app"
25+
for %%I in ("%APP_PATH%") do set "APP_PATH=%%~sI"
26+
27+
start "" "%OCTAVE_EXE%" --gui --persist --path "%APP_PATH%" --eval "PIDscope"

0 commit comments

Comments
 (0)