mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Add .aab installation support (#103)
* Add .aab installation support Signed-off-by: nghia.viminh <nghia.viminh@gameloft.com>
This commit is contained in:
@@ -25,6 +25,52 @@ module.exports.builder = function(yargs) {
|
||||
, type: 'string'
|
||||
, default: os.tmpdir()
|
||||
})
|
||||
.option('bundletool-path', {
|
||||
describe: 'The path to bundletool binary.'
|
||||
, type: 'string'
|
||||
, default: '/app/bundletool/bundletool.jar'
|
||||
})
|
||||
.option('ks', {
|
||||
describe: 'The name of the keystore to sign APKs built from AAB.'
|
||||
, type: 'string'
|
||||
, default: 'openstf'
|
||||
})
|
||||
.option('ks-key-alias', {
|
||||
describe: 'Indicates the alias to be used in the future to refer to the keystore.'
|
||||
, type: 'string'
|
||||
, default: 'mykey'
|
||||
})
|
||||
.option('ks-pass', {
|
||||
describe: 'The password of the keystore.'
|
||||
, type: 'string'
|
||||
, default: 'openstf'
|
||||
})
|
||||
.option('ks-key-pass', {
|
||||
describe: 'The password of the private key contained in keystore.'
|
||||
, type: 'string'
|
||||
, default: 'openstf'
|
||||
})
|
||||
.option('ks-keyalg', {
|
||||
describe: 'The algorithm that is used to generate the key.'
|
||||
, type: 'string'
|
||||
, default: 'RSA'
|
||||
})
|
||||
.option('ks-validity', {
|
||||
describe: 'Number of days of keystore validity.'
|
||||
, type: 'number'
|
||||
, default: '90'
|
||||
})
|
||||
.option('ks-keysize', {
|
||||
describe: 'Key size of the keystore.'
|
||||
, type: 'number'
|
||||
, default: '2048'
|
||||
})
|
||||
.option('ks-dname', {
|
||||
describe: 'Keystore Distinguished Name, contain Common Name(CN), ' +
|
||||
'Organizational Unit (OU), Oranization(O), Locality (L), State (S) and Country (C).'
|
||||
, type: 'string'
|
||||
, default: 'CN=openstf.io, OU=openstf, O=openstf, L=PaloAlto, S=California, C=US'
|
||||
})
|
||||
.epilog('Each option can be be overwritten with an environment variable ' +
|
||||
'by converting the option to uppercase, replacing dashes with ' +
|
||||
'underscores and prefixing it with `STF_STORAGE_TEMP_` (e.g. ' +
|
||||
@@ -36,5 +82,16 @@ module.exports.handler = function(argv) {
|
||||
port: argv.port
|
||||
, saveDir: argv.saveDir
|
||||
, maxFileSize: argv.maxFileSize
|
||||
, bundletoolPath: argv.bundletoolPath
|
||||
, keystore: {
|
||||
ksPath: `/tmp/${argv.ks}.keystore`
|
||||
, ksKeyAlias: argv.ksKeyAlias
|
||||
, ksPass: argv.ksPass
|
||||
, ksKeyPass: argv.ksKeyPass
|
||||
, ksKeyalg: argv.ksKeyalg
|
||||
, ksValidity: argv.ksValidity
|
||||
, ksKeysize: argv.ksKeysize
|
||||
, ksDname: argv.ksDname
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user