Class UploadDistro
Extension of ZipDistro that also uploads the zip files to a server.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
UploadDistro
Inherited Members
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 SourcecurlPath
Declaration
public string curlPath
Field Value
Type | Description |
---|---|
System.String |
login
Declaration
[Keychain("UploadDistro", null)]
public Login login
Field Value
Type | Description |
---|---|
Login |
uploadUrl
Declaration
public string uploadUrl
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceDistributeCoroutine(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
| Improve this Doc View SourceUpload(DistroBase.BuildPath)
Declaration
protected IEnumerator Upload(DistroBase.BuildPath zipPath)
Parameters
Type | Name | Description |
---|---|---|
DistroBase.BuildPath | zipPath |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |