summaryrefslogtreecommitdiffstats
path: root/GUI/package.ps1
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-06-28 21:24:56 -0700
committeryum <yum.food.vr@gmail.com>2023-06-28 21:24:56 -0700
commitbdaeb1911297d7901a12e3ac51b38c3463789279 (patch)
treeb6151c80100db635ca0c4479d8b1afde838b579e /GUI/package.ps1
parentff7eb3c212195af71cd0ce4a3cd0c9a081d6ebda (diff)
Add profanity filter
Add toggle to UI to enable a profanity filter. It replaces vowels in bad words with asterisks. Bugfix: filters now apply to OBS
Diffstat (limited to 'GUI/package.ps1')
-rw-r--r--GUI/package.ps117
1 files changed, 17 insertions, 0 deletions
diff --git a/GUI/package.ps1 b/GUI/package.ps1
index 4800777..db84a6d 100644
--- a/GUI/package.ps1
+++ b/GUI/package.ps1
@@ -133,6 +133,22 @@ if (-Not (Test-Path UwwwuPP)) {
popd > $null
}
+if (-Not (Test-Path Profanity)) {
+ mkdir Profanity
+ pushd Profanity > $null
+
+ $repo = "List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words"
+ git clone https://github.com/LDNOOBW/$repo
+
+ mkdir Profanity
+ cp $repo/LICENSE Profanity/
+ cp $repo/en Profanity/
+
+ echo "Source: https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words" > Profanity/AUTHOR
+
+ popd > $null
+}
+
mkdir $install_dir > $null
mkdir $install_dir/Resources > $null
cp -Recurse ../Animations TaSTT/Resources/Animations
@@ -153,6 +169,7 @@ mkdir TaSTT/Resources/Models
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
if (-Not $skip_zip) {
Compress-Archive -Path "$install_dir" -DestinationPath "$install_dir.zip" -Force