選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

package.php 755B

123456789101112131415161718192021222324
  1. <?php
  2. $root = preg_replace('/\/[^\/]+$/', '', dirname(__FILE__));
  3. if ($argv[1] == "-b")
  4. include_once("{$root}/build.php");
  5. $platforms = array_filter(scandir("{$root}/src/platform/"), function ($str) {
  6. return strncmp($str, ".", 1);
  7. });
  8. foreach ($platforms as $platform) {
  9. $manifest = JSON_decode(file_get_contents("{$root}/build/{$platform}/manifest.json"), true);
  10. $version = $manifest["version"];
  11. $command = "cd {$root}/build/{$platform}; ";
  12. $command .= "find . -type f -name '.DS_Store' -delete; ";
  13. $command .= "mkdir -p {$root}/release; ";
  14. $command .= "tar czf {$root}/release/AlwaysKillSticky-{$platform}-{$version}.tar.gz *; ";
  15. $command .= "zip -r -FS {$root}/release/AlwaysKillSticky-{$platform}-{$version}.zip *";
  16. `{$command}`;
  17. }
  18. ?>