build: simplify detection of the target platform
It can be done within the container, rather than having to compute it in the Makefile and then pass it as an argument.
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
set -o pipefail -xeu
|
||||
|
||||
if [ "${USE_CHROMIUM}" = 1 -o "${TARGETPLATFORM}" = "linux/arm64" ]; then
|
||||
dpkgArch="$(dpkg --print-architecture)"
|
||||
|
||||
if [ "${USE_CHROMIUM}" = 1 -o "${dpkgArch##*-}" = "arm64" ]; then
|
||||
echo "Using Debian's Chromium"
|
||||
apt-dpkg-wrap apt-get install -y chromium chromium-driver chromium-sandbox
|
||||
chromium --version
|
||||
|
||||
Reference in New Issue
Block a user