Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd "%~dp0"
- 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"
- powershell -executionpolicy remotesigned -Command "Invoke-WebRequest https://slproweb.com/download/Win64OpenSSL_Light-1_1_0k.exe -OutFile Win64OpenSSL_Light-1_1_0k.exe"
- powershell -executionpolicy remotesigned -Command "Invoke-WebRequest https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile vc_redist.x64.exe"
- powershell -executionpolicy remotesigned -Command "Invoke-WebRequest https://www.7-zip.org/a/7za920.zip -OutFile 7za920.zip"
- 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"
- powershell -executionpolicy remotesigned -command "Expand-Archive 7za920.zip"
- powershell -executionpolicy remotesigned -command "Expand-Archive curl-7.65.3.zip"
- 7za920\7za.exe x gvsbuild-vs14-x64.tar.gz
- mkdir C:\gvsbuild
- 7za920\7za.exe x gvsbuild-vs14-x64.tar -oC:\gvsbuild
- curl-7.65.3\src\curl.exe -kO https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe
- reg export "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" C:\Windows\Temp\pathenv-bak.reg /y
- python-3.6.8-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
- vc_redist.x64.exe /quiet /norestart
- Win64OpenSSL_Light-1_1_0k.exe /verysilent /norestart
- set PATH=C:\Program Files\Python36\Scripts;C:\Program Files\Python36;%PATH%
- pip.exe install C:\gvsbuild\release\python\pycairo-1.18.0-cp36-cp36m-win_amd64.whl
- pip.exe install C:\gvsbuild\release\python\PyGObject-3.32.0-cp36-cp36m-win_amd64.whl
- pip.exe install https://builds.golem.network/packages/packages/Twisted-19.2.1-cp36-cp36m-win_amd64.whl
- pip.exe install https://download.lfd.uci.edu/pythonlibs/n5jyqt7p/setproctitle-1.1.10-cp36-cp36m-win_amd64.whl
- pip.exe install deluge deluge-libtorrent
- setx /M PATH "C:\gvsbuild\release\bin;%PATH%"
- 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()"
- 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()"
- (
- echo Const DESKTOP = ^&H10^&
- echo Set objShell = CreateObject^("Shell.Application"^)
- echo Set objFolder = objShell.NameSpace^(DESKTOP^)
- echo Set objFolderItem = objFolder.ParseName^("Deluge-2.0.lnk"^)
- echo Set objShortcut = objFolderItem.GetLink
- echo objShortcut.SetIconLocation "C:\Program Files\Python36\Lib\site-packages\deluge\ui\data\pixmaps\deluge.ico", 0
- echo objShortcut.Save
- ) > icon1.vbs
- (
- echo Const DESKTOP = ^&H10^&
- echo Set objShell = CreateObject^("Shell.Application"^)
- echo Set objFolder = objShell.NameSpace^("C:\ProgramData\Microsoft\Windows\Start Menu\Programs"^)
- echo Set objFolderItem = objFolder.ParseName^("Deluge-2.0.lnk"^)
- echo Set objShortcut = objFolderItem.GetLink
- echo objShortcut.SetIconLocation "C:\Program Files\Python36\Lib\site-packages\deluge\ui\data\pixmaps\deluge.ico", 0
- echo objShortcut.Save
- ) > icon2.vbs
- icon1.vbs
- icon2.vbs
- mkdir C:\gvsbuild\release\etc\gtk-3.0
- (
- echo [Settings]
- echo gtk-theme-name=win32
- ) > C:\gvsbuild\release\etc\gtk-3.0\settings.ini
- 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
- rd /s /q 7za920 curl-7.65.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement