mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-15 21:10:38 +00:00
Compare commits
10 Commits
1e70ad8d64
...
0d2845b614
Author | SHA1 | Date | |
---|---|---|---|
|
0d2845b614 | ||
|
45029a7797 | ||
|
32d57e9c2b | ||
|
cc9b516646 | ||
|
3b5b1a4356 | ||
|
cf9826bb0d | ||
|
3875a9a674 | ||
|
74b5c09b89 | ||
|
a807b31216 | ||
|
ab6eeab932 |
@ -82,4 +82,5 @@ _Optional Dependencies: **zenity** (for GUI)_
|
||||
- https://github.com/victort
|
||||
- https://github.com/Wrzlprnft
|
||||
- https://github.com/ananace
|
||||
- https://github.com/LovingMelody
|
||||
- Runner Downloader inspired by https://github.com/richardtatum/sc-runner-updater
|
||||
|
@ -46,6 +46,7 @@
|
||||
# Contributor: https://github.com/gort818
|
||||
# Contributor: https://github.com/victort
|
||||
# Contributor: https://github.com/Wrzlprnft
|
||||
# Contributor: https://github.com/LovingMelody
|
||||
# Runner Downloader inspired by:
|
||||
# https://github.com/richardtatum/sc-runner-updater
|
||||
#
|
||||
@ -86,6 +87,12 @@ if [ ! -x "$(command -v xargs)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Checks for NixOS for NixOS specific options
|
||||
if (grep '^NAME=NixOS' /etc/os-release -q 2> /dev/null ); then
|
||||
is_nixos=1
|
||||
else
|
||||
is_nixos=0
|
||||
fi
|
||||
|
||||
######## Config ############################################################
|
||||
|
||||
@ -222,6 +229,10 @@ repo="starcitizen-lug/lug-helper"
|
||||
releases_url="https://github.com/$repo/releases"
|
||||
current_version="v2.8"
|
||||
|
||||
# FIXME: Link
|
||||
# NixOS section in Wiki
|
||||
lug_wiki_nixos="https://github.com/starcitizen-lug/knowledge-base/wiki/Tips-and-Tricks"
|
||||
|
||||
############################################################################
|
||||
############################################################################
|
||||
############################################################################
|
||||
@ -358,14 +369,12 @@ message() {
|
||||
"info")
|
||||
# info message
|
||||
# call format: message info "text to display"
|
||||
clear
|
||||
printf "\n$2\n\n"
|
||||
read -n 1 -s -p "Press any key..."
|
||||
;;
|
||||
"warning")
|
||||
# warning message
|
||||
# call format: message warning "text to display"
|
||||
clear
|
||||
printf "\n$2\n\n"
|
||||
read -n 1 -s -p "Press any key..."
|
||||
;;
|
||||
@ -378,7 +387,6 @@ message() {
|
||||
"question")
|
||||
# question
|
||||
# call format: if message question "question to ask?"; then...
|
||||
clear
|
||||
printf "$2\n"
|
||||
while read -p "[y/n]: " yn; do
|
||||
case "$yn" in
|
||||
@ -528,8 +536,8 @@ menu() {
|
||||
matched="false"
|
||||
for (( i=0; i<"${#menu_options[@]}"; i++ )); do
|
||||
if [ "$choice" = "${menu_options[i]}" ]; then
|
||||
clear
|
||||
# Execute the corresponding action
|
||||
printf "\n\n"
|
||||
${menu_actions[i]}
|
||||
matched="true"
|
||||
break
|
||||
@ -2165,7 +2173,7 @@ maintenance_menu() {
|
||||
while [ "$looping_menu" = "true" ]; do
|
||||
# Configure the menu
|
||||
menu_text_zenity="<b><big>Game Maintenance and Troubleshooting</big>\n\nLUG Wiki: $lug_wiki</b>\n\nYou may choose from the following options:"
|
||||
menu_text_terminal="Game Maintenance and Troubleshooting\n\nYou may choose from the following options:"
|
||||
menu_text_terminal="Game Maintenance and Troubleshooting\n\nLUG Wiki: $lug_wiki\n\nYou may choose from the following options:"
|
||||
menu_text_height="140"
|
||||
menu_type="radiolist"
|
||||
|
||||
@ -2374,6 +2382,7 @@ live_or_ptu="$live_dir"
|
||||
if [ "$use_zenity" -eq 1 ]; then
|
||||
releases_url="<a href='$releases_url'>$releases_url</a>"
|
||||
lug_wiki="<a href='$lug_wiki'>$lug_wiki</a>"
|
||||
lug_wiki_nixos="<a href='$lug_wiki_nixos'>$lug_wiki_nixos</a>"
|
||||
fi
|
||||
|
||||
# Check if a newer verison of the script is available
|
||||
@ -2497,6 +2506,11 @@ Usage: lug-helper <options>
|
||||
fi
|
||||
fi
|
||||
|
||||
# Detect if NixOS is being used and direct user to wiki
|
||||
if [ "$is_nixos" -eq 1 ]; then
|
||||
message info "It looks like you're using NixOS\nPlease see our wiki for NixOS-specific configuration requirements:\n\n$lug_wiki_nixos"
|
||||
fi
|
||||
|
||||
# Loop the main menu until the user selects quit
|
||||
while true; do
|
||||
# Configure the menu
|
||||
|
@ -17,7 +17,7 @@
|
||||
"notes": "Performance may be choppy for the first couple minutes after visiting a new place or performing a new activity while shaders compile. Subsequent arrival should not be choppy.\r\n\r\nIf you receive a Runtime Error you can continue using Star Citizen by dragging the dialog box to the side, but in-game VoIP and FoIP will cease to function until Star Citizen is restarted. Drop in to the LUG group's chat and forums; we have custom runners to work around this problem.\r\n\r\nPlease make sure you have all Wine dependencies properly installed or your game may crash during start-up. See our wiki linked above for more information and instructions.\r\n\r\nTo prevent crashes in areas with lots of geometry, the game needs a Linux resource limit named \"vm.max_map_count\" increased. If you are following our Quick Start Guide and using our LUG Helper, the Preflight Check will do this for you. To set it manually, execute:\r\n\r\nsudo sysctl -w vm.max_map_count=16777216\r\n\r\nConsult your distro's documentation on how to set this permanently or ask a LUG member.\r\n\r\nSee you in the 'verse!",
|
||||
"credits": "",
|
||||
"created_at": "2023-03-24T06:40:19.908354Z",
|
||||
"updated_at": "2023-07-03T01:53:34.512132Z",
|
||||
"updated_at": "2023-07-22T11:30:46.512132Z",
|
||||
"draft": false,
|
||||
"published": true,
|
||||
"published_by": null,
|
||||
@ -32,7 +32,7 @@
|
||||
"script": {
|
||||
"files": [
|
||||
{
|
||||
"client": "https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.6.6.exe"
|
||||
"client": "https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.6.7.exe"
|
||||
}
|
||||
],
|
||||
"game": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user