From 2e70fcd2c66a70a9694d977be421d7451a7ade16 Mon Sep 17 00:00:00 2001 From: coomdev Date: Thu, 3 Aug 2023 11:50:13 +0200 Subject: [PATCH] build and chrome manifest changes --- build-chrome.js | 13 +------------ package.json | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/build-chrome.js b/build-chrome.js index 51d0f29..386359d 100644 --- a/build-chrome.js +++ b/build-chrome.js @@ -1,18 +1,9 @@ /* eslint-disable */ import { spawnSync } from "child_process"; -import { writeFileSync, readFileSync, copyFileSync } from "fs"; -import inlineWorkerPlugin from "esbuild-plugin-inline-worker"; +import { writeFileSync, copyFileSync } from "fs"; import esbuild from "esbuild"; -//import path from 'path'; - -//import ChromeExtension from 'crx'; - -//const crx = new ChromeExtension({ -// codebase: 'https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx', -// privateKey: readFileSync('./key.pem') -//}); let res = spawnSync("git", ["rev-list", "--count", "HEAD"]); let rev = +res.stdout; @@ -25,7 +16,6 @@ const domains = [ const manif3 = { manifest_version: 3, - // "update_url": "https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/chrome_update.xml", name: "Joshi Koukousei Captcha Service", description: "The captcha solver made by and for japanese high school girls", version: "0." + rev, @@ -33,7 +23,6 @@ const manif3 = { 64: "1449696017588.png", }, permissions: [], - host_permissions: [""], web_accessible_resources: [ { resources: ["*.html", "*.js", "*.json", "*.bin", "*.wasm"], diff --git a/package.json b/package.json index 49bed60..d7df9ab 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "ver": "tsc -v", "build_chrome": "node ./build-chrome.js", "build_ff": "node ./build-ff.js", - "watch": "esbuild src/main.ts --bundle --outfile=dist/main.js --define:global=window --watch", + "watch": "esbuild src/main.js --bundle --outfile=dist/main.js --define:global=window --define:execution_mode='\"test\"' --loader:.bin=text --loader:.wasm=binary --watch", "lint": "pnpm exec standard --fix" }, "author": "/cumg/, formerly AUTOMATIC",