소스 검색

Fixed bugs in build scripts

master
Said Achmiz 6 년 전
부모
커밋
b5c7f4d7cb
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      build.php
  2. 5
    1
      util/package.php

+ 1
- 1
build.php 파일 보기

@@ -15,7 +15,7 @@ if ($argc < 2) {
}

## Determine path to repository root.
$root = preg_replace('/\/[^\/]+$/', '', dirname(__FILE__));
$root = dirname(__FILE__);

## Determine what platforms are available.
$platforms = array_filter(scandir("{$root}/src/platform/"), function ($str) {

+ 5
- 1
util/package.php 파일 보기

@@ -2,14 +2,18 @@

$root = preg_replace('/\/[^\/]+$/', '', dirname(__FILE__));

if ($argv[1] == "-b")
if ($argv[1] == "-b") {
$argv[1] = "all";
include_once("{$root}/build.php");
}
$platforms = array_filter(scandir("{$root}/src/platform/"), function ($str) {
return strncmp($str, ".", 1);
});

foreach ($platforms as $platform) {
echo "Packaging for: {$platform}\n";

$manifest = JSON_decode(file_get_contents("{$root}/build/{$platform}/manifest.json"), true);
$version = $manifest["version"];


Loading…
취소
저장