Skip to content

Commit

Permalink
origin: Updated workaround to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx committed Feb 16, 2024
1 parent a9a5567 commit d8d1560
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -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_
<?xml version="1.0"?>
<Settings>
<Setting value="true" key="MigrationDisabled" type="1"/>
<Setting key="UpdateURL" value="http://joe.rilla" type="10"/>
<Setting key="AutoPatchGlobal" value="false" type="1"/>
<Setting key="AutoUpdate" value="false" type="1"/>
</Settings>
_EOF_

w_try_cd "${W_CACHE}/${W_PACKAGE}"
w_try "${WINE}" "${file1}" /NoLaunch ${W_OPT_UNATTENDED:+/SILENT}
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d8d1560

Please sign in to comment.