Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Fix agent packaging build errors

Juan Denis95d9e6f2c473
diff --git a/agent/packaging/msi/Product.wxs b/agent/packaging/msi/Product.wxs
index 057f6d95..6b3b4ec7 100644
--- a/agent/packaging/msi/Product.wxs
+++ b/agent/packaging/msi/Product.wxs
@@ -62,9 +62,7 @@
Return="ignore" />
<InstallExecuteSequence>
- <Custom Action="StopService" Before="InstallFiles">
- Installed AND NOT UPGRADINGPRODUCTCODE
- </Custom>
+ <Custom Action="StopService" Before="InstallFiles" Condition="Installed AND NOT UPGRADINGPRODUCTCODE" />
</InstallExecuteSequence>
</Package>
diff --git a/agent/packaging/rpm/build.sh b/agent/packaging/rpm/build.sh
index 2b058cf0..7799ae19 100644
--- a/agent/packaging/rpm/build.sh
+++ b/agent/packaging/rpm/build.sh
@@ -189,8 +189,8 @@ fi
- Release $VERSION
EOF
-# Build the RPM
-rpmbuild --define "_topdir $BUILD_ROOT" -bb "$BUILD_ROOT/SPECS/serverkit-agent.spec"
+# Build the RPM (disable build-id for Go binaries)
+rpmbuild --define "_topdir $BUILD_ROOT" --define "_build_id_links none" -bb "$BUILD_ROOT/SPECS/serverkit-agent.spec"
# Copy output
OUTPUT_DIR="${4:-./output}"