{"id":17463886,"url":"https://github.com/linxunfeng/script_box","last_synced_at":"2026-02-27T05:37:06.802Z","repository":{"id":110283753,"uuid":"442112731","full_name":"LinXunFeng/script_box","owner":"LinXunFeng","description":"脚本工具箱","archived":false,"fork":false,"pushed_at":"2024-04-17T13:51:14.000Z","size":26,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T20:38:08.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinXunFeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-27T09:28:26.000Z","updated_at":"2024-06-12T06:29:50.000Z","dependencies_parsed_at":"2024-01-21T07:29:59.241Z","dependency_job_id":"c8ea868f-59e2-4fff-891a-4f8f663183e5","html_url":"https://github.com/LinXunFeng/script_box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LinXunFeng/script_box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXunFeng%2Fscript_box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXunFeng%2Fscript_box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXunFeng%2Fscript_box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXunFeng%2Fscript_box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinXunFeng","download_url":"https://codeload.github.com/LinXunFeng/script_box/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXunFeng%2Fscript_box/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29885952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-18T10:44:02.873Z","updated_at":"2026-02-27T05:37:06.788Z","avatar_url":"https://github.com/LinXunFeng.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScriptBox\n个人脚本工具箱\n\n使用的 `python` 版本皆为 `Python3`\n\n\n\n## 文章\n\n|标题|掘金|博客|公众号|\n|-|-|-|-|\n|iOS - 实现25秒内完成测试包出包|[【链接】](https://juejin.cn/post/7057177057637662728)|[【链接】](https://fullstackaction.com/pages/9b40a4/)|[【链接】](https://mp.weixin.qq.com/s/cZ8gUWuOt7gV74JBkqa8GQ)|\n\n\n\n## 使用\n\n### `push_dev_ipa.py`\n\n\u003e 功能：上传 `.app` 文件至蒲公英或 `fir`\n\n\n\n一、目录结构：\n\n```shell\n项目（项目路径是到我这一级）\n├── LXFCardsLayout\n├── LXFCardsLayout.xcodeproj\n├── LXFCardsLayout.xcworkspace\n├── Podfile\n├── Podfile.lock\n├── Pods\n├── fastlane\n│   └── appack_set.json（配置文件）\n└── script\n    ├── build_time_conf.ini\n    └── save_build_config.py\n```\n\n`save_build_config.py` 和 `appack_set.json` 按如上结构放好，也可以自行存放和调整脚本\n\n\n\n二、配置\n\n在项目中的 `Run Script` 添加命令\n\n```shell\ncd script\npython3 save_build_config.py # 记录编译时配置\n```\n\n该操作的用意：在编译的过程中，将 `app` 包所在路径保持至 `script` 目录的 `build_time_conf.ini` 文件中，并使用 `build_dir_path` 做为其 `key`。\n\n注：鉴于多人协作下，该 `build_time_conf.ini` 文件必定不可能相同，所以建议将该 `build_time_conf.ini` 文件添加至 `.gitignore` 中\n\n\n\n三、脚本命令\n\n```shell\npush_dev_ipa.py -p \"项目路径\" -t \"target名\" --platform=\"pgyer或fir\"\n\n# platform 不传，则默认为 pgyer\n# 如：\n# python push_dev_ipa.py -p \"/Users/lxf/Desktop/LXFCardsLayout/Example\" -t \"LXFCardsLayout_Example\"\n# python push_dev_ipa.py -p \"/Users/lxf/Desktop/LXFCardsLayout/Example\" -t \"LXFCardsLayout_Example\" --platform=\"fir\"\n```\n\n\n\n\n\n## 配置文件\n\n### `appack_set.json`\n\n```json\n{\n  \"pgyer_api_key\": \"蒲公英api_key\",\n  \"pgyer_user_key\": \"蒲公英user_key\",\n  \"pgyer_api_password\": \"安装密码\",\n  \"fir_type\": \"ios\",\n  \"fir_api_token\": \"fir的api_token\"\n}\n```\n\n\n\n## 作者\n\n- LinXunFeng\n- email: [linxunfeng@yeah.net](mailto:linxunfeng@yeah.net)\n- Blogs: [全栈行动](https://fullstackaction.com/) | [掘金](https://juejin.im/user/58f8065e61ff4b006646c72d/posts) \n\n\n\u003cimg height=\"267.5\" width=\"481.5\" src=\"https://github.com/LinXunFeng/LinXunFeng/blob/master/static/img/FSAQR.png\" /\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxunfeng%2Fscript_box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinxunfeng%2Fscript_box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxunfeng%2Fscript_box/lists"}