Automate Chrome Store uploads.
This commit is contained in:
parent
a11bf78aa5
commit
4d95fdb4d3
@ -183,6 +183,17 @@ module.exports = (grunt) ->
|
||||
./node_modules/.bin/npm-shrinkwrap --dev
|
||||
""".split('\n').join('&&')
|
||||
|
||||
webstore_upload:
|
||||
accounts:
|
||||
default:
|
||||
publish: true
|
||||
client_id: '<%= grunt.file.readJSON("../"+pkg.name+"-keys/chrome-store.json").installed.client_id %>'
|
||||
client_secret: '<%= grunt.file.readJSON("../"+pkg.name+"-keys/chrome-store.json").installed.client_secret %>'
|
||||
extensions:
|
||||
extension:
|
||||
appID: '<%= pkg.meta.chromeStoreID %>'
|
||||
zip: 'builds/<%= pkg.name %>.zip'
|
||||
|
||||
watch:
|
||||
options:
|
||||
interrupt: true
|
||||
@ -376,6 +387,10 @@ module.exports = (grunt) ->
|
||||
'shell:push'
|
||||
]
|
||||
|
||||
grunt.registerTask 'store', [
|
||||
'webstore_upload'
|
||||
]
|
||||
|
||||
grunt.registerTask 'setversion', 'Set the version number', (version) ->
|
||||
pkg = grunt.file.readJSON 'package.json'
|
||||
oldversion = pkg.meta.version
|
||||
|
||||
18
npm-shrinkwrap.json
generated
18
npm-shrinkwrap.json
generated
@ -1027,6 +1027,24 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"grunt-webstore-upload": {
|
||||
"version": "0.8.2",
|
||||
"resolved": "https://registry.npmjs.org/grunt-webstore-upload/-/grunt-webstore-upload-0.8.2.tgz",
|
||||
"dependencies": {
|
||||
"lodash": {
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.1.tgz"
|
||||
},
|
||||
"open": {
|
||||
"version": "0.0.5",
|
||||
"resolved": "https://registry.npmjs.org/open/-/open-0.0.5.tgz"
|
||||
},
|
||||
"q": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/q/-/q-1.2.0.tgz"
|
||||
}
|
||||
}
|
||||
},
|
||||
"load-grunt-tasks": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/load-grunt-tasks/-/load-grunt-tasks-3.1.0.tgz",
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
"oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/",
|
||||
"faq": "https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions",
|
||||
"appid": "lacclbnghgdicfifcamcmcnilckjamag",
|
||||
"chromeStoreID": "ohnjgmpcibpbafdlkimncjhflgedgpam",
|
||||
"recaptchaKey": "6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc",
|
||||
"youtubeAPIKey": "AIzaSyB5_zaen_-46Uhz1xGR-lz1YoUMHqCD6CE",
|
||||
"buildsPath": "builds/",
|
||||
@ -55,6 +56,7 @@
|
||||
"grunt-crx": "^0.3.4",
|
||||
"grunt-markdown": "^0.7.0",
|
||||
"grunt-shell": "^1.1.1",
|
||||
"grunt-webstore-upload": "^0.8.2",
|
||||
"load-grunt-tasks": "^3.1.0",
|
||||
"npm-shrinkwrap": "^5.2.0"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user