mirror of
https://github.com/andrei0x309/clear-wallet.git
synced 2024-11-18 23:41:10 +00:00
changes for 1.2.5
This commit is contained in:
parent
218e5a90d5
commit
537e371cea
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## Manifest Version 1.2.5
|
||||
|
||||
- improve post build script
|
||||
|
||||
## Manifest Version 1.2.4
|
||||
|
||||
- updated showing assets page to use new api
|
||||
|
@ -1,10 +1,21 @@
|
||||
|
||||
(async () => {
|
||||
const CONTENT_BUILD_PATH = 'src/extension/content.js'
|
||||
const METAMASK_STUB_PATH = 'src/extension/metamask-stub.js'
|
||||
const fs = (await import('fs')).default
|
||||
const path = (await import('path')).default
|
||||
const pkg = JSON.parse(fs.readFileSync('dist/manifest.json').toString());
|
||||
pkg.content_scripts[0].js[0] = CONTENT_BUILD_PATH
|
||||
pkg.content_scripts[1].js[0] = METAMASK_STUB_PATH
|
||||
fs.writeFileSync('dist/manifest.json', JSON.stringify(pkg, null, 2))
|
||||
// fs.writeFileSync('dist/rules.js', fs.readFileSync('rules.json').toString())
|
||||
fs.writeFileSync('dist/'+ CONTENT_BUILD_PATH, fs.readFileSync('src/extension/content.js').toString())
|
||||
})();
|
||||
fs.writeFileSync('dist/'+ METAMASK_STUB_PATH, fs.readFileSync('src/extension/metamask-stub.js').toString())
|
||||
const directory = 'dist/assets/';
|
||||
fs.readdir(directory, (err, files) => {
|
||||
files.forEach(file => {
|
||||
if(file.startsWith('content'))
|
||||
fs.unlinkSync( path.resolve(directory + file))
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
@ -3,8 +3,8 @@
|
||||
"name": "__MSG_appName__",
|
||||
"description": "__MSG_appDesc__",
|
||||
"default_locale": "en",
|
||||
"version": "1.2.4",
|
||||
"version_name": "1.2.4",
|
||||
"version": "1.2.5",
|
||||
"version_name": "1.2.5",
|
||||
"icons": {
|
||||
"16": "assets/extension-icon/wallet_16.png",
|
||||
"32": "assets/extension-icon/wallet_32.png",
|
||||
|
Loading…
Reference in New Issue
Block a user