-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEasyInstall.ps1
More file actions
28 lines (22 loc) · 880 Bytes
/
EasyInstall.ps1
File metadata and controls
28 lines (22 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Write-Host -ForegroundColor Yellow "+++ PKMN Asset Builder +++"
Write-Host "`nAccording to the National Pok\u00e9mon Index, the first 151 entries served in Generation I."
Write-Host "You may use any of these numbers to create new asset files to play this game.`n"
$ID1 = Read-Host "Pokemon ID #1"
$ID2 = Read-Host "Pokemon ID #2"
if ( -not (Test-Path -Path "venv" -PathType Container) )
{
Write-Host -ForegroundColor Yellow "Creating a new virtual environment . . ."
python -m venv venv/
.\venv\Scripts\Activate.ps1
Write-Host "Installing dependencies . . ."
python -m pip install --upgrade pip
python -m pip install -r requirements.txt --only-binary all
}
else
{
.\venv\Scripts\Activate.ps1
}
python gen_data.py --verbose make --id $ID1 $ID2
python gen_data.py manifest
Write-Host -ForegroundColor Yellow "Done!"
deactivate # virtual environment