Select Git revision
installer.php
installer.php 5.62 KiB
#!/bin/env php
<?php
/*
I N S T A L L E R
*/
require("inc_vars.php");
require("inc_functions.php");
$gitAppmonitor="https://github.com/iml-it/appmonitor.git";
$spcUrl="https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-$myos-$myarchitecture$myosextension";
$doneBuild="__done_build-micro__.txt";
$incfile="$selfdir/src/include_checks.php";
/*
Filename Last Modified Size Download Count
spc-linux-aarch64 2025-02-15 17:30:46 3.4M 451
spc-linux-aarch64.tar.gz 2025-02-15 17:30:46 3.3M 54
spc-linux-x86_64 2025-02-15 17:30:46 3.5M 937
spc-linux-x86_64.tar.gz 2025-02-15 17:30:46 3.3M 282
spc-macos-aarch64 2025-02-15 17:31:40 7.8M 669
spc-macos-aarch64.tar.gz 2025-02-15 17:31:38 3.8M 211
spc-macos-x86_64 2025-02-15 17:31:46 7.8M 463
spc-macos-x86_64.tar.gz 2025-02-15 17:31:45 3.9M 89
spc-windows-x64.exe 2025-02-15 17:30:46 3.9M 551
*/
// ----------------------------------------------------------------------
// MAIN
// ----------------------------------------------------------------------
echo "
\e[1mCLI client\e[0m
DEVELOPMENT ENVIRONMENT
I N S T A L L E R * U P D A T E R
...............................................................................
";
// ----------------------------------------------------------------------
if ($argc > 1) {
parse_str(implode('&', array_slice($argv, 1)), $ARGS);
}
if(isset($ARGS['-h']) || isset($ARGS['--help'])){
echo "
- Get appmonitor sources or updates it
- Get spc binary
- Installations with spc doctor
- Download PHP and libs with spc
- Build Micro sfx with spc
...............................................................................
✨ \e[1mSYNTAX:\e[0m
./installer.php [OPTIONS]
🔷 \e[1mOPTIONS:\e[0m
-h, --help Show this help
-r, --reset Reset; delete created folders of installer and build
";