I learned these 3 languages, javascript, css and html, to create my website.
My website conforms with PWA requirements, so the code can be downloaded to run as a smartphone app, even offline.
Now, I need VoltBuilder’s help so I can stock a store or two with my new app, without learning iOS or Android native code.
As per VoltBuilder’s “Tutorial - Moving from PhoneGap to VoltBuilder”, step 1 is to Prepare your Files.
I had cut my teeth on PhoneGap. The requirement was to zip up the working directory of files, along with a config.xml file (which shared the index.html file’s directory, if I recall correctly). On Phonegap I managed this step easily and consistently.
But, step 2 stopped me. It seems no matter how I arranged my files, I’d fail. (At least with PhoneGap my Android version always produced a build.)
I don’t think Phonegap formally required creation of a project, or to declare a project’s folder. But in trying to upload to Volt, I got “no cordova project” errors. Which is why I think Volt requires a formal declaration of the root folder. Thus the “create cordova” command, below.
Declaring a given directory as a project directory - using cordova code, creates files of its own. How to assemble my files with those created indirectly - perhaps that’s where I err.
Often I tried to zip my files from a Cordova created directory. Despite my few files, I have yet to advance my Android-build attempts beyond Step 2.
My project root is “toraware”.
Therein I ran “CREATE CORDOVA .”
I changed the config.xml inside that directory.
Inside the www subdirectory I replaced its files with my own index.html file, and with other directories and files referenced by the index.html file.
toraware
|— config.xml [changed by me]
|— hooks [created by cordova]
|— platforms [created by cordova]
|— plugins [created by cordova]
!— www [replaced its contents with my files]
Then I zip these 5 items in the “toraware” directory
and deliver this onto the Android’s “Upload your App” button.
Inevitably, I run into an error.
For example, my last effort yielded this one:
Error moving Cordova files into project: Destination path ‘/hooks’ already exists
Build 24727ec2-fdba-4204-bffd-b320e08be8ea failed
Would be grateful for your help.