Code Monkey home page Code Monkey logo

Comments (5)

adrianinsaval avatar adrianinsaval commented on August 17, 2024

do you need the commit hash? the bundle name includes the revision number, you could just query that

from freecad-bundle.

GAZ082 avatar GAZ082 commented on August 17, 2024

do you need the commit hash? the bundle name includes the revision number, you could just query that

Hey Adrián,

I'm using the rev number, but the thing is, the freecad_version.txt file gets updated hours before the new build.

See for example now, we are already in 37086:

rev_number: 37086 (Git)
branch_name: main
commit_date: 2024/05/02 06:09:39
commit_hash: 368b91e0358dafbf17bf0c133dbff00343fd3422
remote_url: https://github.com/FreeCAD/FreeCAD main

and the latest build has the rev 37083, for example: FreeCAD_weekly-builds-37083-conda-Linux-x86_64-py311.AppImage]

So either sync the freecad_version.txt with the build time or have a new file with the latest revision that has a build.

from freecad-bundle.

adrianinsaval avatar adrianinsaval commented on August 17, 2024

you'll notice there is a source package along side the binary builds, freecad_version.txt has information about the source package not the binary builds. The source package is updated very frequently while the binaries are updated normally twice a week.

My question is, why do you need to parse a txt? why not just use the revision number form the file name?

from freecad-bundle.

adrianinsaval avatar adrianinsaval commented on August 17, 2024

are you aware of github's API? for example you could parse https://api.github.com/repos/FreeCAD/FreeCAD-Bundle/releases/tags/weekly-builds to get the available revision number

from freecad-bundle.

GAZ082 avatar GAZ082 commented on August 17, 2024

are you aware of github's API? for example you could parse https://api.github.com/repos/FreeCAD/FreeCAD-Bundle/releases/tags/weekly-builds to get the available revision number

Ahh no I didnt, this is awesome. Thanks!

from freecad-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.