Skip to content

Instantly share code, notes, and snippets.

@roymoran
roymoran / install.sh
Created December 21, 2023 18:55
builder installer script for shell
#!/bin/sh
# AWS S3 bucket details
S3_BUCKET="programbins"
S3_PATH="builder/bins"
# Base URL for downloading binaries from S3 bucket
BASE_URL="https://$S3_BUCKET.s3.amazonaws.com/$S3_PATH"
# Detect OS and Architecture
@roymoran
roymoran / install.sh
Created December 2, 2023 03:20
install.sh example
#!/bin/sh
# GitHub repository details
REPO_USER="roymoran"
REPO_NAME="page"
# GitHub API URL to get the latest release tag
LATEST_RELEASE_API="https://api.github.com/repos/$REPO_USER/$REPO_NAME/releases/latest"
# Fetch the latest release tag