Rockbox General > Rockbox General Discussion
Windows Batch Script for Updating to Latest Rockbox Build
Shiftlock:
--- Quote from: bluebrother on April 24, 2010, 05:47:11 AM ---
--- Quote from: Shiftlock on April 24, 2010, 05:32:02 AM ---Question: The only DAP I've installed Rockbox on is the Sansa Fuze V1 and V2. Is the process of installing a new compiled build the same on other players (i.e. copy the .rockbox folder)?
--- End quote ---
yes.
--- End quote ---
Great, then this script should work with any player. I would like to make it auto-detect the type of player. In the .rockbox\rockbox-info.txt file, my V1 Fuze says:
Target: sansafuze
Target id: 53
Target define: -DSANSA_FUZE
And my V2 Fuze says:
Target: sansafuzev2
Target id: 68
Target define: -DSANSA_FUZEV2
Does anybody know where I can get a list of "Target" information for all DAP models that have Rockbox builds?
bluebrother:
--- Quote from: Shiftlock on April 24, 2010, 05:18:54 PM ---Does anybody know where I can get a list of "Target" information for all DAP models that have Rockbox builds?
--- End quote ---
As (indirectly) said earlier, check out how Rockbox Utility handles things: http://svn.rockbox.org/viewvc.cgi/trunk/rbutil/rbutilqt/rbutil.ini?view=markup
Basically, the "Target" line holds the unique target name that is also used for download file names. Note this line in the file I've linked above:
--- Code: ---http://build.rockbox.org/data/rockbox-%MODEL%.zip
--- End code ---
Shiftlock:
Well, I think I've finished this script. Nothing needs to be manually changed or modified, just run the batch file and it will update any player that already has Rockbox installed to the current build (not the stable release build, but the current build with the latest changes that is updated daily).
The script will now determine the model of player, and download/install the correct build. It will also determine the drive letter of your player. It will check your system for the needed supporting programs (unzip and BITSAdmin download utility) and if they're not on your system, it will help you download/install them. It will display download progress, as well as the old version on your player and the new version it's installing.
I edited the original post in this thread to reflect the changes, new code, as well as the URL to download the script if you prefer to get it that way. If anybody tries it, I would be interested to hear how it works for you.
Llorean:
I'm curious, why all this effort? What lacking functionality of RBUtil is this to address?
fml2:
I don't like the fact that the script (IIUC) creates some folders on the computer.
But the main question, as Llorean said, is: why would you need it? RBUtility already does it, and has some advantages:
* it's "official" and well supported and maintained
* you can choose what player to update (the script updates the first player it finds IIUC)
The good feature of the script is that it can run unattended. I think we could/should add some command line switches to RBUtility so that it can do that too.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version