提交 06473fcb 编写于 作者: P panqiangbiao 提交者: zhang-daiyue

add file in run command

Signed-off-by: Npanqiangbiao <panqiangbiao@huawei.com>
上级 a7fab5d9
...@@ -14,16 +14,31 @@ ...@@ -14,16 +14,31 @@
"push": [ "push": [
"./resource/medialibrary/01.jpg ->/storage/media/100/local/files", "./resource/medialibrary/01.jpg ->/storage/media/100/local/files",
"./resource/medialibrary/01.mp3 ->/storage/media/100/local/files", "./resource/medialibrary/01.mp3 ->/storage/media/100/local/files",
"./resource/medialibrary/01.mp4 ->/storage/media/100/local/files", "./resource/medialibrary/01.mp4 ->/storage/media/100/local/files"
"./resource/medialibrary/copy_files.sh ->/data/local/tmp"
] ]
}, },
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"sh /data/local/tmp/copy_files.sh", "mkdir /storage/media/100/local/files/pictures",
"cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/pictures/",
"cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/pictures/",
"cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/pictures/",
"mkdir /storage/media/100/local/files/pictures/weixin",
"cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/pictures/weixin",
"cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/pictures/weixin",
"cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/pictures/weixin",
"mkdir /storage/media/100/local/files/camera",
"cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/camera/01.jpg",
"cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/camera/02.jpg",
"cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/camera/01.mp3",
"cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/camera/02.mp3",
"cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/camera/01.mp4",
"cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/camera/02.mp4",
"chmod -R 777 /storage/media/100/local/files/*", "chmod -R 777 /storage/media/100/local/files/*",
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*" "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
"killall com.ohos.medialibrary.MediaScannerAbilityA",
"aa start -a MediaScannerAbility -b com.ohos.medialibrary.MediaScannerAbilityA"
], ],
"teardown-command":[ "teardown-command":[
"rm -rf /storage/media/100/local/files/*" "rm -rf /storage/media/100/local/files/*"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册