Skip to content

Commit

Permalink
Add support for new links added to the release object (release links) (
Browse files Browse the repository at this point in the history
…#5405) (#5438)

* [WIP] Adding release links to firebase cli

* Update client.spec.ts

* Update appdistribution-distribute.ts

* Update appdistribution-distribute.ts

Co-authored-by: Manny Jimenez <[email protected]>

Co-authored-by: Manny Jimenez <[email protected]>
  • Loading branch information
manny-jimenez and Manny Jimenez authored Jan 18, 2023
1 parent 6ed2e7f commit 661b3aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/appdistribution/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export interface Release {
displayVersion: string;
buildVersion: string;
createTime: Date;
firebaseConsoleUri: string;
testingUri: string;
binaryDownloadUri: string;
}

export interface ReleaseNotes {
Expand Down
5 changes: 5 additions & 0 deletions src/commands/appdistribution-distribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ export const command = new Command("appdistribution:distribute <release-binary-f
`uploaded release ${release.displayVersion} (${release.buildVersion}) successfully!`
);
}
utils.logSuccess(`View this release in the Firebase console: ${release.firebaseConsoleUri}`);
utils.logSuccess(`Share this release with testers who have access: ${release.testingUri}`);
utils.logSuccess(
`Download the release binary (link expires in 1 hour): ${release.binaryDownloadUri}`
);
releaseName = uploadResponse.release.name;
} catch (err: any) {
if (err.status === 404) {
Expand Down

0 comments on commit 661b3aa

Please sign in to comment.