commit d39348389667896d8c3b7818d08614994d6084de equwal <truex@equwal.com> 2026-09-22 20:00:00 -0700 Give a Subrep Pro buyer the Windows installer After paying, the buyer lands on the Pro part of /subrep.html. It now links SubrepSetup.exe on honjimaku.com, before the email and the setup key for the Licence card. The "Free editions" part now names only the Android app, because the Windows app needs Pro. Tests: pytest 196 passed (1 new). The new test failed on the page without the link.
frontend/subrep.html | 15 ++++++++------- tests/test_subrep.py | 9 +++++++++ 2 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/frontend/subrep.html b/frontend/subrep.html index 6c1ea8e..bc85785 100644 --- a/frontend/subrep.html +++ b/frontend/subrep.html @@ -49,8 +49,11 @@ <section class="panel" id="pro" hidden> <h2>Your Subrep Pro</h2> <p id="pro-status"></p> - <p>On each computer that has Subrep, open the control panel and find <strong>Licence</strong>. - Enter this email and this setup key. The computer then renews its licence by itself.</p> + <p><a class="download" href="https://honjimaku.com/subrep/SubrepSetup.exe" + download="SubrepSetup.exe">Download Subrep for Windows</a> (10 or 11) and install it.</p> + <p>Then, on each computer that has Subrep, open the control panel and find + <strong>Licence</strong>. Enter this email and this setup key. The computer then renews its + licence by itself.</p> <div class="command"> <code id="link-email"></code> </div> @@ -81,11 +84,9 @@ </section> <section class="panel"> - <h2>Free editions</h2> - <ul> - <li><a href="https://honjimaku.com/subrep/">Subrep for Windows</a></li> - <li><a href="https://github.com/equwal/subrep-android/releases/latest">Subrep for Android</a></li> - </ul> + <h2>Subrep for Android</h2> + <p><a href="https://github.com/equwal/subrep-android/releases/latest">Subrep for Android</a> is + free. It makes the captions on the phone.</p> </section> </main> <script type="module"> diff --git a/tests/test_subrep.py b/tests/test_subrep.py index c71109c..338622a 100644 --- a/tests/test_subrep.py +++ b/tests/test_subrep.py @@ -395,3 +395,12 @@ def test_the_key_tool_makes_one_key_and_never_replaces_it(tmp_path, monkeypatch, assert tool.main() == 0 assert capsys.readouterr().out.strip() == public assert env.read_text(encoding="utf-8") == text + + +def test_the_page_gives_a_buyer_the_windows_installer(client): + # A buyer lands on the Pro part of the page after paying, and needs the + # app there, with the setup key. + page = client.get("/subrep.html").text + pro = page[page.index('id="pro"'):page.index('id="ios"')] + assert 'href="https://honjimaku.com/subrep/SubrepSetup.exe"' in pro + assert 'id="link-key"' in pro