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:
parent
a87321a317
commit
65aa87831a
4
Makefile
4
Makefile
@ -192,8 +192,8 @@ testbuilds/$(name)$1.crx.zip : \
|
|||||||
package.json version.json tools/zip-crx.js node_modules/jszip/package.json
|
package.json version.json tools/zip-crx.js node_modules/jszip/package.json
|
||||||
node tools/zip-crx.js $1
|
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
|
testbuilds/$(name)$1.crx : $(foreach f,$(crx_contents),testbuilds/crx$1/$(f)) version.json tools/sign.sh | tmp
|
||||||
node tools/sign.js $1
|
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
|
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
|
$(template) $$< $$@ type=userscript channel=$1
|
||||||
|
|||||||
1
crx-chromium-version.txt
Normal file
1
crx-chromium-version.txt
Normal 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
8
tools/sign.sh
Executable 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/'
|
||||||
Loading…
x
Reference in New Issue
Block a user