1 Star 0 Fork 134

titivip/driver-box

forked from iBUILDING-X/driver-box 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy.sh 701 Bytes
一键复制 编辑 原始数据 按行查看 历史
三刀 提交于 2023-08-01 13:46 . 添加打包工具
#!/bin/bash
make build
# 定义需要打包的程序目录
program_dir="output"
# 遍历程序目录下的所有文件和文件夹
for file in $(ls $program_dir)
do
result=$(echo ${file} | grep "windows")
if [[ "${result}" != "" ]]; then
mv "${program_dir}/$file" driver-box.exe
# 如果是文件,则直接打包成tar包
zip -r "${file/\.exe/}.zip" driver-box.exe driver-config
rm driver-box.exe
mv "${file/\.exe/}.zip" ${program_dir}
else
mv "${program_dir}/$file" driver-box
# 如果是文件,则直接打包成tar包
tar -cvf "${file}.tar" driver-box driver-config
rm driver-box
mv ${file}.tar ${program_dir}
fi
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/titivip/driver-box.git
git@gitee.com:titivip/driver-box.git
titivip
driver-box
driver-box
master

搜索帮助