mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-10-05 07:13:06 +08:00
* feat: add Amazon collection metadata and reliable sync * fix: route extension sync through configured server * chore: release extension v0.7.13 * fix: handle extension ports across BFCache navigation * fix: classify bottom Sponsored Brands video placements * fix: exclude hidden Amazon ad cards * fix: derive Amazon result page from URL * fix: ignore hidden Amazon sponsored products * fix: preserve base Amazon product collection * fix: bind Amazon results to visible page * fix: classify visible Amazon ad formats * fix: wait for lazy Amazon ad modules * perf: reduce Amazon lazy-load scroll stops * fix: classify Amazon sponsored brand and video search ads Co-authored-by: Cursor <cursoragent@cursor.com> * fix: collect Shop by type thematic SP ads via redirect chains without data-asin Co-authored-by: Cursor <cursoragent@cursor.com> * fix: classify sponsored ads across new Amazon templates --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: PetrichorFun <127877748+PetrichorFun@users.noreply.github.com>
25 lines
693 B
TypeScript
25 lines
693 B
TypeScript
import _7z from '7zip-min';
|
|
import { basename } from 'path';
|
|
import fs from 'fs-extra';
|
|
import { r, log } from './utils';
|
|
import packageJson from '../package.json';
|
|
|
|
const scriptPath = ['extension', 'extension-firefox'];
|
|
|
|
async function main() {
|
|
for (const src of scriptPath) {
|
|
const srcPath = r(src);
|
|
if (!(await fs.pathExists(r(src, 'manifest.json')))) continue;
|
|
const distPath = r('build', `${basename(src)}-v${packageJson.version}.7z`);
|
|
try {
|
|
const output = await _7z.pack(srcPath, distPath);
|
|
log('Info', `stdout of the 7za command execution ${output}`);
|
|
} catch (err) {
|
|
log('Error', `${err}`);
|
|
process.exitCode = 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
void main();
|