Skip to content

Commit cf96244

Browse files
committed
test.sh: Add a script to build & run the installer locally "in-place" from macOS
This assumes you have the necessary dependencies installed (rust, llvm, python3, etc.) Signed-off-by: Hector Martin <[email protected]>
1 parent b053597 commit cf96244

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

test.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh
2+
set -e
3+
4+
cd "$(dirname "$0")"
5+
base="$PWD"
6+
7+
if [ -e $HOME/.cargo/env ] ; then
8+
source $HOME/.cargo/env
9+
fi
10+
11+
export INSTALLER_BASE=https://cdn.asahilinux.org/installer-dev
12+
export REPO_BASE=https://cdn.asahilinux.org
13+
14+
make -C "m1n1" RELEASE=1 CHAINLOADING=1 -j4
15+
16+
sudo rm -rf /tmp/asahi-install
17+
mkdir -p /tmp/asahi-install
18+
19+
git describe --tags --always --dirty > /tmp/asahi-install/version.tag
20+
21+
cd /tmp/asahi-install
22+
ln -sf "$base/src"/* .
23+
mkdir -p boot
24+
ln -sf "$base/m1n1/build/m1n1.bin" boot/m1n1.bin
25+
ln -sf "$base/artwork/logos/icns/AsahiLinux_logomark.icns" logo.icns
26+
ln -sf "$base/data/installer_data.json" installer_data.json
27+
28+
sudo -E python3 $base/src/main.py

0 commit comments

Comments
 (0)