summaryrefslogtreecommitdiffstats
path: root/GUI/package.ps1
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-05-21 21:27:50 -0700
committeryum <yum.food.vr@gmail.com>2023-05-21 21:27:50 -0700
commit2d544407e64bed9328ee493d3daa095b20445b52 (patch)
treec98ff700afcf040cfec9170c2d5d72d17e5bc7ac /GUI/package.ps1
parentaec43ecd11e8ef84fe4f5f5fcca9578dbde59469 (diff)
Enable selecting specific GPU when transcribing
Useful on devices with multiple GPUs, such as gaming laptops. * Update GUI/README.md.
Diffstat (limited to 'GUI/package.ps1')
-rw-r--r--GUI/package.ps18
1 files changed, 7 insertions, 1 deletions
diff --git a/GUI/package.ps1 b/GUI/package.ps1
index e21d109..7bf032b 100644
--- a/GUI/package.ps1
+++ b/GUI/package.ps1
@@ -18,7 +18,9 @@ if (Test-Path $install_dir) {
$py_dir = "Python"
-rm -Recurse $py_dir
+if (Test-Path $py_dir) {
+ rm -Recurse $py_dir
+}
if (-Not (Test-Path $py_dir)) {
echo "Fetching python"
@@ -39,6 +41,10 @@ if (-Not (Test-Path $py_dir)) {
$pip_path = "$py_dir/get-pip.py"
+if (Test-Path $pip_path) {
+ rm -Force $pip_path
+}
+
if (-Not (Test-Path $pip_path)) {
echo "Fetching pip"