Last active
August 22, 2020 08:55
-
-
Save xPaw/d560ddaf9bf1b5d275d95ca1988c64cb to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
declare(strict_types=1); | |
// Alternatively manifest_ios | |
$manifest = file_get_contents( 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-Underlords-Android/master/manifest_android.json' ); | |
$manifest = json_decode( $manifest, true ); | |
$out = "#!/bin/bash\n"; | |
foreach( $manifest[ 'assets' ] as $assetName => $asset ) | |
{ | |
if( strpos( $assetName, 'pak01' ) === false ) | |
{ | |
continue; | |
} | |
$out .= "echo '=========== Downloading {$assetName}'\n"; | |
$out .= 'curl --create-dirs -o ' . escapeshellarg( $assetName ) . ' ' . escapeshellarg( $manifest[ 'cdnroot' ] . $assetName ) . "\n"; | |
} | |
file_put_contents( 'download_underlords.sh', $out ); | |
echo 'bash ./download_underlords.sh' . PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment