2022-03-07 21:45:54 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
|
2022-03-08 23:38:57 +00:00
|
|
|
if (file_exists(__DIR__."/../src/version.php")) {
|
|
|
|
require_once __DIR__."/../src/version.php";
|
2022-09-02 22:11:52 +00:00
|
|
|
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-08 23:38:57 +00:00
|
|
|
} else {
|
|
|
|
define("APP_VERSION", "DEV");
|
2022-03-11 00:55:35 +00:00
|
|
|
define("BUILD_DATE", "src");
|
2022-03-07 21:45:54 +00:00
|
|
|
}
|
|
|
|
|
2022-03-08 23:38:57 +00:00
|
|
|
$r = new NoccyLabs\FreshDocker\Refresher();
|
|
|
|
$r->run();
|