Skip to content

Commit 4c902f1

Browse files
authored
Merge pull request #269 from nyu-mlab/hot-fix
Need to explicitly add matplotlib
2 parents d0cd33e + e2e69d9 commit 4c902f1

File tree

5 files changed

+145
-12
lines changed

5 files changed

+145
-12
lines changed

iot-inspector.nsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ Section "Uninstall"
9494
; Execute the dedicated uninstall script to handle all cleanup tasks
9595
ExecWait 'powershell.exe -ExecutionPolicy ByPass -File "$INSTDIR\uninstall.ps1"'
9696

97+
; Remove shortcuts created at install (if present)
98+
Delete "$SMPROGRAMS\${APP_NAME}.lnk"
99+
Delete "$DESKTOP\${APP_NAME}.lnk"
100+
97101
; Remove files
98102
RMDir /r "$INSTDIR"
99103
SectionEnd

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ requires-python = "==3.13.*"
1111
dependencies = [
1212
"libinspector==1.0.12",
1313
"streamlit>=1.50.0",
14+
"matplotlib==3.10.3",
1415
]
1516
authors = [
1617
{ name = "Danny Huang", email = "[email protected]" },

start.ps1

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,17 @@ $CurrentDir = $PSScriptRoot
4444
# Check if uv is available. If it's not, we assume the initial setup needs to run.
4545
$NpcapFound = Test-NpcapInstalled
4646
if (-not (Get-Command uv -ErrorAction SilentlyContinue) -or -not $NpcapFound) {
47-
Write-Warning "'uv' not found. Launching initial setup script: $DependencyScript"
47+
Write-Warning "Launching initial setup script: $DependencyScript"
4848

4949
# Execute install.ps1 directly (since we are already running as Admin)
5050
# The dependency script handles uv installation and Npcap checks.
5151
& "$CurrentDir\$DependencyScript"
5252

53-
Write-Host "Setup finished. Re-verifying installation..."
54-
5553
# Crucial: After UV is installed, we must start a new shell session
5654
# for the PATH variable (where uv is located) to be properly updated.
57-
if (-not (Get-Command uv -ErrorAction SilentlyContinue)) {
58-
Write-Host "UV installation successful, but the PATH variable needs refreshing."
59-
Write-Host "Please close this window and run the desktop shortcut again."
60-
Read-Host "Press Enter to exit and relaunch"
61-
exit
62-
}
55+
Write-Host "Setup finished!!"
56+
Read-Host "Please close this window by clicking the X and click IoT Inspector again."
57+
exit
6358
}
6459

6560
# --- 3. Virtual Environment Setup (Non-Admin system tasks) ---

uninstall.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ $filesToDelete = @(
3737
"setup.py",
3838
"uv.lock",
3939
"README.md",
40-
"LICENSE",
41-
"npcap-1.76.exe"
40+
"LICENSE"
4241
)
4342

4443
foreach ($file in $filesToDelete) {

0 commit comments

Comments
 (0)