This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rockerbacon
committed
May 11, 2019
1 parent
2f0a8ea
commit c01adc9
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
#### determine Skyrim prefix and Steam folder | ||
if [ "$SKYRIM_PREFIX" == "" ]; then | ||
if [ -d "$HOME/.steam" ]; then | ||
STEAM_FOLDER="$HOME/.steam/steam" | ||
SKYRIM_PREFIX="$HOME/.steam/steam/steamapps/compatdata/489830/pfx" | ||
elif [ -d "$HOME/.local/share/Steam" ]; then | ||
STEAM_FOLDER="$HOME/.local/share/Steam" | ||
SKYRIM_PREFIX="$HOME/.local/share/Steam/steamapps/compatdata/489830/pfx" | ||
fi | ||
|
||
if [ ! -d "$SKYRIM_PREFIX" ]; then | ||
echo "Could not find prefix Skyrim Special Edition" | ||
exit -1 | ||
fi | ||
fi | ||
|
||
#### determine Vortex prefix | ||
if [ "$VORTEX_PREFIX" == "" ]; then | ||
CURRENT_FOLDER=$(dirname $BASH_SOURCE) | ||
VORTEX_PREFIX="$CURRENT_FOLDER/.." | ||
fi | ||
|
||
#### ensure required directories exist and are ready to receive the symlinks | ||
SKYRIM_MY_GAMES="$SKYRIM_PREFIX/drive_c/users/steamuser/My Documents/My Games" | ||
mkdir -p "$SKYRIM_MY_GAMES/Skyrim Special Edition" | ||
SKYRIM_APP_DATA="$SKYRIM_PREFIX/drive_c/users/steamuser/Local Settings/Application Data" | ||
mkdir -p "$SKYRIM_APP_DATA/Skyrim Special Edition" | ||
|
||
VORTEX_MY_GAMES="$VORTEX_PREFIX/drive_c/users/$USER/My Documents/My Games" | ||
rm -rf "$VORTEX_MY_GAMES/Skyrim Special Edition" | ||
mkdir -p "$VORTEX_MY_GAMES" | ||
VORTEX_APP_DATA="$VORTEX_PREFIX/drive_c/users/$USER/Local Settings/Application Data" | ||
rm -rf "$VORTEX_APP_DATA/Skyrim Special Edition" | ||
mkdir -p "$VORTEX_APP_DATA" | ||
VORTEX_PROGRAM_FILES="$VORTEX_PREFIX/drive_c/Program Files (x86)" | ||
rm -rf "$VORTEX_PROGRAM_FILES/Steam" | ||
mkdir -p "$VORTEX_PROGRAM_FILES" | ||
|
||
#### add symlikns between Skyrim's prefix and vortex's | ||
ln -s "$SKYRIM_MY_GAMES/Skyrim Special Edition" "$VORTEX_MY_GAMES/Skyrim Special Edition" | ||
ln -s "$SKYRIM_APP_DATA/Skyrim Special Edition" "$VORTEX_APP_DATA/Skyrim Special Edition" | ||
ln -s "$STEAM_FOLDER" "$VORTEX_PROGRAM_FILES/Steam" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Vortex | ||
game_slug: vortex-mod-manager | ||
slug: vortex-mod-manager | ||
version: 0.17.11 | ||
runner: wine | ||
|
||
script: | ||
files: | ||
- setup: https://github.com/Nexus-Mods/Vortex/releases/download/v0.17.11/vortex-setup-0.17.11.exe | ||
- symlinks_setup_zip: https://gist.github.com/rockerbacon/97e3760a509d49a098bab38bbd6b0e89/archive/9aa57c148615b03f7c593b8ef8d41c3ab9e5c003.zip | ||
game: | ||
exe: drive_c/Program Files/Black Tree Gaming Ltd/Vortex/Vortex.exe | ||
prefix: $GAMEDIR | ||
installer: | ||
- extract: | ||
file: symlinks_setup_zip | ||
dst: $GAMEDIR/install_scripts | ||
- chmodx: $GAMEDIR/install_scripts/vortex-symlink-sse.sh | ||
- execute: | ||
file: $GAMEDIR/install_scripts/vortex-symlink-sse.sh | ||
env: | ||
VORTEX_PREFIX: $GAMEDIR | ||
- task: | ||
name: winetricks | ||
prefix: $GAMEDIR | ||
app: win10 dotnet46 | ||
description: Installing .NET 4.6 | ||
- task: | ||
name: set_regedit | ||
prefix: $GAMEDIR | ||
path: HKEY_LOCAL_MACHINE\Software\Bethesda Softworks\Skyrim Special Edition | ||
type: REG_SZ | ||
key: "Installed Path" | ||
value: "c:\\program files (x86)\\steam\\steamapps\\common\\skyrim special edition" | ||
- task: | ||
name: wineexec | ||
prefix: $GAMEDIR | ||
executable: setup | ||
wine: | ||
version: tkg-4.0-x86_64 | ||
|