-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_standalone.sh
More file actions
executable file
·31 lines (20 loc) · 998 Bytes
/
install_standalone.sh
File metadata and controls
executable file
·31 lines (20 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# This script installs flint into a temporary location, adds a repository, and then installs flint from there into it's final location.
set -eu
TMP_LOCATION="/tmp/flint_installer.x86_64"
INITIAL_REPOSITORY_NAME="$1"
INITIAL_REPOSITORY_URL="$2"
echo "[INFO] Using inital repository: '$INITIAL_REPOSITORY_NAME' with URL: '$INITIAL_REPOSITORY_URL'"
echo "[INFO] Downloading latest flintpkg from github releases..."
curl --follow https://github.com/TimelessOS/Flint/releases/latest/download/flint.x86_64 -o $TMP_LOCATION
chmod 700 $TMP_LOCATION
echo "[INFO] Adding initial repository..."
$TMP_LOCATION repo add $INITIAL_REPOSITORY_NAME $INITIAL_REPOSITORY_URL
echo "[INFO] Installing 'flint' from initial repository..."
$TMP_LOCATION install flint
# This is needed to update the quicklaunch scripts.
$TMP_LOCATION run flint -- flint update
# Cleanup temporary flintpkg
rm $TMP_LOCATION
echo "====================================================="
echo "Installed successfully!"