nrlquaker / winbox-mac

MikroTik Winbox bundled into macOS app with Wine
MIT License
1.44k stars 145 forks source link

Check for new winbox version with GitHub Actions workflow on a schedule #152

Open nrlquaker opened 4 weeks ago

nrlquaker commented 4 weeks ago

Is your feature request related to a problem? Please describe. Would be nice to check for new winbox version automatically not manually.

Describe the solution you'd like Check for new winbox version using cron on GitHub Actions. When new one is available create issue.

Describe alternatives you've considered Do it manually.

Additional context Run cron job daily to check if new version is available. We can use check_sha512 script for that.

belthesar commented 4 weeks ago

I've investigated this, and I've yet to come up with a good solution. Mikrotik does not offer an API, nor an RSS feed for Winbox updates. The only endpoints for automated update checking are centered around RouterOS channels. They don't even have support for SwOS (Lite). We could regularly download Winbox and check against a hash, but I wouldn't be surprised if with the recent changes to lock down their CDN they might detect regular download behavior from Azure as abuse and block it. Something I had considered however was to follow the redirects for https://mt.lv/winbox64, and wait until we hit a URL that contains download.mikrotik.com, which includes the latest version in the URL. Following the HTTP redirects would not trigger a full download unless we did a GET against that URL, so my hope is that it would have a much lower likelihood of getting blocked.

nrlquaker commented 4 weeks ago

Good idea.

belthesar commented 3 weeks ago

Feature: Create a Github Action to check for new Winbox versions

gkl1368 commented 2 weeks ago

Winbox has new 4.0 version with macos native support

https://forum.mikrotik.com/viewtopic.php?t=210505

nrlquaker commented 2 weeks ago

Just checked. All app is 82 mb bin file. Seems like they are using some kind of cross platform library.

gkl1368 commented 2 weeks ago

Just checked. All app is 82 mb bin file. Seems like they are using some kind of cross platform library.

The new version has nice UI.

gkl1368 commented 2 weeks ago

Just checked. All app is 82 mb bin file. Seems like they are using some kind of cross platform library.

it use QT

gkl1368 commented 1 week ago

winbox has update to 4.0b3

juanpedrojose commented 1 week ago
  • Can't automate, as the only place that Mikrotik publishes Winbox changelogs seems to be on their forums

There is an rss feed for changelog: https://download.mikrotik.com/routeros/latest-stable.rss and the content looks like this:

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>MikroTik RouterOS Stable releases</title>
    <link>https://mikrotik.com/download</link>
    <description>The newest MikroTik RouterOS releases.</description>
    <item>
      <title>RouterOS 7.15.3 [stable]</title>
      <link>https://mikrotik.com/download?v=7.15.3</link>
      <description></description>
      <content:encoded><![CDATA[What's new in 7.15.3 (2024-Jul-24 13:36):<br><br>*) lte - fixed possible crash when enabling/disabling config-less modem interface;<br>*) lte - fixed R11e-LTE no traffic flow when modem with older firmware version is used;<br>*) routerboard - improved Etherboot stability for CRS320-8P-8B-4S+ device ("/system routerboard upgrade" required); <br>*) ssh - fixed unsupported user SSH public key import (introduced in v7.15);]]></content:encoded>
      <guid isPermaLink="false">RouterOS 7.15.3 [stable]</guid>
      <pubDate>Thu, 25 Jul 2024 05:34:37 +0000</pubDate>
    </item>
  </channel>
</rss>

UPD. I beg my pardon, the feed contain a changelog for Winbox but rather the routeros side of the functionality, e.g. 7.15.2:

*) winbox/webfig - fixed skins (introduced in v7.15);