buildactions icon indicating copy to clipboard operation
buildactions copied to clipboard

Additional itch.io options.

Open Chaser324 opened this issue 9 years ago • 5 comments

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.
  • [x] --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.

Chaser324 avatar Jan 27 '17 21:01 Chaser324

--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 avatar Mar 03 '17 08:03 XaeroDegreaz

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

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

XaeroDegreaz avatar Mar 03 '17 08:03 XaeroDegreaz

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

Chaser324 avatar Mar 03 '17 14:03 Chaser324

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.

Chaser324 avatar Mar 03 '17 14:03 Chaser324

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

XaeroDegreaz avatar Mar 04 '17 03:03 XaeroDegreaz