-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpost-install.sh
More file actions
executable file
·37 lines (29 loc) · 1.62 KB
/
Copy pathpost-install.sh
File metadata and controls
executable file
·37 lines (29 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
set -euxo pipefail
# Clean up data from old implementation
rm -rf ~/.vortex-linux/proton-builds/
rm -rf ~/.pikdum/steam-deck-master/vortex/vortex-linux
echo "Templating files..."
pushd ~/.pikdum/steam-deck-master/
find . -type f -name "*.in" -exec sh -c 'envsubst < "$1" > "${1%.in}" && chmod +x "${1%.in}"' _ {} \;
popd
ln -sf ~/.pikdum/steam-deck-master/update.desktop ~/Desktop/pikdum-update.desktop
if [ ! -f "$HOME/.local/share/applications/vortex.desktop" ]; then
echo "Creating Vortex install desktop shortcut..."
ln -s ~/.pikdum/steam-deck-master/vortex/install-vortex.desktop ~/Desktop/install-vortex.desktop || true
else
# update .desktop file to make sure it's up to date
cp ~/.pikdum/steam-deck-master/vortex/vortex.desktop ~/.local/share/applications/
echo "Creating Vortex desktop shortcuts..."
ln -sf ~/.local/share/applications/vortex.desktop ~/Desktop/
ln -sf ~/.pikdum/steam-deck-master/vortex/skyrim-post-deploy.desktop ~/Desktop/
ln -sf ~/.pikdum/steam-deck-master/vortex/skyrimle-post-deploy.desktop ~/Desktop/
ln -sf ~/.pikdum/steam-deck-master/vortex/fallout4-post-deploy.desktop ~/Desktop/
ln -sf ~/.pikdum/steam-deck-master/vortex/falloutnv-post-deploy.desktop ~/Desktop/
ln -sf ~/.pikdum/steam-deck-master/vortex/fallout3-post-deploy.desktop ~/Desktop/
ln -sf ~/.pikdum/steam-deck-master/vortex/oblivion-post-deploy.desktop ~/Desktop/
echo "Vortex is already installed, updating umu-launcher..."
~/.pikdum/steam-deck-master/vortex/install-umu.sh
fi
MOUNTPOINT="$(findmnt /dev/mmcblk0p1 -o TARGET -n)"
mkdir -p $MOUNTPOINT/vortex-downloads || true