Added config for makephar

This commit is contained in:
Chris 2017-02-12 16:19:07 +01:00
parent ecf08ad267
commit fe5ac914d9
2 changed files with 26 additions and 0 deletions

17
makephar.sdl Normal file
View File

@ -0,0 +1,17 @@
phar "vfxapply.phar" {
include {
dir "src";
dir "vendor";
}
exclude {
dir ".git";
dir "Tests";
}
props exec="props.php";
metadata {
package_name "vfxapply.application";
package_version prop="APP_VERSION";
update_channel "https://packages.noccylabs.info/channel/vfxapply/stable.json";
}
stub "src/app.php";
}

9
props.php Normal file
View File

@ -0,0 +1,9 @@
<?php
$gitver = exec("git describe --tag");
if (strpos($gitver,"-")!==false) {
$gitver = explode("-",$gitver);
$gitver = join(".",array_slice($gitver,0,2));
}
printf("APP_VERSION=%s\n", $gitver);