Skip to content

Commit 8bbe3af

Browse files
Merge pull request #13 from SimformSolutionsPvtLtd/develop
Release v1.0.3
2 parents 35a877a + b0a61e6 commit 8bbe3af

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simform-pocket-cli",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Pocket Deploy command-line utility",
55
"homepage": "https://github.com/SimformSolutionsPvtLtd/pocket-cli/#readme",
66
"author": "Simform Solutions",

src/deployTheApp.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ const deployApp = async (
134134
});
135135

136136
let chunkNumber = 1;
137+
let downloadPath = '';
137138

138139
const blobData = new Blob([fileBuffer], {
139140
type: currentFileContentType
@@ -208,6 +209,10 @@ const deployApp = async (
208209
const percentage = Math.floor((chunkNumber / totalChunks) * 100);
209210
console.log(`Upload Progress: ${percentage}%`);
210211

212+
if (response?.data?.downloadPath) {
213+
downloadPath = response?.data?.downloadPath;
214+
}
215+
211216
// Increment the chunk number
212217
chunkNumber++;
213218
} else {
@@ -216,6 +221,7 @@ const deployApp = async (
216221
}
217222

218223
console.log('Build Uploaded successfully');
224+
!!downloadPath && console.log('Download Path:', downloadPath);
219225
return;
220226
} catch (error) {
221227
console.error(

0 commit comments

Comments
 (0)