Skip to content

Latest commit

 

History

History
98 lines (65 loc) · 1.74 KB

README.zh-CN.md

File metadata and controls

98 lines (65 loc) · 1.74 KB

Swoft Release CLI

GitHub tag (latest SemVer)

Swoft 核心和扩展组件的版本发布工具.

  • 同步最新改动到各个子仓库
  • 批量的发布新版本

Github https://github.com/swoftlabs/swoft-releasecli

工具预览:

all-commands

安装

环境依赖:

  • git
  • php
  • swoole
  • composer

脚本安装

curl https://raw.githubusercontent.com/swoftlabs/swoft-releasecli/master/install.sh | bash

手动安装

内容来自于 install.sh 脚本

cd ~
git clone https://github.com/swoftlabs/swoft-releasecli .swoft-releasecli
cd .swoft-releasecli
composer install
ln -s $PWD/bin/releasecli /usr/local/bin/releasecli
chmod a+x bin/releasecli

使用

先用git拉取最新的 swoft-components 或 swoft-ext 到本地,跳转到仓库目录,执行:

# 1. add remote for all components
releasecli git:addrmt --all

# 2. force push all change to every github repo
releasecli git:fpush --all

# 3. release new version for all components
releasecli git:release --all -y -t v2.0.8

更新工具

内置命令更新

Use builtin command

releasecli upself

手动更新

cd ~/swoft-releasecli
git pull
chmod a+x bin/releasecli

构建Phar

Required the swoftcli

php -d phar.readonly=0 ~/.composer/vendor/bin/swoftcli phar:pack -o=releasecli.phar

删除工具

rm -f /usr/local/bin/releasecli
rm -rf ~/swoft-releasecli

依赖包