Browse Source

build and chrome manifest changes

master
coomdev 9 months ago
parent
commit
2e70fcd2c6
  1. 13
      build-chrome.js
  2. 2
      package.json

13
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: ["<all_urls>"],
web_accessible_resources: [
{
resources: ["*.html", "*.js", "*.json", "*.bin", "*.wasm"],

2
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",

Loading…
Cancel
Save