You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the rename, we removed a bunch of flows. They need to be considered for re-integration, but in a better way. Maybe cli, maybe multi-actuion cli, maybe a separate RokuDeployFlows class. We don't know yet, but we want to save them.
make a zip and then delete the staging dir (we removed the "delete staging dir" part)
createPackage.
/** * Create a zip folder containing all of the specified roku project files. * @param options */publicasynccreatePackage(options: CreatePackageOptions,beforeZipCallback?: (info: BeforeZipCallbackInfo)=>Promise<void>|void){options=this.getOptions(options)asany;awaitthis.stage(options);letmanifestPath=util.standardizePath(`${options.stagingDir}/manifest`);letparsedManifest=awaitthis.parseManifest(manifestPath);if(options.incrementBuildNumber){let timestamp =dateformat(newDate(),'yymmddHHMM');parsedManifest.build_version=timestamp;//eslint-disable-line camelcaseawaitthis.fsExtra.writeFile(manifestPath,this.stringifyManifest(parsedManifest));}if(beforeZipCallback){letinfo: BeforeZipCallbackInfo={manifestData: parsedManifest,stagingFolderPath: options.stagingDir,stagingDir: options.stagingDir};awaitPromise.resolve(beforeZipCallback(info));}awaitthis.zip(options);}
deploy
/** * Create a zip of the project, and then publish to the target Roku device * @param options */publicasyncdeploy(options?: DeployOptions,beforeZipCallback?: (info: BeforeZipCallbackInfo)=>void){
options =this.getOptions(options)asany;awaitthis.createPackage(options,beforeZipCallback);if(options.deleteInstalledChannel){try{awaitthis.deleteInstalledChannel(options);}catch(e){// note we don't report the error; as we don't actually care that we could not deploy - it's just useless noise to log it.}}letresult=awaitthis.sideload(optionsasany);returnresult;}
deployAndSignPackage
/** * executes sames steps as deploy and signs the package and stores it in the out folder * @param options */publicasyncdeployAndSignPackage(options?: DeployAndSignPackageOptions,beforeZipCallback?: (info: BeforeZipCallbackInfo)=>void): Promise<string>{
options =this.getOptions(options)asany;letretainStagingDirInitialValue=options.retainStagingDir;options.retainStagingDir=true;awaitthis.deploy(optionsasany,beforeZipCallback);if(options.convertToSquashfs){awaitthis.convertToSquashfs(optionsasany);}letremotePkgPath=awaitthis.signPackage(optionsasany);letlocalPkgFilePath=awaitthis.retrieveSignedPackage(remotePkgPath,optionsasany);if(retainStagingDirInitialValue!==true){awaitthis.fsExtra.remove(options.stagingDir);}returnlocalPkgFilePath;}
The text was updated successfully, but these errors were encountered:
During the rename, we removed a bunch of flows. They need to be considered for re-integration, but in a better way. Maybe cli, maybe multi-actuion cli, maybe a separate RokuDeployFlows class. We don't know yet, but we want to save them.
make a zip and then delete the staging dir (we removed the "delete staging dir" part)
createPackage.
deploy
deployAndSignPackage
The text was updated successfully, but these errors were encountered: