summaryrefslogtreecommitdiffstats
path: root/GUI/package.ps1
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-03-21 14:28:46 -0700
committeryum <yum.food.vr@gmail.com>2023-03-21 15:02:29 -0700
commit656d7c2092545b18d981acfac000c73fb2128e4a (patch)
treed8268efbbfbda591740da89f29a4db545a64de17 /GUI/package.ps1
parent22da2ac82a667df4444449fe8d1fd1e639566bb2 (diff)
Fix _socket module not found issue
Need python310._pth, specifically 'import site' line, for embedded python + pip to get along.
Diffstat (limited to 'GUI/package.ps1')
-rw-r--r--GUI/package.ps15
1 files changed, 4 insertions, 1 deletions
diff --git a/GUI/package.ps1 b/GUI/package.ps1
index fa5e162..5f15259 100644
--- a/GUI/package.ps1
+++ b/GUI/package.ps1
@@ -6,6 +6,8 @@ param(
echo "Skip zip: $skip_zip"
echo "Release: $release"
+$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
+
$install_dir = "TaSTT"
if (Test-Path $install_dir) {
@@ -28,7 +30,8 @@ if (-Not (Test-Path $py_dir)) {
mkdir Python
Expand-Archive $PYTHON_FILE -DestinationPath Python
- rm Python/python310._pth
+ echo "../Scripts" >> Python/python310._pth
+ echo "import site" >> Python/python310._pth
}
$pip_path = "$py_dir/get-pip.py"