From d8d15604bb7680bbf021f2ce388c92a6f903fe93 Mon Sep 17 00:00:00 2001 From: Dean M Greer <38226388+Gcenx@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:42:22 -0500 Subject: [PATCH] origin: Updated workaround to v3 --- src/winetricks | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/winetricks b/src/winetricks index 6f9894c7f..58ea1c63c 100755 --- a/src/winetricks +++ b/src/winetricks @@ -16740,14 +16740,27 @@ w_metadata origin apps \ year="2011" \ media="download" \ file1="OriginSetup.exe" \ - file2="version_v2.dll" \ + file2="version_v3.dll" \ installed_file1="${W_PROGRAMS_X86_WIN}/Origin/Origin.exe" \ homepage="https://www.origin.com/" load_origin() { w_download_to origin https://taskinoz.com/downloads/OriginSetup-10.5.119.52718.exe ed6ee5174f697744ac7c5783ff9021da603bbac42ae9836cd468d432cadc9779 OriginSetup.exe - w_download_to origin https://github.com/p0358/Fuck_off_EA_App/releases/download/v2/version.dll 5f0bbb15f7cff8540642c28739db0cd6b15e77e5935f4e6701351eea86d929ab version_v2.dll + w_download_to origin https://github.com/p0358/Fuck_off_EA_App/releases/download/v3/version.dll 6c2df238a5cbff3475527aa7adf1d8b76d4d2d1a33a6d62edd4749408305c2be version_v3.dll + + w_try_mkdir "${W_DRIVE_C}/ProgramData/Origin" + + w_warn "Stopping Origin from finding updates" + cat > "${W_DRIVE_C}/ProgramData/Origin/local.xml" <<_EOF_ + + + + + + + +_EOF_ w_try_cd "${W_CACHE}/${W_PACKAGE}" w_try "${WINE}" "${file1}" /NoLaunch ${W_OPT_UNATTENDED:+/SILENT} @@ -16781,7 +16794,7 @@ load_origin() fi w_warn "Workaround Forced EA app upgrade." - w_try cp -f "${W_CACHE}/${W_PACKAGE}/version_v2.dll" "${W_PROGRAMS_X86_UNIX}/Origin/version.dll" + w_try cp -f "${W_CACHE}/${W_PACKAGE}/version_v3.dll" "${W_PROGRAMS_X86_UNIX}/Origin/version.dll" w_override_app_dlls Origin.exe native version w_warn "Pretend EA app is installed"