Skip to content

Commit 5d0b3e1

Browse files
author
bot
committed
repo: update packages [ci skip]
0 parents  commit 5d0b3e1

26 files changed

Lines changed: 169 additions & 0 deletions

‎install.sh‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
REPO_URL="https://iluxz.github.io/MochiOS/repo"
5+
6+
echo "==> mochios public repo"
7+
echo ""
8+
9+
if command -v pacman &>/dev/null; then
10+
echo "detected arch-based system - adding pacman repo..."
11+
if grep -q '\[mochi\]' /etc/pacman.conf 2>/dev/null; then
12+
echo " repo already configured"
13+
else
14+
cat >> /etc/pacman.conf << 'PACMAN'
15+
16+
[mochi]
17+
SigLevel = Optional TrustAll
18+
Server = https://github.com/iluxz/MochiOS/raw/gh-pages/os/x86_64
19+
PACMAN
20+
echo " added [mochi] to /etc/pacman.conf"
21+
fi
22+
23+
echo "installing mochi..."
24+
pacman -Sy --noconfirm mochi || {
25+
echo " error: could not install mochi"
26+
exit 1
27+
}
28+
echo " mochi installed!"
29+
else
30+
echo "downloading static binary..."
31+
if [ -w /usr/local/bin ]; then
32+
INSTALL_DIR=/usr/local/bin
33+
else
34+
INSTALL_DIR="$HOME/.local/bin"
35+
mkdir -p "$INSTALL_DIR"
36+
fi
37+
curl -sSfL "$REPO_URL/static/mochi" -o "$INSTALL_DIR/mochi"
38+
chmod +x "$INSTALL_DIR/mochi"
39+
echo " installed mochi to $INSTALL_DIR/mochi"
40+
fi
41+
42+
echo ""
43+
echo "run 'mochi help' to get started"
5.16 MB
Binary file not shown.
566 Bytes
Binary file not shown.
4.23 KB
Binary file not shown.
566 Bytes
Binary file not shown.

‎os/x86_64/mochi.db‎

20 KB
Binary file not shown.

‎os/x86_64/mochi.db.tar.zst‎

2.06 KB
Binary file not shown.

‎os/x86_64/mochi.files‎

40 KB
Binary file not shown.

‎os/x86_64/mochi.files.tar.zst‎

3.78 KB
Binary file not shown.
395 KB
Binary file not shown.

0 commit comments

Comments
 (0)