docs: document asset option. (#903)

This commit is contained in:
bruce-one
2021-09-27 04:37:29 +10:00
committed by GitHub
parent fe9f73d22b
commit dd3dec1f9d
2 changed files with 4 additions and 4 deletions
+1 -3
View File
@@ -111,9 +111,7 @@ export class NexeCompiler {
this.targets = options.targets as NexeTarget[]
this.target = this.targets[0]
if (!/https?\:\/\//.test(options.remote)) {
throw new NexeError(
`Invalid remote URI scheme (must be http, https, or file): ${options.remote}`
)
throw new NexeError(`Invalid remote URI scheme (must be http or https): ${options.remote}`)
}
this.remoteAsset = options.remote + this.target.toString()
this.src = join(this.options.temp, this.target.version)