Update 更新小精灵并启动脚本

命令名称: jsd.Update 更新小精灵并启动脚本 语法格式: jsd.Update(小精灵安装包路径,小精灵包名) 命令参数: 参数1:小精灵安装包路径,字符串型 参数2:小精灵包名,字符串型 返回值: 。 ```脚本例子: 复制代码 Import "jsd.luae" Import "shanhai.lua" ShanHai.execute "chmod -R 777 " & GetTempDir() If Dir.Exist(GetTempDir() & "jsd.apk") = 0 Then TracePrint "释放附件" PutAttachment GetTempDir() ,"jsd.apk" End If //只需执行一次 If jsd.StartServer() Then TracePrint "恭喜你!!可以使用插件" Else TracePrint "很遗憾!!!你无法使用插件" End If jsd.Update("/sdcard/Pictures/xxx.apk","com.xxx.xxx") ``` 备注: 。