CordovaSvelteVite Svelte Themes

Cordovasveltevite

Poc Cordova Svelte

Testing Cordova's limits
Find out how to handle pre-built apps
import data packets
export data packets

Tech : Cordova + ViteJS + Svelte + Scss

Installation

npm install -g cordova
npm install
cordova platform add electron
cordova platform add android
cordova plugin add cordova-plugin-file
cordova plugin add cordova-plugin-file-transfer

Dev Browser

To develop in live reload on browser

npm run dev

open http://localhost:3000/ cordova is not loaded because not used

Dev Electron

To develop in live reload on Windows app

npm run dev
npm run electron_dev

open setup.exe

Build Electron

To package for Windows app

npm run electron_prod

open setup.exe

Build android

npm run android_prod

open the apk in your phone

Fix android

Fix

MyCordovaRef\platforms\electron\platform_www\plugins\cordova-plugin-file\src\browser\FileProxy.js l 33

if (false && require('./isChrome')()) {
  FileSystem proxy is ignore with eletron....

Fix compil Java https://github.com/apache/cordova-plugin-file-transfer/issues/306

TODO (optional) Custom https://github.com/electron/asar/blob/main/lib/asar.js to pakage windows app

(mandatory) find how to sign the recompiled apk witout java env

Top categories

Loading Svelte Themes