Merge pull request #10 and #8

build(nix): configure flake for dcr project
Update user input prompts to read from /dev/tty 
Create FUNDING.yml
This commit is contained in:
2026-06-01 20:29:07 +08:00
committed by GitHub
4 changed files with 262 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ select_channel() {
echo "Choose channel:"
echo " 1) Latest stable release (default)"
echo " 2) Latest dev (pre-release)"
read -r -p "Enter 1 or 2 [1]: " choice
read -r -p "Enter 1 or 2 [1]: " choice < /dev/tty
case "${choice:-1}" in
1) CHANNEL="stable" ;;
@@ -85,7 +85,7 @@ select_install_mode() {
echo "Choose installation mode:"
echo " 1) Download prebuilt binary from GitHub Release (recommended)"
echo " 2) Build from git"
read -r -p "Enter 1 or 2 [1]: " choice
read -r -p "Enter 1 or 2 [1]: " choice < /dev/tty
case "${choice:-1}" in
1) INSTALL_MODE="release" ;;
@@ -229,4 +229,4 @@ main() {
log "Log saved to $LOGFILE"
}
main "$@"
main "$@"