1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-11-23 07:53:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix unzip

This commit is contained in:
sunnylqm
2025-10-25 00:59:12 +08:00
parent 3134f36739
commit ba5b35813d
3 changed files with 21 additions and 27 deletions

View File

@@ -26,14 +26,13 @@ export class PushyFileJSBundleProvider extends JSBundleProvider {
if (!this.path) {
throw new JSBundleProviderError({
whatHappened: 'No pushy bundle found. using default bundle',
howCanItBeFixed: ['']
})
}
try {
const status = await fs.access(this.path, fs.OpenMode.READ_ONLY);
if (status) {
return {
filePath: this.path
}
await fs.access(this.path, fs.OpenMode.READ_ONLY);
return {
filePath: this.path
}
} catch (error) {
throw new JSBundleProviderError({