From 3f0d2837b17173f12a68129bad9654a0b6beea78 Mon Sep 17 00:00:00 2001 From: Elliot Chernofsky Date: Tue, 12 Nov 2024 21:25:44 -0500 Subject: [PATCH] Fix internet_detector not installing --- packages/internet_detector.vm/internet_detector.vm.nuspec | 2 +- packages/internet_detector.vm/tools/chocolateyinstall.ps1 | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/internet_detector.vm/internet_detector.vm.nuspec b/packages/internet_detector.vm/internet_detector.vm.nuspec index f64f2696..05c97572 100644 --- a/packages/internet_detector.vm/internet_detector.vm.nuspec +++ b/packages/internet_detector.vm/internet_detector.vm.nuspec @@ -2,7 +2,7 @@ internet_detector.vm - 1.0.0.20241029 + 1.0.0.20241112 Elliot Chernofsky and Ana Martinez Gomez Tool that changes the background and a taskbar icon if it detects internet connectivity diff --git a/packages/internet_detector.vm/tools/chocolateyinstall.ps1 b/packages/internet_detector.vm/tools/chocolateyinstall.ps1 index a999eb58..20bb2b57 100644 --- a/packages/internet_detector.vm/tools/chocolateyinstall.ps1 +++ b/packages/internet_detector.vm/tools/chocolateyinstall.ps1 @@ -14,8 +14,7 @@ VM-Assert-Path $toolDir $dependencies = "pyinstaller,pywin32" VM-Pip-Install $dependencies -# This wrapper is needed because we can't run PyInstaller as admin, so this forces a usermode context. -Start-Process -FilePath 'cmd.exe' -ArgumentList "/c pyinstaller --onefile -w --distpath $toolDir --workpath $packageToolDir --specpath $packageToolDir $packageToolDir\internet_detector.pyw" -Wait +pyinstaller --onefile -w --log-level FATAL --distpath $toolDir --workpath $packageToolDir --specpath $packageToolDir $packageToolDir\internet_detector.pyw # Move images to %VM_COMMON_DIR% directory $imagesPath = Join-Path $packageToolDir "images"