Skip to content

Commit

Permalink
update readme with build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Laing committed Nov 14, 2022
1 parent 6af7ff3 commit 71249ec
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
37 changes: 33 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,36 @@ The Asahi Linux installer is distributed under the MIT license. See LICENSE for

This installer vendors [python-asn1](https://github.com/andrivet/python-asn1), which is distributed under the same license.

## Building

`./build.sh`

## Building on macOS
### Build Requirements
Install and setup `Xcode Command Line Tools` from Apple
```bash
xcode-select --install
```
Install and setup [`Homebrew`](https://brew.sh/), "The Missing Package Manager for macOS"
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
Install [Rust and Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html):
```bash
# follow the installer instructions
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# afterwards initialize
source "$HOME/.cargo/env"
```

### Build Asahi Installer locally
```bash
git clone --recursive https://github.com/AsahiLinux/asahi-installer.git
cd ./asahi-installer
./build.sh
```

### FAQ Errors
```bash
# Error: Rust dependency not found
error: failed to load source for dependency `bitflags`
# Solution: download rust cargo dependencies for m1n1
git submodule init
git submodule update
```
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ rm -rf "$PACKAGE"
mkdir -p "$DL" "$PACKAGE" "$RELEASES" "$RELEASES_DEV"
mkdir -p "$PACKAGE/bin"

echo "Install brew dependencies..."
for BREW_DEPENDENCY in "wget" "make" "llvm"; do
echo "Brew install $BREW_DEPENDENCY..."
if brew ls --versions "$BREW_DEPENDENCY"
then brew upgrade "$BREW_DEPENDENCY"
else brew install "$BREW_DEPENDENCY"
fi
done

echo "Determining version..."

VER=$(git describe --always --dirty --tags)
Expand Down

0 comments on commit 71249ec

Please sign in to comment.