Comments (6)
Thank you, I've done some testing too and was going to say the same thing. I did have other folders in there with different versions of my apk
If i move the apk to another directory. It works as it should
from cordova-plugin-apkupdater.
Fixed in version 1.2.1
. Thanks for the feedback. There's no way I could have found this on my own.
If there's anything else, let me know. I'll close this issue. ❤️
from cordova-plugin-apkupdater.
There are several ways to install 7zip on MacOS.
I personally use Homebrew:
brew update
brew install p7zip
Alternatively with MacPorts:
sudo port install p7zip
I didn't think about that. I will add the info to the documentation.
from cordova-plugin-apkupdater.
Thank you that works.
However, when I run the following command
node create-manifest.js 1.0.0 1m /home/user/app.apk /home/user/update
I have an apk that is 6.3MB but the folder with the compressed files is 28MB. This is the manifest.json output of the above command.
{"version":"1.0.0","chunks":["c7bab217d425ff92b6bcfb0de8ea13b3","f5df681a571f1cccf9e901c2917e64e5","cc2608def66ff8ad43b18a42ec6d8fee","f85b5920f4d6fbfdd2d9fb40023c2ac2","5f23a612bdda42d658eea501c82940de","cea626663b481a98e8219bfd174434b8","6a6460ee18360d76d452c213e13004c7","54e37dfb18a8d9aaa1d7c18f57d28326","c61231bc6e11447e337493875fa767de","df378115111aecfab48360ecf7633557","8fd8dd6e84349d284a386cdb0b9b99b4","fd18cde3c82380525784600bdc721a41","77acbb967b12d575bfcffa3e6640d044","ac5c3f63ff2bd79581b5fd48216dc038","71a50da26f69a94b37f33106a44c74e8","00d2d010764012c886c4c44bc5f936a0","33ff1d7d31866c3f444eb256ed618cbe","bcf483d7c6539225b7b2f8b75fe1a843","f5f14168416d067e748aadb49cc106b8","c5736b2719aa19aba3edf7c1209ce19d","752dbf1ba72060752e7ab009dd206c61","eaeaa9b394ac03bcbcb1921fafad909f","f86147e515dc7eea0ce9c1b732616092","69c6699eaff3baa3cfff46753cb84f0e","05046116402e6e9dbe9a0990f96a56e2","d722aae30da041c85e60b3521f3458cf","e49d2eaf08cb7897c035734747270702"],"compressedSize":28181101,"size":6274969,"sum":"932ad797b5434eeb68ff814419a3cfca"}
It generated 27 zipped files that are each 1M
from cordova-plugin-apkupdater.
😆
WTF, how?
I just tried again with this GMail APK.
node create-manifest.js 1.0.0 10m /home/user/gmail.apk /home/user/update
The file is compressed correctly from 59.9MB
to 40MB
.
{
'version': '1.0.0',
'chunks': [
'37cd5fa99bc48bd25b3471c90022058a',
'7baf365ed88a7258809a83107fb61096',
'1bb90e1df20c4c3ee3230c09f4e33675',
'eeaa715f247faaea7c1a26c722e0d092',
'7c1be9c464fa2eca91087323329a903e'
],
'compressedSize': 41948748,
'size': 62785275,
'sum': 'fb1d2f29a8d2c929e142e96fe2f9e1a7'
};
Which 7Zip version do you have?
Maybe you can send me the file, if that's possible. My email address is: [email protected].
Otherwise, I have no idea how this can be.
The script actually does nothing else but compress the file with 7zip:
7z a -v1m -mm=Deflate -mfb=258 -mpass=15 -r /home/user/update/update.zip /home/user/app.apk
from cordova-plugin-apkupdater.
OK, I found the mistake.
This also searched for the app.apk
in subfolders. And you probably had some folders with other versions of this file.
I'll quickly write a bug fix 👍.
from cordova-plugin-apkupdater.
Related Issues (20)
- failed to parse package HOT 6
- Kiosk Mode + plugin apkUpdater V2.0.2 HOT 9
- Getting error after downloading apk - Download directory is empty HOT 5
- isDeviceRooted not working correctly HOT 5
- Cannot update versioning HOT 4
- Authorization headers always sent HOT 3
- XAPK install support? HOT 8
- Issue with Progress percentage ,it is always returns 0 HOT 2
- Set device owner for Android TV HOT 3
- support for ionic 5 HOT 1
- is it possible to update an application without user intervention/without using root? HOT 38
- Downloading fails with "No valid update found in download directory" HOT 2
- Cannot read properties of undefined (reading 'getInstalledVersion') HOT 7
- Plugin not working with ionic's capacitor HOT 6
- Got an "Invalid page file" error with capacitor project HOT 4
- Couldn't find meta-data for provider with authority org.app.app.apkupdater.provider HOT 12
- Great, thank you for your work. I solved it
- Cordova error HOT 3
- Trust anchor for certification path not found HOT 4
- Allow custom headers or at least Bearer authentication HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-apkupdater.