Skip to content

Commit 661b3aa

Browse files
manny-jimenezManny Jimenez
andauthored
Add support for new links added to the release object (release links) (#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]>
1 parent 6ed2e7f commit 661b3aa

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/appdistribution/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export interface Release {
4646
displayVersion: string;
4747
buildVersion: string;
4848
createTime: Date;
49+
firebaseConsoleUri: string;
50+
testingUri: string;
51+
binaryDownloadUri: string;
4952
}
5053

5154
export interface ReleaseNotes {

src/commands/appdistribution-distribute.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ export const command = new Command("appdistribution:distribute <release-binary-f
129129
`uploaded release ${release.displayVersion} (${release.buildVersion}) successfully!`
130130
);
131131
}
132+
utils.logSuccess(`View this release in the Firebase console: ${release.firebaseConsoleUri}`);
133+
utils.logSuccess(`Share this release with testers who have access: ${release.testingUri}`);
134+
utils.logSuccess(
135+
`Download the release binary (link expires in 1 hour): ${release.binaryDownloadUri}`
136+
);
132137
releaseName = uploadResponse.release.name;
133138
} catch (err: any) {
134139
if (err.status === 404) {

0 commit comments

Comments
 (0)