#!/bin/sh # SPDX-License-Identifier: MIT set -e export LANG=C export LC_ALL=C export VERSION_FLAG=https://cdn.asahilinux.org/installer/latest export INSTALLER_BASE=https://cdn.asahilinux.org/installer export INSTALLER_DATA=https://tg.st/u/installer_data.json export REPO_BASE=https://tg.st/u TMP=/tmp/asahi-install echo echo "Bootstrapping installer:" mkdir -p "$TMP" cd "$TMP" echo " Checking version..." PKG_VER="$(curl -s -L "$VERSION_FLAG")" echo " Version: $PKG_VER" PKG="installer-$PKG_VER.tar.gz" echo " Downloading..." curl -s -L -o "$PKG" "$INSTALLER_BASE/$PKG" curl -s -L -O "$INSTALLER_DATA" echo " Extracting..." tar xf "$PKG" export DYLD_LIBRARY_PATH=$PWD/Frameworks/Python.framework/Versions/Current/lib export DYLD_FRAMEWORK_PATH=$PWD/Frameworks export SSL_CERT_FILE=$PWD/Frameworks/Python.framework/Versions/Current/etc/openssl/cert.pem export PATH="$PWD/Frameworks/Python.framework/Versions/3.9/bin:$PATH" python3 -m firmware.wifi /usr/share/firmware/wifi /tmp/linux-firmware.tar