Files
fresh/bin/freshdocker
T

25 lines
625 B
PHP
Raw Normal View History

2022-03-07 22:45:54 +01:00
#!/usr/bin/env php
<?php
require_once __DIR__."/../vendor/autoload.php";
2022-03-09 00:38:57 +01:00
if (file_exists(__DIR__."/../src/version.php")) {
require_once __DIR__."/../src/version.php";
if (PHAR::running()) {
require_once __DIR__."/../src/swup.php";
SWUP::register([
'url' => "https://files.noccylabs.info/.repo",
'channel' => 'beta',
'package' => 'fresh',
'version' => APP_VERSION,
'phar' => 'fresh.phar'
]);
}
2022-03-09 00:38:57 +01:00
} else {
define("APP_VERSION", "DEV");
2022-03-11 01:55:35 +01:00
define("BUILD_DATE", "src");
2022-03-07 22:45:54 +01:00
}
2022-03-09 00:38:57 +01:00
$r = new NoccyLabs\FreshDocker\Refresher();
$r->run();