1
我有一个Chrome应用程序,我想自动部署到Chrome应用程序商店作为我的连续交付管道的一部分...如何持续向Chrome商店提供应用更新?特拉维斯CI?
有没有办法用Travis CI做到这一点?
Travis提供了一种将压缩的工件上传到Chrome商店的方法吗?
是否可以使用chi商店的cli构建这样的功能?
我有一个Chrome应用程序,我想自动部署到Chrome应用程序商店作为我的连续交付管道的一部分...如何持续向Chrome商店提供应用更新?特拉维斯CI?
有没有办法用Travis CI做到这一点?
Travis提供了一种将压缩的工件上传到Chrome商店的方法吗?
是否可以使用chi商店的cli构建这样的功能?
您可以使用grunt-webstore-upload模块和run it from Travis
样品Gruntfile.js grunt任务:
var archiveName = "buildExt.zip";
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
webstore_upload: {
"accounts": {
"default": { //account under this section will be used by default
publish: true, //publish item right after uploading. default false
client_id: "xxx",
client_secret: "yyy",
refresh_token: "zzz"
}
},
"extensions": {
"myExtensionName": {
//required
appID: "aaa",
publish: true,
//required, we can use dir name and upload most recent zip file
zip: "build/" + archiveName
}
}
}
}),
grunt.loadNpmTasks('grunt-webstore-upload');
grunt.registerTask('default', ['webstore_upload']);
};
这实际上工作吗?你不需要刷新令牌 - 而且在无头的Travis CI上,它是如何获得刷新令牌的? – Qiming
难道下面的答案,从亚历克斯,实际工作?看到我的评论关于获取刷新标记 – Qiming