Skip to content

Commit

Permalink
Merge pull request #17 from kairi003/feature-save-with-downloads
Browse files Browse the repository at this point in the history
Feature save with downloads
  • Loading branch information
kairi003 authored Apr 4, 2023
2 parents 26a435c + 1a095a3 commit 4b0e41c
Show file tree
Hide file tree
Showing 5 changed files with 300 additions and 29 deletions.
19 changes: 19 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const fs = require('fs');
const process = require('process');
const path = require('path');
const archiver = require('archiver');

const zipPath = `src.zip`;
const output = fs.createWriteStream(path.join(__dirname, zipPath));

process.chdir(path.join(__dirname, 'src'));

const archive = archiver('zip', {
zlib: { level: 9 }
});

archive.pipe(output);
archive.glob('**/*');

archive.finalize();

268 changes: 268 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"devDependencies": {
"@types/chrome": "^0.0.218",
"@types/wicg-file-system-access": "^2020.9.5",
"archiver": "^5.3.1",
"icon-gen": "^3.0.1"
},
"scripts": {
"build": "node build.js"
}
}
3 changes: 2 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "Get cookies.txt LOCALLY",
"description": "Get cookies.txt, NEVER send information outside with open-source",
"version": "0.3.2",
"version": "0.4.0",
"manifest_version": 3,
"permissions": [
"activeTab",
"cookies",
"downloads",
"notifications"
],
"host_permissions": ["<all_urls>"],
Expand Down
Loading

0 comments on commit 4b0e41c

Please sign in to comment.