An open API service indexing awesome lists of open source software.

https://github.com/losemy/build_util

云函数构建工具
https://github.com/losemy/build_util

build fc scf

Last synced: 3 months ago
JSON representation

云函数构建工具

Awesome Lists containing this project

README

          

### 云函数打包工具

#### windows下打包会导致文件没有可执行权限
1. 腾讯云会 405提示容器异常退出
2. 实际是无法执行对应的命令

#### 安装
```shell
go install github.com/losemy/build_util@latest
```

### scf_bootstrap文件
1. 需要注意windows平台下编写的scf文件会有问题 主要替换成仓库中的 或者尽量在linux环境下编辑

### 打包方式示例
```shell
rm main.zip # 删除打包文件
GOOS=linux GOARCH=amd64 go build -o main # 编译linux x64数据
build_util -output main.zip main scf_bootstrap config.yaml # 使用打包工具进行打包
```