Advertisement
hyperfang8

Netflix on PlayOnLinux

Nov 24th, 2012
7,530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. [ "$PLAYONLINUX" = "" ] && exit 0
  4. source "$PLAYONLINUX/lib/sources"
  5.  
  6. #i just change this number now...
  7. VERSION="17.0"
  8.  
  9.  
  10.  
  11. #language variables
  12. WAITSILVERLIGHT="Wait for silverlight installation to finish before presing next button..."
  13. WAITFIREFOX="Wait for firefox installation to finish before presing next button..."
  14. PLEASESELECTFILE="Please select the installation file to run."
  15. MOZILAINSTALATION="Mozilla Firefox installation"
  16. SILVERLIGHTINSTALATION="Silverlight installation"
  17. TITLE="Netflix for Mozilla"
  18. MOZILAINPROGRESS="Mozilla Firefox installation in progress."
  19. SILVERLIGHTINPROGRESS="Silverlight installation in progress."
  20. DONE="Instalation is done!"
  21.  
  22. POL_SetupWindow_Init
  23.  
  24. POL_SetupWindow_presentation "$TITLE" "Mozilla & Microsoft " "http://how-to.wikia.com/wiki/How_to_watch_Netflix_%28Watch_Instantly%29_in_Linux" "none" "$TITLE"
  25.  
  26. POL_Wine_SelectPrefix "MozillaFirefox"
  27. POL_Wine_PrefixCreate "1.5.18"
  28.  
  29. POL_System_TmpCreate "MozillaFirefox"
  30.  
  31. POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
  32.  
  33. if [ "$INSTALL_METHOD" = "LOCAL" ]
  34. then
  35.     POL_SetupWindow_browse "$PLEASESELECTFILE" "$MOZILAINSTALATION"
  36.     POL_SetupWindow_wait "$MOZILAINPROGRESS" "$MOZILAINSTALATION"
  37.     POL_Wine start /unix "$APP_ANSWER"
  38. elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  39. then
  40.     cd "$POL_System_TmpDir"
  41.     #i don't want to use "latest" version because that way i have to update my script every freaking time new version comes out :P
  42.     POL_Download "http://mirror3.mirrors.tds.net/pub/mozilla.org/firefox/releases/$VERSION/win32/en-US/Firefox Setup $VERSION.exe"
  43.     POL_SetupWindow_wait "$MOZILAINPROGRESS" "$MOZILAINSTALATION"
  44.     POL_Wine start /unix "$POL_System_TmpDir/Firefox Setup $VERSION.exe"
  45. fi
  46.     POL_SetupWindow_message "$WAITFIREFOX"
  47.  
  48.     cd "$POL_System_TmpDir"
  49.     POL_Download "http://silverlight.dlservice.microsoft.com/download/6/A/1/6A13C54D-3F35-4082-977A-27F30ECE0F34/10329.00/runtime/Silverlight.exe"
  50.     POL_SetupWindow_wait "$SILVERLIGHTINPROGRESS" "$SILVERLIGHTINSTALATION"
  51.     POL_Wine start /unix "$POL_System_TmpDir/Silverlight.exe"
  52.     POL_SetupWindow_message "$WAITSILVERLIGHT"
  53.  
  54. POL_System_TmpDelete
  55.  
  56. POL_Shortcut "firefox.exe" "Mozilla Firefox"
  57.  
  58. POL_SetupWindow_message "$DONE"
  59.  
  60. POL_SetupWindow_Close
  61. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement