Unverified Commit bba005b8 authored by boogiewoogie's avatar boogiewoogie Committed by GitHub
Browse files

proton-ge-bin: Automate switching to new GE-Proton version after update

proton-ge-bin: Automate switching to new GE-Proton version after update

This changes the version as steam sees it to just be "GE-Proton", so after setting it once in the steam UI, it always points to the most recent version and doesn't have to be changed manually after updates anymore.
parent 34ed0c9c
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -25,7 +25,14 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    # Also leave some breadcrumbs in the file.
    echo "${finalAttrs.pname} should not be installed into environments. Please use programs.steam.extraCompatPackages instead." > $out

    ln -s $src $steamcompattool
    mkdir $steamcompattool
    ln -s $src/* $steamcompattool
    rm $steamcompattool/{compatibilitytool.vdf,proton,version}
    cp $src/{compatibilitytool.vdf,proton,version} $steamcompattool

    sed -i -r 's|GE-Proton[0-9]*-[0-9]*|GE-Proton|' $steamcompattool/compatibilitytool.vdf
    sed -i -r 's|GE-Proton[0-9]*-[0-9]*|GE-Proton|' $steamcompattool/proton
    sed -i -r 's|GE-Proton[0-9]*-[0-9]*|GE-Proton|' $steamcompattool/version

    runHook postBuild
  '';