48 lines
1.7 KiB
PowerShell
48 lines
1.7 KiB
PowerShell
$gitFilesPath = "C:\Program Files\Git\cmd\git.exe"
|
|
$loveFilesPath = "C:\programs\love\love.exe"
|
|
$libwebpFilesPath = "C:\programs\love\webp.dll"
|
|
|
|
# Check if Git is installed
|
|
if (-not (Test-Path $gitFilesPath)) {
|
|
Write-Host "Git is not installed. Please install Git manually. URL: https://git-scm.com/downloads"
|
|
}
|
|
|
|
# Check if LÖVE is installed
|
|
if (-not (Test-Path $loveFilesPath)) {
|
|
Write-Host "LÖVE is not installed. Please install LÖVE manually. URL: https://love2d.org/"
|
|
}
|
|
|
|
# Check if libwebp is installed
|
|
if (-not (Test-Path $libwebpFilesPath)) {
|
|
Write-Host "libwebp is not installed. Please install libwebp manually. URL: https://github.com/ImagicTheCat/love-webp/tree/master/dist"
|
|
Write-Host "Copy the content of win32/win64 folder inside love folder (usually 'C:/programs/love/')"
|
|
}
|
|
|
|
# Prompt the user to continue
|
|
$continue = Read-Host "This script will proceed to download and pack the game. Do you want to continue? (Y/N)"
|
|
|
|
if ($continue -eq "Y" -or $continue -eq "y") {
|
|
|
|
# Clone repositories
|
|
git clone https://codeberg.org/glitchapp/fish-fillets-remake
|
|
git clone https://codeberg.org/glitchapp/fish-fillets-remake-assets
|
|
|
|
# Unzip downloaded files
|
|
Expand-Archive -Path .\fish-fillets-remake.zip -DestinationPath .
|
|
Expand-Archive -Path .\fish-fillets-remake-assets.zip -DestinationPath .
|
|
|
|
# Rename and move directories
|
|
Rename-Item -Path .\fish-fillets-remake-assets -NewName externalassets
|
|
Move-Item .\externalassets .\fish-fillets-remake
|
|
|
|
# Zip the game files
|
|
Compress-Archive -Path .\fish-fillets-remake\* -DestinationPath .\fish-fillets-remake.zip
|
|
|
|
# Rename the final package
|
|
Rename-Item -Path .\fish-fillets-remake.zip -NewName fish-fillets-remake.love
|
|
|
|
} else {
|
|
Write-Host "Script execution canceled."
|
|
}
|
|
|