Last active
May 18, 2022 20:40
-
-
Save notserk/558f15cd3c3b6f43c662a167b8e7b1a5 to your computer and use it in GitHub Desktop.
Fightcade Setup Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope CurrentUser | |
# Source file location | |
$source = 'https://www.fightcade.com/download/windows' | |
# Destination to save the file | |
$destination = $HOME +'\Documents\fightcade.exe' | |
#Download the file | |
$ProgressPreference = 'SilentlyContinue' | |
Invoke-WebRequest -Uri $source -OutFile $destination | |
echo "Downloading the fightcade exe" | |
echo "Follow installer steps. Make sure you install fightcade in your Documents Folder" | |
Start-Process -Wait -FilePath $destination -ArgumentList "/S /v /qn" -passthru | |
# Now lets download the json script thing | |
echo "Downloading the ROM zip file" | |
$romsZipDownloadURL = 'https://newchallenger.net/fc2/fc2roms.zip' | |
$romsTemporaryDest = $HOME + '\Downloads\fightcaderoms.zip' | |
Invoke-WebRequest -Uri $romsZipDownloadURL -OutFile $romsTemporaryDest | |
echo "Downloaded the ROM Zip file" | |
$fightcade_dir = $(Get-ChildItem -Path $HOME -Directory -Recurse -Filter "fightcade" | %{$_.FullName} | Select-Object -First 1) | |
$fightcade_dir = $fightcade_dir + '\emulator' | |
echo $fightcade_dir | |
echo "Extracting the ROM Zip file to Fightcade Directory" | |
Expand-Archive -Path $romsTemporaryDest -DestinationPath $fightcade_dir -Force -Verbose | |
echo "Everything is all set! Go kick some ass!!!" | |
Read-Host -Prompt "Press any key to continue" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment