Skip to content

Commit f93ab6a

Browse files
committed
Add PS script for Windows users
1 parent 11a3f13 commit f93ab6a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

EasyInstall.ps1

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Write-Host -ForegroundColor Yellow "+++ PKMN Asset Builder +++"
2+
3+
Write-Host "`nAccording to the National Pok\u00e9mon Index, the first 151 entries served in Generation I."
4+
Write-Host "You may use any of these numbers to create new asset files to play this game.`n"
5+
6+
$ID1 = Read-Host "Pokemon ID #1"
7+
$ID2 = Read-Host "Pokemon ID #2"
8+
9+
if ( -not (Test-Path -Path "venv" -PathType Container) )
10+
{
11+
Write-Host -ForegroundColor Yellow "Creating a new virtual environment . . ."
12+
python -m venv venv/
13+
.\venv\Scripts\Activate.ps1
14+
Write-Host "Installing dependencies . . ."
15+
python -m pip install --upgrade pip
16+
python -m pip install -r requirements.txt --only-binary all
17+
}
18+
else
19+
{
20+
.\venv\Scripts\Activate.ps1
21+
}
22+
23+
python gen_data.py --verbose make --id $ID1 $ID2
24+
python gen_data.py manifest
25+
26+
Write-Host -ForegroundColor Yellow "Done!"
27+
28+
deactivate # virtual environment

0 commit comments

Comments
 (0)