{"id":21937627,"url":"https://github.com/cap32/touch-sprite-cli","last_synced_at":"2025-03-22T14:23:17.555Z","repository":{"id":57378359,"uuid":"101157384","full_name":"Cap32/touch-sprite-cli","owner":"Cap32","description":"触控精灵命令行工具 (非官方)","archived":false,"fork":false,"pushed_at":"2018-04-02T08:47:36.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T01:03:22.264Z","etag":null,"topics":["android","cli","ide","ios","sublime-text","touch-sprite","touch-sprite-cli","touch-sprite-remote"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cap32.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-23T08:33:41.000Z","updated_at":"2018-04-02T08:47:37.000Z","dependencies_parsed_at":"2022-09-26T16:41:32.891Z","dependency_job_id":null,"html_url":"https://github.com/Cap32/touch-sprite-cli","commit_stats":null,"previous_names":["cap32/touch-script-cli"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap32%2Ftouch-sprite-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap32%2Ftouch-sprite-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap32%2Ftouch-sprite-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap32%2Ftouch-sprite-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cap32","download_url":"https://codeload.github.com/Cap32/touch-sprite-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244967876,"owners_count":20540026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cli","ide","ios","sublime-text","touch-sprite","touch-sprite-cli","touch-sprite-remote"],"created_at":"2024-11-29T01:20:51.546Z","updated_at":"2025-03-22T14:23:17.534Z","avatar_url":"https://github.com/Cap32.png","language":"JavaScript","readme":"# touch-sprite-cli\n\n触控精灵命令行工具 (非官方)\n\n**项目仍在开发中，在 v1.0.0 发布之前，用法可能会有所变化**\n\n## 安装\n\n先确保已安装 Node.js (\u003e4) 和 npm\n\n```bash\nnpm install -g touch-sprite-cli\n```\n\n## 用法\n\n### 查看帮助\n\n`touch-sprite -h`\n\n```\ntouch-sprite \u003ccommand\u003e [args]\n\nCommands:\n  push        Upload and run script\n  run         Run script\n  stop        Stop script\n  status      Get device status\n  upload      Upload file\n  devicename  Get device name\n  set         Set config\n  get         Get config\n  unset       Unset config\n  devices     Manage devices\n\nOptions:\n  --version   Show version number                              [boolean]\n  -h, --help  Show help                                        [boolean]\n```\n\n### 一些有用的配置\n\n* 配置开发者 Access Key `touch-sprite set key \u003c开发者 ACCESS KEY\u003e`\n* 配置开发者验证串的有效期，单位秒，最大为 3600 `touch-sprite set valid \u003c有效期数字\u003e`\n* 配置局域网设备 IP 地址 `touch-sprite set target \u003c局域网设备地址\u003e`\n* 添加设备 (设备数量不能超过开发者的最大设备数限制) `touch-sprite devices add \u003c设备号\u003e`\n* 列出所有设备号 `touch-sprite devices list`\n* 删除指定设备 `touch-sprite devices remove \u003c设备号\u003e`\n* 清除所有设备 `touch-sprite devices clear`\n\n## 集成到 Sublime Text 3\n\n1.  在终端获取 `node` 路径 (macOS/linux 用户 `which node`, windows 用户 `where node`)\n2.  在终端获取 `touch-sprite-cli` 路径 (macOS/linux 用户 `which touch-sprite`, windows 用户 `where touch-sprite`\n3.  创建 `touch-sprite.sublime-build` 文件到 Packages 目录，写入：\n\n```json\n{\n  \"cmd\": [\"\u003ctouch-sprite-cli 路径\u003e\", \"push\", \"-f=$file\"],\n  \"selector\": \"source.lua\",\n  \"path\": \"\u003cnode 路径\u003e\"\n}\n```\n\n当然，也可以用类似的方法集成到其它 IDE\n\n## 相关项目\n\n* [node-touch-sprite-remote](https://github.com/Cap32/node-touch-sprite-remote): Node module API version\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap32%2Ftouch-sprite-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcap32%2Ftouch-sprite-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap32%2Ftouch-sprite-cli/lists"}