Skip to content

Commit

Permalink
unzip working
Browse files Browse the repository at this point in the history
  • Loading branch information
Seroxdesign committed Jul 8, 2024
1 parent 5469d14 commit 5f325fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cache/src/prepareExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ export async function prepareExtension(extensionName: string) {
const extensionConfig = await getExtensionConfig(extensionName) // Get config
let downloadResult
if (extensionConfig.name === 'Phantom') {
const outputPath = `${cacheDirPath}/latest`
downloadResult = await download(extensionConfig.downloadUrl, cacheDirPath, {
headers: {
Accept: 'application/octet-stream',
},
});
return unzipCrx('.cache-synpress/latest.zip', cacheDirPath)
await unzipCrx('.cache-synpress/latest.crx', outputPath)
return outputPath
}
else {
downloadResult = await downloadFile({
Expand Down

0 comments on commit 5f325fc

Please sign in to comment.