Skip to content

Commit

Permalink
Updated scripts.
Browse files Browse the repository at this point in the history
NikGApps.r.1.3: Added compression to Zip generation.

MindTheGApps.r.1.2: Added compression to Zip generation.
  • Loading branch information
wacko1805 committed Nov 12, 2024
1 parent 2e9c204 commit f315a83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions scripts/MindTheGApps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const versionCode = "MindTheGApps.r.1.1";
const versionCode = "MindTheGApps.r.1.2";
// MindTheGApps Script
$('#extractButton').click(function() {
console.log('MindTheGApps Selected.');
Expand Down Expand Up @@ -87,7 +87,11 @@ Object.values(templateFolder).forEach(fileName => {
Promise.all(promises).then(function() {
console.log('All files extracted. Creating new zip file...');
document.getElementById("info").innerHTML += '<h3>All files extracted. Creating new zip file...<br>This may take up to 5 minutes depending on the GApps package size, browser and device.<h3><br>';
newZip.generateAsync({type:'blob'}).then(function(blob) {
newZip.generateAsync({
type:'blob',
compression: 'DEFLATE'
})
.then(function(blob) {
console.log('New zip file created. Downloading...');
document.getElementById("info").innerHTML += 'New zip file created. Downloading...<br>';
const url = window.URL.createObjectURL(blob);
Expand Down
8 changes: 6 additions & 2 deletions scripts/NikGApps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const versionCode = "NikGApps.r.1.2";
const versionCode = "NikGApps.r.1.3";
// NikGApps Script
$('#extractButton').click(function() {
console.log('NikGApps Selected.');
Expand Down Expand Up @@ -147,7 +147,11 @@ $('#extractButton').click(function() {
console.log('All files extracted successfully. Creating new zip file...');
document.getElementById("info").innerHTML += '<h3>All files extracted. Creating new zip file...<br>This may take up to 5 minutes depending on the GApps package size, browser, and device.<h3><br>';

newZip.generateAsync({type:'blob'}).then(function(blob) {
newZip.generateAsync({
type:'blob',
compression: 'DEFLATE'
})
.then(function(blob) {
console.log('New zip file created. Downloading...');
document.getElementById("info").innerHTML += 'New zip file created. Downloading...<br>';

Expand Down

0 comments on commit f315a83

Please sign in to comment.