{"id":15587790,"url":"https://github.com/icyleaf/fastlane-plugins","last_synced_at":"2025-07-08T17:35:41.935Z","repository":{"id":46136401,"uuid":"45524294","full_name":"icyleaf/fastlane-plugins","owner":"icyleaf","description":"自创造超实用性 Fastlane 插件和自定义 actions 的聚合仓库","archived":false,"fork":false,"pushed_at":"2022-06-23T03:19:32.000Z","size":109,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T07:05:36.971Z","etag":null,"topics":["fastlane","fastlane-plugin","jenkins"],"latest_commit_sha":null,"homepage":"https://icyleaf.com","language":"Ruby","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/icyleaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-04T08:09:25.000Z","updated_at":"2024-08-26T08:08:18.000Z","dependencies_parsed_at":"2022-09-24T14:51:32.787Z","dependency_job_id":null,"html_url":"https://github.com/icyleaf/fastlane-plugins","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Ffastlane-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Ffastlane-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Ffastlane-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Ffastlane-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icyleaf","download_url":"https://codeload.github.com/icyleaf/fastlane-plugins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566445,"owners_count":21451230,"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":["fastlane","fastlane-plugin","jenkins"],"created_at":"2024-10-02T22:03:24.929Z","updated_at":"2025-04-24T04:50:31.228Z","avatar_url":"https://github.com/icyleaf.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastlane-plugins\n\n[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/icyleaf/fastlane-plugins/blob/master/LICENSE)\n\n本仓库是本人在多年所整理使用的超实用 [fastlane](http://github.com/fastlane/fastlane) 的自定义 actions，制定了一些用于公司内部移动开发项目使用到的 `lanes`，同时也有部分 action 在确定可以贡献社区的会被抽成 plugin 让更多的人检索和使用。\n\n## 引入教程\n\n确保已经安装了 `fastlane` 并进行初始化：\n\n```bash\n$ gem install fastlane\n$ fastlane init\n```\n\n根据工具的提示输入和配置你项目的具体参数和账户情况，直至完成之后会在当前路径下生成 `fastlane` 的目录结构，打开其中的 `Fastfile` 在头部加入并保存：\n\n```ruby\nimport_from_git(url: 'https://github.com/icyleaf/fastlane-plugins.git')\n```\n\n接着我们就可以直接使用了！\n\n## Plugins\n\n如下是已经从本仓库移除并重新定义的 plugins\n\n插件 | 说明\n---|---\n[ci_changelog](https://github.com/icyleaf/fastlane-plugin-ci_changelog) | 支持多种 CI 系统自动生成变更历史\n[update_jenkins_build](https://github.com/icyleaf/fastlane-plugin-update_jenkins_build) | 自动更新 Jenkins Build 描述\n[humanable_build_number](https://github.com/icyleaf/fastlane-plugin-humanable_build_number) | 生成开发可识别的构建版本号\n[app_info](https://github.com/icyleaf/fastlane-plugin-app_info) | 解析 apk/ipa 包的 metadata 并打印\n[android_channels](https://github.com/icyleaf/fastlane-plugin-android_channels) | 通用性 Android 多渠道打包\n[ram_disk](https://github.com/icyleaf/fastlane-plugin-ram_disk) | 创建内存虚拟磁盘，主要用于提升 App 构建速度\n[debug_file](https://github.com/icyleaf/fastlane-plugin-debug_file) | 自动化搜索 iOS/macOS dSYM 或 Android Proguard（混淆）并打包 Zip 文件\n\n## Actions\n\n### git_last_commit\n\n默认是对 CI 且安装了 git 客户端的机器使用，主要用于获取当前拉取的 commit 的基本信息。\n\n### git_remotes\n\n和上面类似，只是获取当前 git 仓库的 remotes 信息\n\n### wechat_works\n\n使用企业微信的机器人 WebHook 发消息到群\n\n#### 参数\n\n名称 | 环境变量 | 说明 | 默认值 |\n---|---|---|---\nwebhook_url | WECHATWORK_WEBHOOK_URL | 企业微信机器人 webhook\ntype | WECHATWORK_TYPE | 消息类型，可选值：`:text` 和 `:markdown`\nmessage | WECHATWORK_MESSAGEE | 消息内容\nto | WECHATWORK_TO | @ 某人的 id 或手机号、不支持昵称\nfail_on_error | WECHATWORK_FAIL_ON_ERROR | 运行遇到错误是否抱错退出\n\n#### 使用方法\n\n```ruby\nlane :notice do\n  # 发送纯文本消息\n  wechat_work(\n    webhook_url: '...',\n    type: :text,\n    message: \"hello\\nworld\"\n  )\n\n  # 发送 markdown 消息\n  wechat_work(\n    webhook_url: '...',\n    type: :markdown,\n    message: \"# Head 1\\n- List 1\\n- List 2\"\n  )\nend\n```\n\n### xcode_bootstrap\n\n每当新启动一个项目，在支持 fastlane 都需要花费时间和规范来配置参数，有了它可以轻松帮你一键配置如下的设置：\n\n- 支持 Cocoapods\n- 添加 **AdHoc** Build Confiuration 用于 fastlane 打包（自动处理 `Podfile` 文件)\n- 根据 Build Confiuration 区别安装应用的名称\n  - Debug: {应用名}开发版（默认配置，可自定义）\n  - AdHoc: {应用名}内测版（默认配置，可自定义）\n  - Release: {应用名}\n- 根据 Build Confiuration 区别安装应用的 identifier\n  - Debug: {应用identifier}.debug (默认配置，可自定义）\n  - AdHoc: {应用identifier}\n  - Release: {应用identifier}\n\n#### 参数\n\n名称 | 环境变量 | 说明 | 默认值 |\n---|---|---|---\nproject_path | `XCODE_PROJECT_PATH` | 项目路径 | 默认根目录\ncocoapods | `XCODE_COCOAPODS_SUPPORT` | 是否处理 Podfile | 默认 `true`\nbuild_configuration_name | `XCODE_BUILD_CONFIGURATION_NAME` | 新加编译配置名 | 默认 `AdHoc`\nbuild_configuration_base | `XCODE_BUILD_CONFIGURATION_BASE` | 新加编译配置的继承  | 默认 `:release`\napp_suffix | `XCODE_APP_SUFFIX` | 自定义应用名和唯一标识 | 默认参考上面说明\n\n#### 使用方法\n\n在 `Fastfile` 添加你定义好的 lane:\n\n```ruby\n# 默认配置（参考上面说明配置）\nlane :bootstrap do\n  xcode_bootstrap\nend\n\n# 自定义 Build Confiugration\nlane :bootstrap do\n  xcode_bootstrap({\n    build_configuration_name: 'Beta',\n    build_configuration_base: :release,\n    app_suffix: {\n      'Debug': {\n        name: '开发版',\n        identifier: '.debug'\n      },\n      'Beta': {\n        name: '测试版',\n        identifier: '.beta'\n      },\n      'Release': {\n        name: '',\n        identifier: ''\n      },\n    }\n  })\nend\n```\n\n打开你的终端执行:\n\n```bash\n$ fastlane ios bootstrap\n```\n\n## 发布协议\n\n[MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyleaf%2Ffastlane-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficyleaf%2Ffastlane-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyleaf%2Ffastlane-plugins/lists"}