corbindavenport / nexus-tools

Installer for ADB, Fastboot, and other Android tools on Linux, macOS, Chrome OS, and Windows
http://forum.xda-developers.com/general/general/tool-nexus-tools-2-8-featured-xda-t3258661
GNU General Public License v3.0
844 stars 86 forks source link

Dart rewrite (Nexus Tools 5) #58

Closed corbindavenport closed 3 years ago

corbindavenport commented 3 years ago

I'm currently in the process of rewriting Nexus Tools as a command-line application written in Dart. The current shell script version has become difficult to maintain, especially compensating for every possible variation of operating system, shell, and CPU architecture.

A version of Nexus Tools that functions similarly to the existing install.sh is already in the dart branch. To maintain compatibility with all the online guides and forum threads that include the web install command for Nexus Tools, the existing install.sh bash script will become a wrapper that downloads and executes the Dart file.

There are a few upsides to this approach:

There are also a few downsides:

The work that still needs to be done:

corbindavenport commented 3 years ago

Windows support is working!

VirtualBox_Windows 10_24_07_2021_14_45_52

corbindavenport commented 3 years ago

The rewritten version runs great on macOS, and at least with macOS Big Sur and older, the executable doesn't need to be signed! Tested on x86 Mojave and ARM Big Sur. Only issue is that analytics now reports ARM macOS as x86 macOS, because the uname -m check runs under the same Rosetta environment, but that's not a big deal.

screen

corbindavenport commented 3 years ago

The Dart version is now live.