superunitybuild / buildactions

BuildActions for use with the SuperUnityBuild build automation tool.
https://github.com/superunitybuild/buildtool
MIT License
184 stars 38 forks source link

Additional itch.io options. #3

Open Chaser324 opened 7 years ago

Chaser324 commented 7 years ago

There are some additional flags available through the itch.io butler command line tool that should probably be surfaced as options.

XaeroDegreaz commented 7 years ago

--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.

XaeroDegreaz commented 7 years ago

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

scriptArguments.Append( string.Format( " --userversion {0}", BuildConstants.version ) );
Chaser324 commented 7 years ago

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

Chaser324 commented 7 years ago

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.

XaeroDegreaz commented 7 years ago

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