Bläddra i källkod

Updated packaging script to remove .DS_Store files

master
Said Achmiz 6 år sedan
förälder
incheckning
2d7503486a
1 ändrade filer med 7 tillägg och 2 borttagningar
  1. 7
    2
      util/package.php

+ 7
- 2
util/package.php Visa fil

@@ -4,12 +4,17 @@ $platforms = [
"chrome",
"firefox"
];
$root = preg_replace('/\/[^\/]+$/','',dirname(__FILE__));
$root = preg_replace('/\/[^\/]+$/', '', dirname(__FILE__));

foreach ($platforms as $platform) {
$manifest = JSON_decode(file_get_contents("{$root}/build/{$platform}/manifest.json"), true);
$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}`;
}

?>

Laddar…
Avbryt
Spara