Building for Release
Build the JS bundle
bun run build
This produces an optimized, minified dist/vue-native-bundle.js.
iOS
- Build the bundle:
bun run build - Open
ios/in Xcode - Select your scheme and a real device or "Any iOS Device"
- Product → Archive
- In the Organizer, click Distribute App and follow the steps
The build script in project.yml automatically copies dist/vue-native-bundle.js into the app bundle at build time.
Android
- Build the bundle:
bun run build - Copy
dist/vue-native-bundle.jstoandroid/app/src/main/assets/ - In Android Studio: Build → Generate Signed Bundle / APK
- Choose Android App Bundle for Play Store, or APK for direct distribution
Automate asset copying
Add a Gradle task to your android/app/build.gradle.kts to copy the bundle automatically:
tasks.register<Copy>("copyJsBundle") {
from("../../dist/vue-native-bundle.js")
into("src/main/assets")
}
tasks.named("preBuild") { dependsOn("copyJsBundle") }