Skip to content

Commit

Permalink
added build env gui and download package link
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasites committed Apr 28, 2023
1 parent f4e1501 commit fe894f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _build/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
}

//echo "<div style='color:#aaa; margin-top: 200px'>Made for MODX RSC by @dimasites and friends</div>";
echo "<div style='color:#aaa; margin-top: 200px'>Made for MODX RSC by @dimasites and friends</div>";

}else{
// Define paths
Expand All @@ -42,6 +42,7 @@
}

$file = MODX_CORE_PATH.'packages/'.$_REQUEST['getpackage'].'.transport.zip';

if (file_exists($file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
Expand Down
4 changes: 4 additions & 0 deletions _build/minishop2/build.transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@
}
}
$modx->log(modX::LOG_LEVEL_INFO, "\n<br />Execution time: {$totalTime}\n");

$download_url = '/_build/index.php?getpackage='.PKG_NAME_LOWER.'-'.PKG_VERSION.'-'.PKG_RELEASE;
$modx->log(modX::LOG_LEVEL_INFO,"\n<br /><a target='_blank' href='{$download_url}'>Download package</a><br />\n");

echo '</pre>';

if (!empty($_GET['download'])) {
Expand Down

0 comments on commit fe894f0

Please sign in to comment.