mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Remove downloads permission from archive (unneeded for Chromium).
This commit is contained in:
parent
9978279d00
commit
1e06ede549
1
omega-target-chromium-extension/.gitignore
vendored
1
omega-target-chromium-extension/.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
/index.js
|
/index.js
|
||||||
/omega_target_*.min.js
|
/omega_target_*.min.js
|
||||||
|
|
||||||
|
/tmp
|
||||||
/build
|
/build
|
||||||
/release.zip
|
/release.zip
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
module.exports = (grunt) ->
|
module.exports = (grunt) ->
|
||||||
require('load-grunt-config')(grunt)
|
require('load-grunt-config')(grunt)
|
||||||
require('./grunt-po2crx')(grunt)
|
require('./grunt-po2crx')(grunt)
|
||||||
|
|
||||||
|
grunt.registerTask 'chromium-manifest', ->
|
||||||
|
manifest = grunt.file.readJSON('overlay/manifest.json')
|
||||||
|
manifest.permissions = manifest.permissions.filter (p) -> p != 'downloads'
|
||||||
|
grunt.file.write('tmp/manifest.json', JSON.stringify(manifest))
|
||||||
|
@ -7,4 +7,4 @@ module.exports =
|
|||||||
'po2crx'
|
'po2crx'
|
||||||
]
|
]
|
||||||
test: ['mochaTest']
|
test: ['mochaTest']
|
||||||
release: ['default', 'compress']
|
release: ['default', 'chromium-manifest', 'compress']
|
||||||
|
@ -3,7 +3,16 @@ module.exports =
|
|||||||
archive: './release.zip'
|
archive: './release.zip'
|
||||||
mode: 'zip'
|
mode: 'zip'
|
||||||
build:
|
build:
|
||||||
cwd: 'build'
|
files: [
|
||||||
src: ['**']
|
{
|
||||||
expand: true
|
cwd: 'build'
|
||||||
filter: 'isFile'
|
src: ['**', '!manifest.json']
|
||||||
|
expand: true
|
||||||
|
filter: 'isFile'
|
||||||
|
}
|
||||||
|
{
|
||||||
|
cwd: 'tmp/'
|
||||||
|
src: 'manifest.json'
|
||||||
|
expand: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user