GithubHelp home page GithubHelp logo

Comments (5)

XaeroDegreaz avatar XaeroDegreaz commented on June 26, 2024

--userversion=USERVERSION

Looking forward to this. Came here to suggest this myself.

In the interim, should something like:

scriptArguments.Append(string.format("--userversion {0}", BuildConstants.version));

work when adding it to the UploadItch.cs work?

Great asset by the way, many thanks.

from buildactions.

XaeroDegreaz avatar XaeroDegreaz commented on June 26, 2024

Actually that works quite well. I added it to line 65

scriptArguments.Append( string.Format( " --userversion {0}", BuildConstants.version ) );

from buildactions.

Chaser324 avatar Chaser324 commented on June 26, 2024

Added "--userversion" option in the latest commit.

from buildactions.

Chaser324 avatar Chaser324 commented on June 26, 2024

Also, I just want to note that it's best to not reference BuildConstants at build-time. It's primarily intended for accessing that data in your game at run-time.

Unfortunately, I don't have a great interface at the moment for accessing that data at build-time, but most of it is accessible from the arguments passed into Execute or PerBuildExecute or by directly accessing BuildSettings - the version string for instance can be found in BuildSettings.productParameters.lastGeneratedVersion.

from buildactions.

XaeroDegreaz avatar XaeroDegreaz commented on June 26, 2024

Thanks for the clarification on that. I knew there must be a better way.

from buildactions.

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.