Skip to content

Commit

Permalink
Support packageTask
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Feb 21, 2024
1 parent 381ccfe commit c781939
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/LaunchConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ export interface LaunchConfiguration extends DebugProtocol.LaunchRequestArgument
*/
packageTask: string;

/**
* Task to run to upload the package instead of having roku-deploy do it
*/
publishTask: string;

/**
* Path to the .zip that will be uploaded to the Roku
*/
Expand Down
6 changes: 6 additions & 0 deletions src/debugSession/BrightScriptDebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@ export class BrightScriptDebugSession extends BaseDebugSession {
}

private async publish() {
if (this.launchConfiguration.publishTask) {
util.log(`Executing task '${this.launchConfiguration.publishTask}' to upload the zip instead of having roku-deploy do it`);
await this.sendCustomRequest('executeTask', { task: this.launchConfiguration.publishTask });
return;
}

this.logger.log('Uploading zip');
const start = Date.now();
let packageIsPublished = false;
Expand Down

0 comments on commit c781939

Please sign in to comment.