Skip to content

Commit

Permalink
Get arch from system when building debian package (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
johalun authored Mar 13, 2023
1 parent 22b1d89 commit a433a25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deb_from_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit a433a25

Please sign in to comment.