-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b84aa5
commit ddc02c6
Showing
15 changed files
with
162 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rustflags = [] | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
linker = "aarch64-linux-gnu-gcc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "lead_docs" | ||
version = "0.0.0-dev-lead-lang" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
println!("⚠️ Under Construction ⚠️"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use crate::utils::ReleaseData; | ||
|
||
pub fn install(release: ReleaseData) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/usr/bin/env bash | ||
|
||
os=$(uname) | ||
arch=$(uname -m) | ||
|
||
BLUE="\e[34m" | ||
RED="\e[31m" | ||
GREEN="\e[32m" | ||
ENDCOLOR="\e[0m" | ||
|
||
info="${BLUE}[INFO]${ENDCOLOR}" | ||
err="${RED}[ERRR]${ENDCOLOR}" | ||
succ="${GREEN}[SUCC]${ENDCOLOR}" | ||
|
||
download="" | ||
|
||
echo -e $info Checking OS | ||
|
||
tag_name=$(([[ $TAG_NAME != "" ]] && echo $TAG_NAME) || echo "latest") | ||
echo -e $info Found Lead Language Version: $tag_name | ||
if [[ $os == 'Linux' || $os == 'Darwin' || $os == 'FreeBSD' ]]; then | ||
echo -e "$info $os detected" | ||
case "$arch" in | ||
x86_64) | ||
if [[ $os == 'FreeBSD' ]]; then | ||
echo -e "$info Lead Docs will fallback to using CLI on FreeBSD systems" | ||
fi | ||
target="${arch}-unknown-linux-gnu" | ||
[[ $os == 'Darwin' ]] && target="${arch}-apple-darwin" | ||
[[ $os == 'FreeBSD' ]] && target="${arch}-unknown-freebsd" | ||
echo -e "$info Getting Leadman $target" | ||
download="https://github.com/ahq-softwares/lead/releases/$([[ $tag_name == 'latest' ]] && echo 'latest/download' || echo "download/$tag_name")/leadman_$target" | ||
;; | ||
aarch64) | ||
if [[ $os == 'FreeBSD' ]]; then | ||
echo -e "$err aarch64 version of Lead Lang is not supported on FreeBSD" | ||
exit 1 | ||
elif [[ $os == 'Linux' ]]; then | ||
echo -e "$info Lead Docs will fallback to using CLI on Linux aarch64 systems" | ||
fi | ||
target="${arch}-apple-darwin" | ||
[[ $os == 'Linux' ]] && target="${arch}-unknown-linux-gnu" | ||
echo -e "$info Getting Leadman $target" | ||
download="https://github.com/ahq-softwares/lead/releases/$([[ $tag_name == 'latest' ]] && echo 'latest/download' || echo "download/$tag_name")/leadman_$target" | ||
;; | ||
*) | ||
echo -e "$err Unsupported architecture: $arch" | ||
exit 1 | ||
;; | ||
esac | ||
else | ||
echo -e "$err Unsupported OS: $os" | ||
exit 1 | ||
fi | ||
tmp=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir') | ||
echo -e $info Downloading Leadman $download | ||
curl -L $download -o $tmp/leadman_init | ||
chmod +x $tmp/leadman_init | ||
echo -e $info Starting leadman | ||
$tmp/leadman_init create | ||
rm $tmp/leadman_init | ||
rmdir $tmp | ||
echo -e $succ Successfully installed 🎉 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters