Skip to content
Snippets Groups Projects
Commit 5b2583b1 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

test install on ms windows

parent 6e5e354d
Branches
No related tags found
No related merge requests found
......@@ -35,6 +35,6 @@ switch ($myos) {
$myos="macos";
break;
}
$myosextension=$myos=="Win" ? ".exe" : "";
$myosextension=$myos=="windows" ? ".exe" : "";
$SPC=str_replace('/', DIRECTORY_SEPARATOR , "$selfdir/$dirExternal/bin/spc$myosextension");
......@@ -11,7 +11,7 @@ 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";
$spcUrl="https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-$myos-$myarchitecture$myosextension";
$doneBuild="__done_build-micro__.txt";
/*
......@@ -113,13 +113,13 @@ if(file_put_contents($incfile, $out)){
_ok("$incfile was written");
}
_exec("php -l '$incfile'");
_exec("php -l \"$incfile\"");
// ----------------------------------------------------------------------
_h1("Get / update spc");
_chdir("$selfdir/$dirExternal/bin");
if(!file_exists($SPC)){
_exec("wget -O $SPC '$spcUrl'");
_exec("wget -O $SPC \"$spcUrl\"");
} else {
_skip("download of spc.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment