Build binary ourselves (#3303)

This commit is contained in:
Slaviša Arežina
2025-03-21 15:54:09 +01:00
committed by GitHub
parent 67bb2b7c89
commit f7762da69c
2 changed files with 11 additions and 8 deletions

View File

@@ -40,8 +40,10 @@ function update_script() {
wget -q "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}.tar.gz" -O $temp_file
tar -xzf $temp_file
cp -rf GoMFT-${RELEASE}/* /opt/gomft
cd /opt/gomft
$STD go mod download
$STD go build -o gomft
$STD $HOME/go/bin/templ generate
wget -q "https://github.com/StarFleetCPTN/GoMFT/releases/download/v${RELEASE}/gomft-v${RELEASE}-linux-amd64" -O /opt/gomft/gomft
chmod +x /opt/gomft/gomft
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated $APP to ${RELEASE}"