1 Star 0 Fork 0

rocket049/bash_test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
qtminimal.sh 473 Bytes
一键复制 编辑 原始数据 按行查看 历史
rocket049 提交于 2020-05-05 16:27 +08:00 . .
#!/bin/sh
echo 本命令后面的参数将附加到 -tags 后面。
if [ -z "$@" ];then
echo '~/go/bin/qtminimal desktop'
~/go/bin/qtminimal desktop
echo 'go build -tags "minimal" -ldflags "-s -w"'
go build -tags "minimal" -ldflags "-s -w"
else
tags="$@"
echo "~/go/bin/qtminimal -tags \"${tags}\" desktop"
~/go/bin/qtminimal -tags "${tags}" desktop
echo "go build -tags \"minimal ${tags}\" -ldflags \"-s -w\""
go build -tags "minimal ${tags}" -ldflags "-s -w"
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rocket049/bash_test.git
git@gitee.com:rocket049/bash_test.git
rocket049
bash_test
bash_test
master

搜索帮助