Explorar el Código

Added packaging script

master
Said Achmiz hace 6 años
padre
commit
c548cc3c7a
Se han modificado 1 ficheros con 15 adiciones y 0 borrados
  1. 15
    0
      util/package.php

+ 15
- 0
util/package.php Ver fichero

@@ -0,0 +1,15 @@
<?php

$platforms = [
"chrome",
"firefox"
];
$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}/AlwaysKillSticky-{$platform}-{$version}.tar.gz *`;
}

?>

Cargando…
Cancelar
Guardar