https://github.com/losemy/build_util
云函数构建工具
https://github.com/losemy/build_util
build fc scf
Last synced: 3 months ago
JSON representation
云函数构建工具
- Host: GitHub
- URL: https://github.com/losemy/build_util
- Owner: losemy
- Created: 2023-07-08T06:02:08.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T02:52:09.000Z (over 1 year ago)
- Last Synced: 2025-12-18T23:59:10.890Z (6 months ago)
- Topics: build, fc, scf
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 # 使用打包工具进行打包
```