Unverified Commit f5e0837e authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

proton-ge-bin: Automate switching to new GE-Proton version after update (#355066)

parents bb6efb84 95be31c1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -25,7 +25,13 @@ 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

    runHook postBuild
  '';