forked from ChimeraOS/chimera-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-ge-proton
executable file
·42 lines (29 loc) · 875 Bytes
/
add-ge-proton
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
38
39
40
41
42
#! /bin/bash
set -e
pushd compat/tools
if [ -z "${1}" ]; then
echo "Please specify the GE Proton version to add."
echo "For example: '7-16'"
exit
fi
VERSION="${1}" # e.g. 7-16
NAME="GE-Proton${VERSION}"
TOOL_URL="https://github.com/GloriousEggroll/proton-ge-custom/releases/download/${NAME}/${NAME}.tar.gz"
SHA_URL="https://github.com/GloriousEggroll/proton-ge-custom/releases/download/${NAME}/${NAME}.sha512sum"
curl -L -O ${SHA_URL}
curl -L -O ${TOOL_URL}
TOOL_MD5SUM=`md5sum ${NAME}.tar.gz | cut -d' ' -f 1`
sha512sum -c ${NAME}.sha512sum
tar xf ${NAME}.tar.gz
cp ${NAME}/compatibilitytool.vdf .
cp ${NAME}/toolmanifest.vdf .
rm -rf ${NAME}
mkdir ${NAME}
mv toolmanifest.vdf compatibilitytool.vdf ${NAME}
echo "TOOL_URL=${TOOL_URL}
TOOL_MD5SUM=${TOOL_MD5SUM}
TOOL_CMD=proton" > ${NAME}/stub.info
rm ${NAME}.tar.gz
rm ${NAME}.sha512sum
git add ${NAME}
popd