Show / Hide Table of Contents

Class UploadDistro

Extension of ZipDistro that also uploads the zip files to a server.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
DistroBase
ZipDistro
UploadDistro
Inherited Members
ZipDistro.prettyNames
ZipDistro.format
ZipDistro.compression
ZipDistro.appendVersion
ZipDistro.Get7ZipPath()
ZipDistro.GetPrettyName(BuildTarget)
ZipDistro.ZipBuilds(IEnumerable<DistroBase.BuildPath>)
ZipDistro.Zip(DistroBase.BuildPath)
ZipDistro.RenameRoot(String, String, String)
DistroBase.builds
DistroBase.CanRunWithoutBuildTargets
DistroBase.IsRunning
DistroBase.HasAllBuilds()
DistroBase.Build()
DistroBase.Distribute()
DistroBase.Distribute(Boolean)
DistroBase.ForceCancel()
DistroBase.Cancel()
DistroBase.BuildAndGetBuildPaths(Boolean)
DistroBase.DistributeCoroutine(Boolean)
DistroBase.runningScripts
DistroBase.Execute(String, String, String, Action<String>, Action<String>)
DistroBase.Execute(ProcessStartInfo, String, Action<String>, Action<String>)
DistroBase.RunCoroutine(IEnumerator)
DistroBase.GetSubroutineResult<T>()
Namespace: sttz.Trimmer.Editor
Assembly: Trimmer-Editor.dll
Syntax
[CreateAssetMenu(fileName = "Upload Distro.asset", menuName = "Trimmer/Upload", order = 100)]
public class UploadDistro : ZipDistro
Remarks

The distro uses curl to upload files with different protocols. curl typically supports at least file, ftp(s), http(s) and smb(s). When built with libssh2, it also support scp and sftp.

Note that the binary shipped with macOS does not support scp/sftp and might have issues with ftpes. Install and use a current curl binary using Homebrew:

brew install curl --with-libssh2

If you want to use public key authentication, specify the username in the url and leave the user field blank.

Note that curl will not create remote directories. Make sure the upload path exists on the server.

Fields

| Improve this Doc View Source

curlPath

Declaration
public string curlPath
Field Value
Type Description
System.String
| Improve this Doc View Source

login

Declaration
[Keychain("UploadDistro", null)]
public Login login
Field Value
Type Description
Login
| Improve this Doc View Source

uploadUrl

Declaration
public string uploadUrl
Field Value
Type Description
System.String

Methods

| Improve this Doc View Source

DistributeCoroutine(IEnumerable<DistroBase.BuildPath>, Boolean)

Declaration
protected override IEnumerator DistributeCoroutine(IEnumerable<DistroBase.BuildPath> buildPaths, bool forceBuild)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<DistroBase.BuildPath> buildPaths
System.Boolean forceBuild
Returns
Type Description
System.Collections.IEnumerator
Overrides
ZipDistro.DistributeCoroutine(IEnumerable<DistroBase.BuildPath>, Boolean)
| Improve this Doc View Source

Upload(DistroBase.BuildPath)

Declaration
protected IEnumerator Upload(DistroBase.BuildPath zipPath)
Parameters
Type Name Description
DistroBase.BuildPath zipPath
Returns
Type Description
System.Collections.IEnumerator
  • Improve this Doc
  • View Source
Back to top © 2017 Adrian Stutz