From 78e8956015edb622777012797c263368918094a6 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 7 Feb 2017 22:55:04 +0100 Subject: Frontend to support both Git and Subversion --- frontend/index.php | 47 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) (limited to 'frontend/index.php') diff --git a/frontend/index.php b/frontend/index.php index 21d8a8a..c0bcfe3 100644 --- a/frontend/index.php +++ b/frontend/index.php @@ -47,8 +47,11 @@ if (isset($_SESSION['logged_in_id'])) { [ $_author->id , $_POST['create_pkg_name'] , $_POST['create_pkg_url'] - , $_POST['create_pkg_git_url'] - , $_POST['create_pkg_desc']]); + , $_POST['create_pkg_desc'] + , $_POST['create_pkg_fetch_url'] + , $_POST['create_pkg_fetch_dir'] + , $_POST['create_pkg_fetch_type'] + ]); echo 'Your package has been created.'; } catch (Exception $e) { echo '
' . $e->getMessage() . '.
'; @@ -118,7 +121,7 @@ if (isset($_SESSION['logged_in_id'])) :Your git repository. It should not require authorisation.
-On scheduled intervals, we will clone the repository and
+ Your repository. It should not require authorisation.
+ On scheduled intervals, we will fetch your code from here and
search for tags that look like a version number, e.g. v1.0.2.
+ The exact regex is v(\d+)\.(\d+)\.(\d+).
For those versions that are not yet found in the database,
we will checkout the tag and run make TARGET.tar.gz for all targets
(currently linux32, linux64, mac, win32 and win64).
- We will then copy tose files to /repo/PACKAGE/VERSION/PLATFORM.tar.gz.