Advertisement
Guest User

deluge-2.0-installer

a guest
Aug 13th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.64 KB | None | 0 0
  1. cd "%~dp0"
  2. powershell -executionpolicy remotesigned -Command "Invoke-WebRequest https://ci.appveyor.com/api/buildjobs/b0dfi4j9fiwuot2y/artifacts/gvsbuild-vs14-x64.tar.gz -OutFile gvsbuild-vs14-x64.tar.gz"
  3. powershell -executionpolicy remotesigned -Command "Invoke-WebRequest https://slproweb.com/download/Win64OpenSSL_Light-1_1_0k.exe -OutFile Win64OpenSSL_Light-1_1_0k.exe"
  4. powershell -executionpolicy remotesigned -Command "Invoke-WebRequest https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile vc_redist.x64.exe"
  5. powershell -executionpolicy remotesigned -Command "Invoke-WebRequest https://www.7-zip.org/a/7za920.zip -OutFile 7za920.zip"
  6. powershell -executionpolicy remotesigned -Command "Invoke-WebRequest https://dl.uxnr.de/build/curl/curl_winssl_msys2_mingw64_stc/curl-7.65.3/curl-7.65.3.zip -OutFile curl-7.65.3.zip"
  7. powershell -executionpolicy remotesigned -command "Expand-Archive 7za920.zip"
  8. powershell -executionpolicy remotesigned -command "Expand-Archive curl-7.65.3.zip"
  9. 7za920\7za.exe x gvsbuild-vs14-x64.tar.gz
  10. mkdir C:\gvsbuild
  11. 7za920\7za.exe x gvsbuild-vs14-x64.tar -oC:\gvsbuild
  12. curl-7.65.3\src\curl.exe -kO https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe
  13. reg export "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" C:\Windows\Temp\pathenv-bak.reg /y
  14. python-3.6.8-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
  15. vc_redist.x64.exe /quiet /norestart
  16. Win64OpenSSL_Light-1_1_0k.exe /verysilent /norestart
  17. set PATH=C:\Program Files\Python36\Scripts;C:\Program Files\Python36;%PATH%
  18. pip.exe install C:\gvsbuild\release\python\pycairo-1.18.0-cp36-cp36m-win_amd64.whl
  19. pip.exe install C:\gvsbuild\release\python\PyGObject-3.32.0-cp36-cp36m-win_amd64.whl
  20. pip.exe install https://builds.golem.network/packages/packages/Twisted-19.2.1-cp36-cp36m-win_amd64.whl
  21. pip.exe install https://download.lfd.uci.edu/pythonlibs/n5jyqt7p/setproctitle-1.1.10-cp36-cp36m-win_amd64.whl
  22. pip.exe install deluge deluge-libtorrent
  23. setx /M PATH "C:\gvsbuild\release\bin;%PATH%"
  24. powershell -executionpolicy remotesigned -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Deluge-2.0.lnk');$s.TargetPath='C:\Program Files\Python36\Scripts\deluge.exe';$s.Save()"
  25. powershell -executionpolicy remotesigned -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%userprofile%\Desktop\Deluge-2.0.lnk');$s.TargetPath='C:\Program Files\Python36\Scripts\deluge.exe';$s.Save()"
  26. (
  27. echo Const DESKTOP = ^&H10^&
  28. echo Set objShell = CreateObject^("Shell.Application"^)
  29. echo Set objFolder = objShell.NameSpace^(DESKTOP^)
  30. echo Set objFolderItem = objFolder.ParseName^("Deluge-2.0.lnk"^)
  31. echo Set objShortcut = objFolderItem.GetLink
  32. echo objShortcut.SetIconLocation "C:\Program Files\Python36\Lib\site-packages\deluge\ui\data\pixmaps\deluge.ico", 0
  33. echo objShortcut.Save
  34. ) > icon1.vbs
  35. (
  36. echo Const DESKTOP = ^&H10^&
  37. echo Set objShell = CreateObject^("Shell.Application"^)
  38. echo Set objFolder = objShell.NameSpace^("C:\ProgramData\Microsoft\Windows\Start Menu\Programs"^)
  39. echo Set objFolderItem = objFolder.ParseName^("Deluge-2.0.lnk"^)
  40. echo Set objShortcut = objFolderItem.GetLink
  41. echo objShortcut.SetIconLocation "C:\Program Files\Python36\Lib\site-packages\deluge\ui\data\pixmaps\deluge.ico", 0
  42. echo objShortcut.Save
  43. ) > icon2.vbs
  44. icon1.vbs
  45. icon2.vbs
  46. mkdir C:\gvsbuild\release\etc\gtk-3.0
  47. (
  48. echo [Settings]
  49. echo gtk-theme-name=win32
  50. ) > C:\gvsbuild\release\etc\gtk-3.0\settings.ini
  51. del /q /s 7za920.zip gvsbuild-vs14-x64.tar.gz gvsbuild-vs14-x64.tar python-3.6.8-amd64.exe Win64OpenSSL_Light-1_1_0k.exe vc_redist.x64.exe curl-7.65.3.zip icon1.vbs icon2.vbs
  52. rd /s /q 7za920 curl-7.65.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement