Rockbox General > Rockbox General Discussion
Windows Batch Script for Updating to Latest Rockbox Build
torne:
Indeed, but we don't want people to link to copyright-infringing files. Linking to a site which has *permission* to distribute something is fine, as I already said.
Shiftlock:
I edited the original post in this thread. I modified the script to use the "ping" trick suggested by pondlife, so sleep.exe is no longer necessary. I also added download links for the other two files. These links point to the authors' own sites, so there is no copyright violation.
Again, I'm sorry for creating a potential copyright issue. It wasn't intentional.
torne:
A much simpler replacement for BitsAdmin, which is using the complex MS background downloader service, is wget, which is available for pretty much any OS and works in the foreground, so you don't need the status polling loop. wget is GPLed and thus you can redistribute it if you wish.
Shiftlock:
I made some major changes to this batch script, so I edited the original post in this thread with the updated code and info. Is anybody interested in testing it? It's quite a bit more complex now. I'm sure there are better ways to do a lot of this, seeing that this is the first programming I've messed with since BASIC on the Commodore 64 over 25 years ago, so please, no laughter if my routines and syntax are backasswards. <grin>
The script will now:
* Create a directory under Program Files called RockboxUpdate, if it doesn't already exist, where it will download and unzip the Rockbox files.
* Check to see if the BITSAdmin utility exists on the system, and if not, opens a download of it in a browser window.
* Check to see if unzip.exe exists, and if not, it will download it and keep running.
* Automatically locate the drive letter of the player.
The only variable that needs to be manually defined is the URL for the player's Rockbox build. I haven't figured out a way to determine that yet, although looking in the .rockbox/rockbox-info.txt file might be the answer.
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)?
bluebrother:
--- Quote from: Shiftlock on April 24, 2010, 05:32:02 AM ---The only variable that needs to be manually defined is the URL for the player's Rockbox build. I haven't figured out a way to determine that yet, although looking in the .rockbox/rockbox-info.txt file might be the answer.
--- End quote ---
Yes, that's a possible way. Rockbox Utility uses this file (amonst other measures) to detect the player, and if that file is found the detection is unique (various other methods used for detecting the player are not).
--- Quote ---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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version