mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 06:58:14 -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
|
||||
/omega_target_*.min.js
|
||||
|
||||
/tmp
|
||||
/build
|
||||
/release.zip
|
||||
|
@ -1,3 +1,8 @@
|
||||
module.exports = (grunt) ->
|
||||
require('load-grunt-config')(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'
|
||||
]
|
||||
test: ['mochaTest']
|
||||
release: ['default', 'compress']
|
||||
release: ['default', 'chromium-manifest', 'compress']
|
||||
|
@ -3,7 +3,16 @@ module.exports =
|
||||
archive: './release.zip'
|
||||
mode: 'zip'
|
||||
build:
|
||||
cwd: 'build'
|
||||
src: ['**']
|
||||
expand: true
|
||||
filter: 'isFile'
|
||||
files: [
|
||||
{
|
||||
cwd: 'build'
|
||||
src: ['**', '!manifest.json']
|
||||
expand: true
|
||||
filter: 'isFile'
|
||||
}
|
||||
{
|
||||
cwd: 'tmp/'
|
||||
src: 'manifest.json'
|
||||
expand: true
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user