Fix: .txz war gzip statt xz (tar czf → tar cf | xz -9)

macOS bsdtar cJf erzeugt gzip, nicht xz. Unraids upgradepkg
erwartet echtes xz. Fix: tar cf - | xz -9 -c.

Neues SHA256: a9ce6500a395dbfb7c531bf50b83176997738d78a3ad95520c45ae2470018e00
Größe: 24MB (statt 35MB gzip)
This commit is contained in:
Mikei386
2026-08-18 08:17:11 +02:00
parent b21b761e16
commit db4efc1e65
3 changed files with 3 additions and 3 deletions
Binary file not shown.
+1 -1
View File
@@ -8,7 +8,7 @@
<!ENTITY pluginLOC "/boot/config/plugins/&name;">
<!ENTITY emhttpLOC "/usr/local/emhttp/plugins/&name;">
<!ENTITY txzURL "http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.08.18-x86_64-1.txz">
<!ENTITY txzSHA256 "4189f9bd085806535306a59de5a4fe38abe3b883f87f9d900d2f977528913a1a">
<!ENTITY txzSHA256 "a9ce6500a395dbfb7c531bf50b83176997738d78a3ad95520c45ae2470018e00">
]>
<PLUGIN name="&name;"
+2 -2
View File
@@ -103,11 +103,11 @@ cat > "${BUILD_DIR}/install/slack-desc" << DESCEOF
|Build: ${BUILD_NUM}
DESCEOF
# 5. .txz erstellen (gzip-tar)
# 5. .txz erstellen (tar + xz — NICHT gzip, Unraid erwartet echtes xz)
mkdir -p "${DIST_DIR}"
TXZ_NAME="${PKG_NAME}-${VERSION}-${ARCH}-${BUILD_NUM}.txz"
echo " Erstelle ${TXZ_NAME}..."
( cd "${BUILD_DIR}" && tar czf "${DIST_DIR}/${TXZ_NAME}" . )
( cd "${BUILD_DIR}" && tar cf - . | xz -9 -c > "${DIST_DIR}/${TXZ_NAME}" )
echo ""
echo "===================================================="