Update .crx files to CRX3. This should fix the errors when attempting to install them on newer versions of Chromium.

This commit is contained in:
ccd0 2019-04-05 03:15:44 -07:00
parent a87321a317
commit 65aa87831a
3 changed files with 11 additions and 2 deletions

View File

@ -192,8 +192,8 @@ testbuilds/$(name)$1.crx.zip : \
package.json version.json tools/zip-crx.js node_modules/jszip/package.json
node tools/zip-crx.js $1
testbuilds/$(name)$1.crx : testbuilds/$(name)$1.crx.zip package.json tools/sign.js node_modules/node-rsa/package.json
node tools/sign.js $1
testbuilds/$(name)$1.crx : $(foreach f,$(crx_contents),testbuilds/crx$1/$(f)) version.json tools/sign.sh | tmp
tools/sign.sh $1
testbuilds/$(name)$1.meta.js : src/meta/metadata.js src/meta/icon48.png version.json src/Archive/archives.json $(template_deps) | testbuilds
$(template) $$< $$@ type=userscript channel=$1

1
crx-chromium-version.txt Normal file
View File

@ -0,0 +1 @@
Chromium 73.0.3683.75 built on Debian buster/sid, running on Debian buster/sid

8
tools/sign.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
channel=$1
mkdir -p tmp-crx
cp -r "testbuilds/crx$channel" "tmp-crx/crx$channel"
touch -d "$(jq -r '.date' version.json)" "tmp-crx/crx$channel"/*
chromium --pack-extension="tmp-crx/crx$channel" --pack-extension-key="$(dirname "$PWD")/4chan-x.keys/4chan-X.pem"
mv "tmp-crx/crx$channel.crx" "testbuilds/4chan-X$channel.crx"
rm -r 'tmp-crx/'