diff --git a/resources/build/build.php b/resources/build/build.php deleted file mode 100644 index 528ac4c..0000000 --- a/resources/build/build.php +++ /dev/null @@ -1,115 +0,0 @@ -" --catch ERR_ALL="btw_license_error" "*.php"', - LICENSE_FILE, - PROJECT_ID, - PROJECT_KEY -); -system($sgCommand); - -echo 'Creating the release archive...' . PHP_EOL . PHP_EOL; -$rootPath = dirname(dirname(__DIR__)); - -// Initialize archive object -$zip = new ZipArchive(); -$zip->open(sprintf('%s/blue-twilight_%s.zip', $argv[1], $argv[0]), ZipArchive::CREATE | ZipArchive::OVERWRITE); - -/** @var SplFileInfo[] $files */ -$files = new RecursiveIteratorIterator( - new RecursiveDirectoryIterator($rootPath), - RecursiveIteratorIterator::LEAVES_ONLY -); - -foreach ($files as $name => $file) -{ - // Skip directories (they will be added automatically) - if (!$file->isDir()) - { - // Get real and relative path for current file - $filePath = $file->getRealPath(); - $relativePath = substr($filePath, strlen($rootPath) + 1); - - // Add current file to archive - $zip->addFile($filePath, $relativePath); - } -} - -$zip->close(); - -echo PHP_EOL . PHP_EOL; -echo 'All done!'; -echo PHP_EOL . PHP_EOL; -exit(); - -?> \ No newline at end of file