summaryrefslogtreecommitdiffstats
path: root/GUI/package.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'GUI/package.ps1')
-rw-r--r--GUI/package.ps122
1 files changed, 21 insertions, 1 deletions
diff --git a/GUI/package.ps1 b/GUI/package.ps1
index 0941196..c1109c5 100644
--- a/GUI/package.ps1
+++ b/GUI/package.ps1
@@ -4,13 +4,33 @@ if (Test-Path $install_dir) {
rm -Recurse $install_dir
}
+$git_dir = "PortableGit"
+
+if (-Not (Test-Path $git_dir)) {
+ echo "Fetching PortableGit"
+
+ # When it's time to update this, get the latest version from here:
+ # https://git-scm.com/download/win
+ $GIT_2_39_0_URL = "https://github.com/git-for-windows/git/releases/download/v2.39.0.windows.2/PortableGit-2.39.0.2-64-bit.7z.exe"
+ $GIT_URL = $GIT_2_39_0_URL
+ $GIT_FILE = $(Split-Path -Path $GIT_URL -Leaf)
+
+ if (-Not (Test-Path $GIT_FILE)) {
+ Invoke-WebRequest $GIT_URL -OutFile $GIT_FILE
+ }
+ & "./$GIT_FILE"
+
+ Read-Host -Prompt "Press enter once PortableGit is installed at $pwd\PortableGit"
+}
+
mkdir $install_dir > $null
mkdir $install_dir/Resources > $null
cp -Recurse ../Animations TaSTT/Resources/Animations
mkdir TaSTT/Resources/Fonts
cp -Recurse ../Fonts/Bitmaps TaSTT/Resources/Fonts/Bitmaps
cp -Recurse ../Images TaSTT/Resources/Images
-cp -Recurse ../Python TaSTT/Resources/Python
+cp -Recurse ../FOSS/Python TaSTT/Resources/Python
+cp -Recurse PortableGit TaSTT/Resources/PortableGit
cp -Recurse ../Scripts TaSTT/Resources/Scripts
cp -Recurse ../Shaders TaSTT/Resources/Shaders
cp -Recurse ../Sounds TaSTT/Resources/Sounds