diff --git a/bin/npplayer b/bin/npplayer deleted file mode 100755 index 41a2ebc..0000000 Binary files a/bin/npplayer and /dev/null differ diff --git a/build.sh b/build.sh index 9052184..63c9750 100755 --- a/build.sh +++ b/build.sh @@ -1,12 +1,15 @@ #!/bin/bash -export XBPS_ARCH=armv6l +export XBPS_ARCH=${1:-armv6l} void_repository=https://alpha.us.repo.voidlinux.org/ set -eo pipefail command -v curl tar zstd xz 7z zcat sudo rsync -test -f external/freshplayerplugin/CMakeLists.txt -test -f external/nspluginwrapper/configure +if [ ! -f external/freshplayerplugin/CMakeLists.txt ] || [ ! -f external/nspluginwrapper/configure ] ; then + echo "Missing build files for freshplayerplugin and/or nspluginwrapper." + echo "Do you need to run git submodule update --init --recursive ?" + exit 1 +fi mkdir -p workdir cd workdir diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..c341e18 --- /dev/null +++ b/clean.sh @@ -0,0 +1,4 @@ +#!/bin/bash +grep "$PWD/workdir/dev/null" /etc/mtab && sudo umount workdir/dev/null +rm -rf workdir +[ "$1" == dist ] && rm -rf dist