diff --git a/i2p2www/downloads.py b/i2p2www/downloads.py index 2c6c16f9..419d5ac9 100644 --- a/i2p2www/downloads.py +++ b/i2p2www/downloads.py @@ -104,7 +104,21 @@ def downloads_firefox(): # The Lab def downloads_lab(): - return render_template('downloads/lab.html') + # TODO: read mirror list or list of available files + if request.headers.get('X-I2P-Desthash') and not request.headers.get('X-Forwarded-Server'): + def_mirror = DEFAULT_I2P_MIRROR + else: + def_mirror = DEFAULT_MIRROR + return render_template('downloads/lab.html', def_mirror=def_mirror) + +# Mac DMG page +def downloads_mac(): + # TODO: read mirror list or list of available files + if request.headers.get('X-I2P-Desthash') and not request.headers.get('X-Forwarded-Server'): + def_mirror = DEFAULT_I2P_MIRROR + else: + def_mirror = DEFAULT_MIRROR + return render_template('downloads/mac.html', def_mirror=def_mirror) def downloads_config(): return render_template('downloads/config.html') diff --git a/i2p2www/legacy.py b/i2p2www/legacy.py index 715d27eb..4f5b9d0f 100644 --- a/i2p2www/legacy.py +++ b/i2p2www/legacy.py @@ -19,6 +19,7 @@ LEGACY_FUNCTIONS_MAP={ 'debian': {'function': 'downloads_debian', 'params': {}}, 'firefox': {'function': 'downloads_firefox', 'params': {}}, 'lab': {'function': 'downloads_lab', 'params': {}}, + 'mac': {'function': 'downloads_mac', 'params': {}}, 'download': {'function': 'downloads_list', 'params': {}}, 'installation': {'function': 'downloads_list', 'params': {}}, 'meetings': {'function': 'meetings_index', 'params': {}}, diff --git a/i2p2www/pages/downloads/list.html b/i2p2www/pages/downloads/list.html index db73a608..d6f2a941 100644 --- a/i2p2www/pages/downloads/list.html +++ b/i2p2www/pages/downloads/list.html @@ -128,6 +128,13 @@ I2P connections.
java -jar i2pinstall_{{ i2pversion }}.jar -console
to follow
the install procedure in your terminal.
{%- endtrans %}
+
+ {% trans -%} +We are excited to offer you a DMG bundle for Mac OS. It installs and behaves the same way many other Mac OS applications do and does not require a Java Runtime Environment to be available. +{%- endtrans %}
+{% trans -%} +I2P behaves like any other Mac application. When you launch I2P, the I2P icon will appear on the Dock and a few seconds later a browser will open with the I2P console page, inviting you to complete the setup wizard. +{%- endtrans %}
+{% trans -%} +If you want to browse hidden websites ('eepsites') on the I2P network, you need to configure your browser. +{%- endtrans %}
+ +{%- set name = 'Windows' -%} +{%- set icon = 'images/download/mac-osx.png' -%} +{%- set filename = 'I2P-%s.dmg' -%} +{%- set hash = '07c729c26fc8a31c0e74fe7b4de7be1f8e390d018748322ada35b29de9d' -%} + +{% call package_outer('osx', name, icon) %} +{% trans -%}
+Download that file and double-click on it. Accept the License Agreement, then drag the I2P
icon on top of the Applications
icon. Launch I2P from Finder.
+ {%- endtrans %}
{% trans -%} +I2P will not install any launch agents on your Mac. If you want I2P to start on system startup, you need to configure a launch agent yourself. You can configure I2P to launch when your user logs in by right-clicking on the I2P Dock icon. +{%- endtrans %}
+