mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:13:31 +02:00
Push vendor files to devices.
This commit is contained in:
@@ -1,9 +1,27 @@
|
||||
var util = require('util')
|
||||
|
||||
var wire = require('../wire')
|
||||
var pathutil = require('./pathutil')
|
||||
|
||||
var devutil = module.exports = Object.create(null)
|
||||
|
||||
devutil.vendorFiles = function(identity) {
|
||||
return {
|
||||
bin: {
|
||||
src: pathutil.vendor(util.format(
|
||||
'remote/libs/%s/remote', identity.abi))
|
||||
, dest: '/data/local/tmp/remote'
|
||||
, mode: 0755
|
||||
}
|
||||
, so: {
|
||||
src: pathutil.vendor(util.format(
|
||||
'remote/external/android-%d/remote_external.so', identity.sdk))
|
||||
, dest: '/data/local/tmp/remote_external.so'
|
||||
, mode: 0755
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
devutil.platform = function(platform) {
|
||||
switch (platform) {
|
||||
case 'android':
|
||||
|
||||
Reference in New Issue
Block a user