Skip to content

Commit

Permalink
Installer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAwesome committed Nov 29, 2024
1 parent 248ed49 commit d67b83c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Prerequisites:
[] flatpak
[] systemctl

[] make decktricks stable installer point to discord or reddit, and beta point to github?
[] make "decktricks gui" default to godot, run "decktricks-gui"
[] cargo clippy in CI
[] make Dockerfile pull 'latest' instead of main
Expand Down Expand Up @@ -219,6 +220,9 @@ Notes from running in container:
cp in /usr/lib/libcrypto.so.3 and /usr/lib/libssl.so.3
systemctl is not accessible, and most relevant binaries probably won't be

Potentially popular "support me and" features:
[] "launch in nested desktop"

Tips:
* Use STEAM+Rstick to move mouse, STEAM+R2/R1/L2/L1 to click

Expand Down
2 changes: 1 addition & 1 deletion scripts/decktricks_install.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Install Decktricks
Exec=bash -xc '( DTDIR="$HOME/.local/share/decktricks" && mkdir -p "$DTDIR" && cd "$DTDIR" && curl -S -s -L -O --output-dir /tmp --connect-timeout 60 "https://github.com/MrAwesome/decktricks/releases/download/stable/decktricks.tar.gz" && tar xvf /tmp/decktricks.tar.gz && ./decktricks_post_install.sh ) || ( echo "Something went wrong. Are you connected to the Internet? If this looks like a bug, please report it at: https://github.com/MrAwesome/decktricks/issues"; read )'
Exec=bash -xc '( curl -fL --connect-timeout 60 "https://github.com/MrAwesome/decktricks/releases/download/stable/decktricks_install.sh" | bash -x ) || ( set +x; echo "======="; echo; echo "[ERROR] Failed to install decktricks! Are you connected to the Internet? If this looks like a bug, please report it at: https://github.com/MrAwesome/decktricks/issues"; read )'
Icon=steamdeck-gaming-return
Terminal=true
Type=Application
Expand Down
11 changes: 11 additions & 0 deletions scripts/decktricks_install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#!/bin/bash

set -euxo pipefail

DTDIR="$HOME/.local/share/decktricks"
mkdir -p "$DTDIR"
cd "$DTDIR"
curl -L -O --progress-bar --output-dir /tmp --connect-timeout 60 "https://github.com/MrAwesome/decktricks/releases/download/stable/decktricks.tar.gz"
tar xvf /tmp/decktricks.tar.gz

mkdir -p "$HOME"/Desktop
ln -sf "$DTDIR"/decktricks.desktop "$HOME"/Desktop/

# TODO: Add to steam here!

0 comments on commit d67b83c

Please sign in to comment.