change to using actions on rdgen, added linux and android initial support

This commit is contained in:
Bryan Gerlach
2024-09-27 20:10:41 -05:00
parent e0f80826ab
commit 998ece0856
8 changed files with 1522 additions and 15 deletions

View File

@@ -1 +1,11 @@
<a href='/download?filename={{filename}}&uuid={{uuid}}'>{{filename}}</a>
{% if platform == 'windows' %}
<a href='/download?filename={{filename}}.exe&uuid={{uuid}}'>{{filename}}.exe</a>
{% elif platform == 'linux' %}
<a href='/download?filename={{filename}}.deb&uuid={{uuid}}'>{{filename}}.deb</a><br>
<a href='/download?filename={{filename}}.rpm&uuid={{uuid}}'>{{filename}}.rpm</a><br>
<a href='/download?filename={{filename}}-suse.rpm&uuid={{uuid}}'>{{filename}}-suse.rpm</a>
{% elif platform == 'android' %}
<a href='/download?filename={{filename}}.apk&uuid={{uuid}}'>{{filename}}.apk</a>
{% else %}
Error, no file generated
{% endif %}

View File

@@ -8,7 +8,7 @@
Status: {{status}}
<script>
setTimeout(function() {
window.location.replace('/check_for_file?filename={{filename}}&uuid={{uuid}}');
window.location.replace('/check_for_file?filename={{filename}}&uuid={{uuid}}&platform={{platform}}');
}, 5000); // 5000 milliseconds = 5 seconds
</script>
</body>