testing release system

This commit is contained in:
Joey Eamigh
2023-06-21 17:15:18 -04:00
parent 89262da6d3
commit 03dca844cb
9 changed files with 182 additions and 25 deletions

35
client/client.ps1 Normal file → Executable file
View File

@@ -3,8 +3,9 @@ $winget = Get-Command winget -ErrorAction SilentlyContinue
if (!$winget) {
Write-Host "Error: winget is not installed." -Foreground Red
Write-Host "This script may not work withotu winget." -Foreground Red
Write-Host "Run 'Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe' in an admin powershell prompt to install winget." -Foreground Red
Write-Host "This script probably will not work without winget." -Foreground Red
Write-Host "Run 'Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe' in to install winget." -Foreground Red
Write-Host "If you do install winget, this script should handle the rest." -Foreground Red
}
# Check that python is installed
@@ -36,11 +37,33 @@ if (-not (Get-Command "java" -ErrorAction SilentlyContinue)) {
}
# Check that git is installed
if (-not (Get-Command "git" -ErrorAction SilentlyContinue)) {
Write-Host "Error: git is not installed." -Foreground Red
if ($winget) {
Write-Host "Attempting to install git."
winget install --id Git.Git -e --source winget
}
else {
Write-Host "Please install git to continue." -Foreground Red
exit 1
}
}
# Check that multimc is installed
if (-not (Get-Command "multimc" -ErrorAction SilentlyContinue)) {
Write-Host "Error: multimc is not installed." -Foreground Red
Write-Host "Please install multimc to continue." -Foreground Red
exit 1
}
if (Test-Path ".venv") { } else { python -m venv .venv }
.venv\Scripts\Activate
. ./.venv/bin/Activate.ps1
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
(python -m pip install --upgrade pip) | Out-Null
(python -m pip install -r requirements.txt) | Out-Null
python .\client.py
python client.py