Updated packaging script to remove .DS_Store files
This commit is contained in:
parent
119039bc72
commit
2d7503486a
@ -9,7 +9,12 @@ $root = preg_replace('/\/[^\/]+$/','',dirname(__FILE__));
|
|||||||
foreach ($platforms as $platform) {
|
foreach ($platforms as $platform) {
|
||||||
$manifest = JSON_decode(file_get_contents("{$root}/build/{$platform}/manifest.json"), true);
|
$manifest = JSON_decode(file_get_contents("{$root}/build/{$platform}/manifest.json"), true);
|
||||||
$version = $manifest["version"];
|
$version = $manifest["version"];
|
||||||
`cd {$root}/build/{$platform}; tar czf {$root}/release/AlwaysKillSticky-{$platform}-{$version}.tar.gz *; zip -r -FS {$root}/release/AlwaysKillSticky-{$platform}-{$version}.zip *`;
|
|
||||||
|
$command = "cd {$root}/build/{$platform}; ";
|
||||||
|
$command .= "find . -type f -name '.DS_Store' -delete; ";
|
||||||
|
$command .= "tar czf {$root}/release/AlwaysKillSticky-{$platform}-{$version}.tar.gz *; ";
|
||||||
|
$command .= "zip -r -FS {$root}/release/AlwaysKillSticky-{$platform}-{$version}.zip *";
|
||||||
|
`{$command}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue
Block a user