Open Chaser324 opened 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.
Actually that works quite well. I added it to line 65
scriptArguments.Append( string.Format( " --userversion {0}", BuildConstants.version ) );
Added "--userversion" option in the latest commit.
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
.
Thanks for the clarification on that. I knew there must be a better way.
There are some additional flags available through the itch.io butler command line tool that should probably be surfaced as options.
--verbose
- Provides additional details about push operation.--identity="PATH_TO_CREDENTIALS"
- Allows user to specify path to a specific itch.io API token. Might be nice for people that upload to multiple accounts.--ignore=IGNORE
- Glob pattern of files to ignore.--userversion=USERVERSION
- Since users might already be generating a version number with SuperUnityBuild, they might as well pass it to itch.io for the sake of keeping things consistent.--beeps4life
- Butler emits a system beep when starting a task. BEEPS 4 LIFE.