Skip to content

Commit d9102bf

Browse files
authored
fix: upload ad-hoc buffer (#485)
* fix: upload ad-hoc buffer * changeset
1 parent 160148d commit d9102bf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/spotty-paws-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rnef/cli': patch
3+
---
4+
5+
fix: upload ad-hoc buffer

packages/cli/src/lib/plugins/remoteCache.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,10 @@ async function getBinaryBuffer(
330330
localArtifactPath: string,
331331
args: Flags
332332
) {
333+
// For ad-hoc, we don't need to zip the binary, we just upload the IPA
334+
if (args.adHoc) {
335+
return fs.readFileSync(binaryPath);
336+
}
333337
const zip = new AdmZip();
334338
const isAppDirectory =
335339
binaryPath.endsWith('.app') && fs.statSync(binaryPath).isDirectory();

0 commit comments

Comments
 (0)