We run into an issue that our complete www directory is large (70 MB).
Most size is taken up by mp3 files.
Up till now we have been experiementing with code-push release-cordova ....
I can think of 2 solutions which I cannot implement.
Solution 1: Exclude a directory (or file type) in a code-push release, so the existing mp3-files stay on the devices, and we only update some js-files.
Is that possible?
Solution 2: Specify which files are released.
This SHOULD be doable with "code-push release" instead of "code-push release-cordova", according to the manual.
eg:
code-push release myApp-Android "./platforms/android/assets/www/js/main.min.js" "*" --deploymentName "Production" --description "Only js file" --mandatory
But that always end with error, like:
(via code-push debug android)
[02:06:52] Checking for update.
[02:06:53] An update is available. {"appVersion":"1.0.8","deploymentKey":"---Mydeploymentkey---","description":"versie","downloadUrl":"https://codepush.blob.core.windows.net/storagev2/pathremoved","isMandatory":true,"label":"v16","packageHash":"a754acc782c47bbce295fa187345a10444a105f271df5da1e3a8c91de654d9a4","packageSize":7,"failedInstall":false}
[02:06:53] Awaiting user action.
[02:06:57] Downloading update
[02:06:59] Package download success: {"deploymentKey":"---Mydeploymentkey---","description":"versie","label":"v16","appVersion":"1.0.8","isMandatory":true,"packageHash":"a754acc782c47bbce295fa187345a10444a105f271df5da1e3a8c91de654d9a4","isFirstRun":false,"failedInstall":false,"localPath":"cdvfile://localhost/files/codepush/download/update.zip"}
[02:07:02] Installing update
[02:07:06] Could not unzip package. -1
[02:07:06] An error occurred during sync.
We don't seem to be able to release a single file, without forcing a download of 70 MB on the user.
What to do?
We run into an issue that our complete www directory is large (70 MB).
Most size is taken up by mp3 files.
Up till now we have been experiementing with code-push release-cordova ....
I can think of 2 solutions which I cannot implement.
Solution 1: Exclude a directory (or file type) in a code-push release, so the existing mp3-files stay on the devices, and we only update some js-files.
Is that possible?
Solution 2: Specify which files are released.
This SHOULD be doable with "code-push release" instead of "code-push release-cordova", according to the manual.
eg:
code-push release myApp-Android "./platforms/android/assets/www/js/main.min.js" "*" --deploymentName "Production" --description "Only js file" --mandatory
But that always end with error, like:
(via code-push debug android)
[02:06:52] Checking for update.
[02:06:53] An update is available. {"appVersion":"1.0.8","deploymentKey":"---Mydeploymentkey---","description":"versie","downloadUrl":"https://codepush.blob.core.windows.net/storagev2/pathremoved","isMandatory":true,"label":"v16","packageHash":"a754acc782c47bbce295fa187345a10444a105f271df5da1e3a8c91de654d9a4","packageSize":7,"failedInstall":false}
[02:06:53] Awaiting user action.
[02:06:57] Downloading update
[02:06:59] Package download success: {"deploymentKey":"---Mydeploymentkey---","description":"versie","label":"v16","appVersion":"1.0.8","isMandatory":true,"packageHash":"a754acc782c47bbce295fa187345a10444a105f271df5da1e3a8c91de654d9a4","isFirstRun":false,"failedInstall":false,"localPath":"cdvfile://localhost/files/codepush/download/update.zip"}
[02:07:02] Installing update
[02:07:06] Could not unzip package. -1
[02:07:06] An error occurred during sync.
We don't seem to be able to release a single file, without forcing a download of 70 MB on the user.
What to do?