Automated Download URLs and build numbers? (Updated MacBrew Cask, but applies cross-platform)

(I put this in Technical Support, didn't quite seem to fit "Developers".)

"brew-cask install doomsday-engine" failed due to bad hash. I got it updated (https://github.com/caskroom/homebrew-cask/blob/master/Casks/doomsday-engine.rb) to the current stable build, a couple observations/questions:

That is pulling from sourceforge (https://downloads.sourceforge.net/deng/doomsday_#{version}_x86_64.dmg) - Is that desirable/okay/recommended, or should it be from http://api.dengine.net/1/builds?dl=doomsday_{version}_x86_64.dmg ? (Are they identical, is one more canonical, etc)

How do we keep it from getting out of sync w/ the next minor build revision on the same release number? Should images have the release number in their filename as well?

Somewhat tangentially, I noticed that the built Mac app version info only says "2.0", would it be possible to change the build system to add the full point release, if not the build?

Comments

  • Scandalon wrote: »
    That is pulling from sourceforge (https://downloads.sourceforge.net/deng/doomsday_#{version}_x86_64.dmg) - Is that desirable/okay/recommended, or should it be from http://api.dengine.net/1/builds?dl=doomsday_{version}_x86_64.dmg ? (Are they identical, is one more canonical, etc)
    api.dengine.net should be considered the primary source of information. For instance, the builds RSS feed is generated on that server. SourceForge is used only for mirroring the files.
    How do we keep it from getting out of sync w/ the next minor build revision on the same release number? Should images have the release number in their filename as well?
    I suppose the best way would be to use the full four-component version number, e.g., 2.0.3.2464. The build number is always unique since it's based on the number of days since January 2011.
    Somewhat tangentially, I noticed that the built Mac app version info only says "2.0", would it be possible to change the build system to add the full point release, if not the build?
    Yeah, the version number should be automatically set by CMake when the build is configured. I'll look into it...
Sign In or Register to comment.