Generate shell-app.bundle without publishing


#1

Hi,

I’ve detached my expo app using ExpoKit with expo eject.
Is it possible to generate the shell-app.bundle without publishing it to the expo server ?
The only way I’ve found so far is to run expo publish but that publishes the app.
Thanks for any help

Em


#2

Yes, you can, using the expo export command:

https://docs.expo.io/versions/latest/distribution/hosting-your-app/#export-app

The /dist/bundles/ios-{hash}.js then needs renamed, and copied to shell-app.bundle


#4

Can I use the expo export and copy the generated js bundle over shell-app.bundle ? This way I won’t have to expo publish.
Basically I need to generate all the assets and never fetch them either from Expo or private servers.
Thanks


#5

This sounds very similar to an issue we’re having. To save repeating, the posts are here:


#6

Thanks.
Yes, I ended up doing something similar. The problem is that when it’s detached it’s no longer possible to generate the shell-app.bundle unless publishing.


#7

Hi @daniel, what the name should ios-{hash}.js renamed to ? and how can I copy the file into shell-app.bundle ? I can not open the bundle file.


#8

The shell-app.bundle is just a JavaScript file, with a .bundle extension instead of .js.

Rename it, and copy it into the same location as shell-app.bundle so it replaces it.


#9

Thank you very much! @daniel. My app was launched successfully in offline mode! As your another post said, my images assets were also failed to load. I have to bundle them into the app.