Commit f1813e37 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Download page

parent bf413198
Pipeline #109243 passed with stages
in 5 minutes and 28 seconds
......@@ -3,8 +3,8 @@ image: debian:latest
stages:
- dist
- check
- manual
- package
- manual
dist:
stage: dist
......
......@@ -17,12 +17,55 @@ cd build/
make -j 16 install-html || exit 1
make distclean || exit 1
for dep in $(cat /etc/dependencies)
do
apt-get remove -y $dep || exit 1
if ../tarot-$VERSION/configure > log.txt 2>&1
then
echo "Dependency $dep is not required to configure the package"
exit 1
fi
done
LIST_BRANCHES_URL="$CI_API_V4_URL/projects/$CI_PROJECT_ID/repository/branches"
echo "Finding branches from API... $LIST_BRANCHES_URL"
ALL_BRANCHES=$(wget -O- $LIST_BRANCHES_URL 2>/dev/null | jq -r '.[].name')
echo "All branches: $ALL_BRANCHES"
REFS=$(
for ref in $ALL_BRANCHES
do
case $ref in
master | develop);;
*) echo "$ref";;
esac
done)
echo "The refs are: $REFS"
if test "x$CI_PAGES_URL" = "x"
then
echo "Gitlab version $CI_SERVER_VERSION < 11.8"
export CI_PAGES_URL="https://gugurumbe.frama.io/tarot"
fi
echo "The pages URL is $CI_PAGES_URL"
cat > ../public/download.html <<EOF
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Download TAROT</title>
</head>
<body>
<h1>Download tarot</h1>
<p>You have several options for downloading tarot.</p>
<h2>Download as a <a href="https://flatpak.org/">Flatpak repository</a></h2>
<p>
<ul>
<li>In order to run the latest version, simply add the "master" <a href="$CI_PAGES_URL/flatpak/master/tarot.flatpakrepo" download="tarot-master.flatpakrepo">Flatpakrepo</a>;
</li>
<li>If you want the latest unreleased features, add the "develop" <a href="$CI_PAGES_URL/flatpak/develop/tarot.flatpakrepo" download="tarot-develop.flatpakrepo">Flatpakrepo</a>;
</li>
$(for ref in $REFS; do echo "<li>(only for developers) If you want to track the work in progress for the feature $ref, add its own <a href=\"$CI_PAGES_URL/flatpak/$ref/tarot.flatpakrepo\" download=\"tarot-wip.flatpakrepo\">Flatpakrepo</a>;</li>" ; done)
</ul>
</p>
</body>
</html>
EOF
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tarot 0.4.2.83-ebdc-dirty\n"
"Report-Msgid-Bugs-To: vivien@planete-kraus.eu\n"
"POT-Creation-Date: 2019-02-02 21:03+0100\n"
"POT-Creation-Date: 2019-02-02 22:30+0100\n"
"PO-Revision-Date: 2019-02-02 20:59+0100\n"
"Last-Translator: Vivien Kraus <vivien@planete-kraus.eu>\n"
"Language-Team: French\n"
......
......@@ -6,6 +6,8 @@
This is the repository of the Tarot source code. Welcome!
You will most likely want to [[https://gugurumbe.frama.io/tarot/download.html][download]] the software.
You will find the usual =autogen.sh= to start building your
=configure= script, and then go all GNU!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment