feat: 使用 goreleaser 构建包 (#829)

* feat: 使用 goreleaser 构建包

Signed-off-by: 吴小白 <296015668@qq.com>
This commit is contained in:
吴小白
2023-05-24 16:46:28 +08:00
committed by GitHub
parent c69a1c8ec2
commit da155fadf2
6 changed files with 205 additions and 0 deletions

20
script.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
command -v wget >/dev/null || {
echo "wget not found, please install it and try again ."
exit 1
}
if [ ! -f "1pctl" ]; then
wget https://github.com/1Panel-dev/installer/raw/main/1pctl
fi
if [ ! -f "1panel.service" ]; then
wget https://github.com/1Panel-dev/installer/raw/main/1panel.service
fi
if [ ! -f "install.sh" ]; then
wget https://github.com/1Panel-dev/installer/raw/main/install.sh
fi
chmod 755 1pctl install.sh