summaryrefslogtreecommitdiffstats
path: root/GUI
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-07-03 18:44:43 -0700
committeryum <yum.food.vr@gmail.com>2023-07-03 19:36:13 -0700
commit76ae7c28ea6224b2c919122d5dc71bcc00a0ecaa (patch)
tree9723fd02715d747cfc439d1f66d36821a56069e9 /GUI
parent7888ccc96d001512dd3bdc01f299856e86c876f5 (diff)
Begin work on proxy server
Create a simple server with 3 endpoints: * /create_session: Create a session and return its identifier. * /set_transcript: Update a session's transcript. * /get_transcript: Fetch a session's transcript. Right now the session ID provides authentication *and* authorization. There is no public/private ID so you have to trust whoever you share your ID with. IDs are long and generated by the server, so it should be somewhat secure against low-effort hacking. Other updates: * Drop whisper_requirements.txt - no longer needed. * Vendor curl to make it easier to interact with the server. TODO: * Fuzz test the server.
Diffstat (limited to 'GUI')
-rw-r--r--GUI/package.ps116
1 files changed, 16 insertions, 0 deletions
diff --git a/GUI/package.ps1 b/GUI/package.ps1
index db84a6d..ca4f4b4 100644
--- a/GUI/package.ps1
+++ b/GUI/package.ps1
@@ -149,6 +149,19 @@ if (-Not (Test-Path Profanity)) {
popd > $null
}
+if (-Not (Test-Path curl)) {
+ git clone https://github.com/curl/curl
+
+ pushd curl > $null
+
+ mkdir build
+ cd build
+ cmake.exe -DCMAKE_BUILD_TYPE=Release ..
+ cmake.exe --build . --config Release
+
+ popd > $null
+}
+
mkdir $install_dir > $null
mkdir $install_dir/Resources > $null
cp -Recurse ../Animations TaSTT/Resources/Animations
@@ -170,6 +183,9 @@ mkdir TaSTT/Resources/Uwu
cp UwwwuPP/build/Src/Debug/Uwwwu.exe TaSTT/Resources/Uwu/
cp UwwwuPP/LICENSE TaSTT/Resources/Uwu/
cp -r Profanity/Profanity TaSTT/Resources/Profanity
+mkdir TaSTT/Resources/curl
+cp curl/build/src/Release/curl.exe TaSTT/Resources/curl/
+cp -r curl/LICENSES TaSTT/Resources/curl/
if (-Not $skip_zip) {
Compress-Archive -Path "$install_dir" -DestinationPath "$install_dir.zip" -Force