I have created my application using framework7 v.6.3 (f7 core with capacitor).
I generated my app icons with:
$ framework7 assets $ npx cordova-res
I can see the generated icons in:
drawable-hdpi-icon.png drawable-ldpi-icon.png drawable-mdpi-icon.png drawable-xhdpi-icon.png drawable-xxhdpi-icon.png drawable-xxxhdpi-icon.png
and the corresponding splash screens (landscape and portrait) at
The images are correct (I open them and it shows my customized icon).
Now, I’m generating the android source with:
$ npm run build-capacitor-android # Sync other files in src/ as they are not present in target: $ rsync -ia --exclude=assets/ --exclude=js/ --exclude=css/ --exclude=index.html --exclude=app.f7 --delete src/ android/app/src/main/assets/public/
The app looks fine in web and in android, except for the launch icon, which is the
capacitor default icon (located at
What command do I have to execute in order to generate/copy the icons from
I believe using
rsyncis the wrong approach to copy my assets in
src/. I think I’m supposed to use
vite… According to the documentation it says:
There is a Vite bundler setup. It compiles and bundles all “front-end” resources. You should work only with files located in
I have checked the vite documentation and I haven’t found how to do it. Any help with that point would be appreciated as well.
According to Framework 7 - Generate assets page, some images should exists under
assets-src directory, but in my case that directory is empty (launching
framework7 assets --ui displays an empty page with a single button:
generate assets, which does nothing). Is that normal?