diff --git a/deb_from_installation.sh b/deb_from_installation.sh index 053de421c..2c1596163 100755 --- a/deb_from_installation.sh +++ b/deb_from_installation.sh @@ -32,10 +32,12 @@ if [ ! -d $INSTALL_DIR ] ; then exit 1 fi +ARCH=$(dpkg --print-architecture) + rm -rf build/pkg mkdir -p build/pkg/opt mkdir -p build/pkg/DEBIAN sed -e s/VERSION/$VERSION/ wasi-sdk.control > build/pkg/DEBIAN/control cp -R $INSTALL_DIR build/pkg/opt/ -cd build && dpkg-deb -b pkg wasi-sdk_$VERSION\_amd64.deb && cd .. -mv build/wasi-sdk_$VERSION\_amd64.deb $OUTDIR/ +cd build && dpkg-deb -b pkg wasi-sdk_$VERSION\_$ARCH\.deb && cd .. +mv build/wasi-sdk_$VERSION\_$ARCH\.deb $OUTDIR/