Update setup script

This commit is contained in:
theonlyzac 2023-12-05 02:50:14 -05:00
parent 3b43a8a6c4
commit 6c6c1a3867
No known key found for this signature in database
GPG Key ID: CE00BFB298808799
6 changed files with 33 additions and 14 deletions

View File

@ -11,8 +11,10 @@ environment:
- CONFIGURATION: Release
install:
- sudo sh tools/install_dependencies.sh
- sudo sh tools/setup_prodg_linux.sh
- cd tools
- sudo sh install_dependencies.sh
- sh setup_prodg_linux.sh
- cd ..
build_script:
- make

5
scripts/prodg_env.reg Normal file
View File

@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"PS2_CPATH"="C:\\usr/local/sce/ee/gcc/lib/gcc-lib/ee/2.95.3/include;C:\\usr/local/sce/ee/gcc/ee/include;C:\\usr/local/sce/ee/gcc/include/g++-2;C:\\usr/local/sce/ee/include"
"PS2_DRIVE"="C"

7
scripts/run.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# Insert the paths to your PCSX2 executable and your copy of the game below
PCSX2_PATH=""
ISO_PATH=""
"$PCSX2_PATH" --nogui --console --gameargs="-d --debug" --elf="./SCUS_971.98" "$ISO_PATH"

View File

@ -21,32 +21,37 @@ download_and_check() {
wget -qP /tmp $1.b2
BASENAME=$(basename $1)
pushd /tmp >/dev/null
b2sum -c $BASENAME.b2 || die "b2sums failed to verify when downloading $1"
echo "b2sums verified, moving files out of /tmp"
b2sum -c /tmp/$BASENAME.b2 || die "b2sums failed to verify when downloading $1"
rm $BASENAME.b2 # No longer needed
mv $BASENAME $TOP
popd >/dev/null
echo "b2sums verified, moving files out of /tmp"
rm /tmp/$BASENAME.b2 # No longer needed
mv /tmp/$BASENAME $TOP
}
# downloads files without checking integrity
download() {
echo "Downloading $1..."
wget -qP /tmp $1
BASENAME=$(basename $1)
echo "moving files out of /tmp"
mv /tmp/$BASENAME $TOP
}
echo Starting ProDG setup script...
# download required files (registry + SDK package)
download_and_check "https://computernewb.com/~lily/sly1/prodg_env.reg"
download_and_check "https://computernewb.com/~lily/sly1/prodg_sce$SDK_VER.7z"
download "https://computernewb.com/~lily/sly1/prodg_sce$SDK_VER.7z"
# apply environment variables from the registry file
wine regedit prodg_env.reg
# Extract the SDK into the wine C drive root
echo "Extracting SDK to $WINE_ROOT..."
pushd $WINE_ROOT >/dev/null
7z x -y $TOP/prodg_sce$SDK_VER.7z
popd >/dev/null
7z x -y $TOP/prodg_sce$SDK_VER.7z -o$WINE_ROOT
echo "Removing temporary files..."
rm prodg_sce$SDK_VER.7z
rm prodg_env.reg
echo "Setup complete!"