POL_Install_origin

Informations

Creator Message
RobLoach

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 37040
Wine: System

Feedbacks

Description

Origin is digital distribution software from Electronic Arts that allows users to purchase games on the internet for PC and mobile platforms, and download them with the Origin client.

Warning: this function is currently (2015) broken. As of 2020, other projects than POL/POM v4 have working code, you may look at: POL/POM v5 (Phoenicis.org), Codeweavers.com, Lutris.net .

 

Tests reports (with only the Wine software): Appdb.winehq.org

Source code

  

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 26 April 2020 at 7:01
Dadu042
Moderator

Message

Comment added: Warning: this function is currently (2015) broken. As of 2020, other projects than POL/POM v4 have working code, you may look at: POL/POM v5 (Phoenicis.org), Codeweavers.com, Lutris.net .

Replies

Ronin DUSETTE Friday 30 January 2015 at 3:00
Ronin DUSETTE
Admin

Information

This update has been approved by the team.

Message

I tested it. It crashed with a bunch of QT dll errors (using a fresh 32-bit 1.7.35 virtual drive), and also gave an MD5 sum mismatch error when downloading "download" and before it tries to run it. This will need further testing, as it does not seem usable with the QT5 errors (which apparently have a patch) and the MD5 mismatch error.

Differences

@@ -1,20 +1 @@
-#!/bin/bash
-# PlayOnLinux Function: POL_Install_origin - Origin
-# Date : (2015-01-28)
-# Author : Rob Loach (http://robloach.net)
- 
-# Dependencies
-POL_Call POL_Install_corefonts
-POL_Call POL_Install_dotnet40
-POL_Call POL_Install_directx9
-POL_Function_FontsSmoothRGB
-POL_Wine_OverrideDLL "" "dwrite"
- 
-# Download and install Origin
-POL_System_TmpCreate "origin"
-cd "$POL_System_TmpDir"
-POL_Download "http://www.dm.origin.com/download" "e4abb51b92c4290081c806aae7be6e5e"
-POL_Wine_WaitBefore "Origin"
-POL_Wine start /unix "$POL_System_TmpDir/download"
-POL_Wine_WaitExit "Origin"
-POL_System_TmpDelete
\ No newline at end of file
+  
\ No newline at end of file

New source code

  

Replies

Friday 30 January 2015 at 3:01
Removed script from POL Install Components until it is fully tested, as with all of the errors it throws, it would be unwise to leave it available as broken.

Edited by RoninDusette

RobLoach Wednesday 28 January 2015 at 23:09
RobLoach

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Suggested from Ronin at http://www.playonmac.com/en/app-2267-Origin.html

Differences

@@ -0,0 +1,22 @@
+#!/bin/bash
+# PlayOnLinux Function: POL_Install_origin - Origin
+# Date : (2015-01-28)
+# Author : Rob Loach (http://robloach.net)
+[ "$PLAYONLINUX" = "" ] && exit 0
+
+# Dependencies
+POL_Wine_InstallFonts
+POL_Install_dotnet40
+POL_Install_directx9
+POL_Call POL_Install_corefonts
+POL_Function_FontsSmoothRGB
+POL_Wine_OverrideDLL "" "dwrite"
+
+# Download and install Origin
+POL_System_TmpCreate "origin"
+cd "$POL_System_TmpDir"
+POL_Download "http://www.dm.origin.com/download" "e4abb51b92c4290081c806aae7be6e5e"
+POL_Wine_WaitBefore "Origin"
+POL_Wine start /unix "$POL_System_TmpDir/download"
+POL_Wine_WaitExit "Origin"
+POL_System_TmpDelete

New source code

#!/bin/bash
# PlayOnLinux Function: POL_Install_origin - Origin
# Date : (2015-01-28)
# Author : Rob Loach (http://robloach.net)
[ "$PLAYONLINUX" = "" ] && exit 0

# Dependencies
POL_Wine_InstallFonts
POL_Install_dotnet40
POL_Install_directx9
POL_Call POL_Install_corefonts
POL_Function_FontsSmoothRGB
POL_Wine_OverrideDLL "" "dwrite"

# Download and install Origin
POL_System_TmpCreate "origin"
cd "$POL_System_TmpDir"
POL_Download "http://www.dm.origin.com/download" "e4abb51b92c4290081c806aae7be6e5e"
POL_Wine_WaitBefore "Origin"
POL_Wine start /unix "$POL_System_TmpDir/download"
POL_Wine_WaitExit "Origin"
POL_System_TmpDelete

Replies

Wednesday 28 January 2015 at 23:21
Looks good so far. You will want to do a couple of things, though:

You will want to remove line 5, as it will already be in the context of that virtual drive when running, so you can actually just delete that one. It will run as a function without it.

Also, depending on the version of Wine that the user is running, wine-mono comes installed by default ( I cannot remember which version that happened with. I want to say 1.5.17 and up, but I may be wrong.), and will interfere with .NET installing. You will want to remove wine-mono with POL_Call POL_Remove_winemono before you call POL_Install_dotnet40, so that they don't cross streams. Again, that is only for certain versions of Wine, so if you write a conditional statement that checks the POL_WINEVERSION currently in context, you can have the script decide whether or not to just install dontnet40, or run POL_Remove_winemono beforehand. Other than that, it looks good.
Wednesday 28 January 2015 at 23:52
All functions to install .NET versions already remove wine-mono on their own, so that's fine
Thursday 29 January 2015 at 0:02
Oh, ok. Well, there ya go. :)
Thursday 29 January 2015 at 3:13
Also, I don't believe that 'start /unix' needs to be used after 'POL_Wine'.

I am curious @petch: Is it required to prefix POL_Call before POL_Install calls? I always do (for instance, POL_Call POL_Install_wineasio), and I noticed that prefix is missing in the dependencies section. Will this make a difference, or should it be prefixed with POL_Call (or not) just for sake of syntax?
Thursday 29 January 2015 at 18:42
On a completely unrelated note, I miss git :-( .
Thursday 29 January 2015 at 19:08
I use Git daily. It is a life-saver. lol

@RobLoach. As soon as you make those small changes, we can approve the script. :)
Thursday 29 January 2015 at 20:06
POL_Call is the statement, POL_Install_* are the name of the scripts. Without POL_Call, Bash would simply not know what to do (ie download the script, check its GPG signature, then if it's ok source the downloaded script)
Anonymous
Thursday 29 January 2015 at 20:28
wine 1.7.35 has support for dotnet 4.5.2 so maybe that can be added to POL and this script.
Thursday 29 January 2015 at 21:11
That is what I figured. I just wanted to confirm. I have read the source front to back, and just wanted to make sure what I remember was accurate. :)
@steve723 - That is up to the scripter to do that and test it. Have no Origin anything, so I couldn't really test it with a game anyway.
Thursday 29 January 2015 at 21:11
So yeah. Corrections needed:

Remove line 5
Prefix "POL_Call" before all POL_Install_* calls
Anonymous
Thursday 29 January 2015 at 21:53
Another suggest for the script writer would be to add a test to see if the user is using a wine version below 1.7.35. If so then add the qt5 patch to enable Origin to download games and patch itself.
Thursday 29 January 2015 at 22:08
Ahhh. I was kind of thinking of that earlier. That is actually a good idea. At lease for the time-being, considering that Origin is broken on other versions.
Thursday 29 January 2015 at 23:11
You can do that, see for example POL_Install_dotnet40:
if VersionLower $(POL_Config_PrefixRead VERSION) 1.5.5; then ...
Friday 30 January 2015 at 2:20
https://gist.github.com/RobLoach/2fa65817e4d6ff199a41
Friday 30 January 2015 at 2:48
I will just add it in. Next time you can just hit contribute and submit it, though. :)

@petch. That is good to know.
Anonymous
Friday 30 January 2015 at 2:58
Trying to test it now.
Anonymous
Friday 30 January 2015 at 3:01
Can't seem to figure out how to test it. Is there a foulder I can copy it to? I saved it as a txt file.
Friday 30 January 2015 at 3:03
You would test this through the Install Components tab. It is not in there because It is broken. It throws errors left and right. QT5 errors and MD5 mismatch. It will need to be fixed before it is put it in as a function.
Anonymous
Friday 30 January 2015 at 3:16
Some one already added it but it failed when I tried it. I just saw Ronin's message. I'll delete the vd and wait for Ronin to say its fixed. I forgot I made an Origin script a while back. I saw it when I was coping the script from the git page.
Friday 30 January 2015 at 3:33
Yeah. I added it to just test it real quick, but it started giving a lot of issues, specifically the 2 that I had mentioned. When it has been tested more by the scripter and shown to work, we can get it added for everyone to use.
Anonymous
Friday 30 January 2015 at 6:42
sOUNDS GOOD.
Anonymous
Friday 30 January 2015 at 6:43
Sorry caps lock was on by accident.