mirror of
https://git.coom.tech/araragi/JKCS.git
synced 2024-06-26 12:42:41 +00:00
build and chrome manifest changes
This commit is contained in:
parent
2a22e44b23
commit
2e70fcd2c6
|
@ -1,18 +1,9 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import { spawnSync } from "child_process";
|
import { spawnSync } from "child_process";
|
||||||
import { writeFileSync, readFileSync, copyFileSync } from "fs";
|
import { writeFileSync, copyFileSync } from "fs";
|
||||||
import inlineWorkerPlugin from "esbuild-plugin-inline-worker";
|
|
||||||
|
|
||||||
import esbuild from "esbuild";
|
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 res = spawnSync("git", ["rev-list", "--count", "HEAD"]);
|
||||||
let rev = +res.stdout;
|
let rev = +res.stdout;
|
||||||
|
@ -25,7 +16,6 @@ const domains = [
|
||||||
|
|
||||||
const manif3 = {
|
const manif3 = {
|
||||||
manifest_version: 3,
|
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",
|
name: "Joshi Koukousei Captcha Service",
|
||||||
description: "The captcha solver made by and for japanese high school girls",
|
description: "The captcha solver made by and for japanese high school girls",
|
||||||
version: "0." + rev,
|
version: "0." + rev,
|
||||||
|
@ -33,7 +23,6 @@ const manif3 = {
|
||||||
64: "1449696017588.png",
|
64: "1449696017588.png",
|
||||||
},
|
},
|
||||||
permissions: [],
|
permissions: [],
|
||||||
host_permissions: ["<all_urls>"],
|
|
||||||
web_accessible_resources: [
|
web_accessible_resources: [
|
||||||
{
|
{
|
||||||
resources: ["*.html", "*.js", "*.json", "*.bin", "*.wasm"],
|
resources: ["*.html", "*.js", "*.json", "*.bin", "*.wasm"],
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"ver": "tsc -v",
|
"ver": "tsc -v",
|
||||||
"build_chrome": "node ./build-chrome.js",
|
"build_chrome": "node ./build-chrome.js",
|
||||||
"build_ff": "node ./build-ff.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"
|
"lint": "pnpm exec standard --fix"
|
||||||
},
|
},
|
||||||
"author": "/cumg/, formerly AUTOMATIC",
|
"author": "/cumg/, formerly AUTOMATIC",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user