Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

origin: Updated workaround to v3 #2188

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading