{% set i2pinstall_windows_hash = '3f59e4604531c07b39c6564712b45660a836f0ed7fc52c2a2602320e2da0d591' %} {% set i2pinstall_jar_hash = 'ee5297b2746e324c9ca33b19513ff09b50724ae3b9f588e4ccc31fc389ce50aa' %} {% set i2psource_hash = '91ac91f7a3e202d248f5294f4951f6b7d8b9bde32991adf7a813ae1bb9188898' %} {% set i2pupdate_hash = '33d969e859c772ba7def142ab0ebbe0c2e8ec52a832bbe31141eaad0eaf556d3' %} {% set i2p_android_hash = 'b14e3cc5ea12eb2e8bccb81dd2e86eeea3baba6695eb1a9f4d9053e76aeb131d' %} {% set i2p_android_version = '0.9.22' %} {% set i2p_android_version_kytv = '0.9.22' %} {% set i2p_android_version_fdroid = '0.9.19' %} {% macro package_outer(type, name, icon) -%}
{{ name }}
{{ caller() }}
{%- endmacro %} {% macro package(type) -%} {%- if type == 'windows' -%} {%- set name = 'Windows' -%} {%- set icon = 'images/download/windows.png' -%} {%- set filename = 'i2pinstall_%s_windows.exe' -%} {%- set signame = 'i2pinstall_%s_windows.exe.sig' -%} {%- set hash = i2pinstall_windows_hash -%} {%- elif type == 'android' -%} {%- set name = 'Android' -%} {%- set icon = 'images/download/android.png' -%} {%- set hash = i2p_android_hash -%} {%- elif type == 'source' -%} {%- set name = _('Source package') -%} {%- set icon = 'images/download/source.png' -%} {%- set filename = 'i2psource_%s.tar.bz2' -%} {%- set signame = 'i2psource_%s.tar.bz2.sig' -%} {%- set hash = i2psource_hash -%} {%- elif type == 'update-file' -%} {%- set name = _('Manual updates') -%} {%- set icon = 'images/download/update-manual.png' -%} {%- set filename = 'i2pupdate_%s.zip' -%} {%- set signame = 'i2pupdate_%s.zip.sig' -%} {%- set hash = i2pupdate_hash -%} {%- else -%} {%- if type == 'mac' -%} {%- set name = 'Mac OS X' -%} {%- set icon = 'images/download/mac-osx.png' -%} {%- elif type == 'unix' -%} {%- set name = 'GNU/Linux / BSD / Solaris' -%} {%- set icon = 'images/download/freebsd-tux.png' -%} {%- endif -%} {%- set filename = 'i2pinstall_%s.jar' -%} {%- set signame = 'i2pinstall_%s.jar.sig' -%} {%- set hash = i2pinstall_jar_hash -%} {%- endif -%} {%- set details = caller() -%} {% call package_outer(type, name, icon) %}
{%- if type == 'android' %} {% trans %}Outside I2P{% endtrans %} ({{ i2p_android_version }}) {% trans %}Inside I2P{% endtrans %} ({{ i2p_android_version_kytv }}) Google Play ({{ i2p_android_version }}) {% trans %}Our F-Droid repository{% endtrans %} ({{ i2p_android_version }}) F-Droid ({{ i2p_android_version_fdroid }}) {% trans %}Development Builds{% endtrans %} {% else %} {{ ver(filename) }}
{{ _('Mirror:') }} {{ def_mirror.org }}
{{ _('select alternate mirror') }} sig {% endif -%}
{{ hash }}
{{ details }} {% endcall %} {%- endmacro %}