source: ogAgent-Git/windows/pyinstaller-wine.sh @ e777421

browser-nuevodecorare-oglive-methodsexec-ogbrowserfix-urlfixes-winlgromero-filebeatlog-sess-lenmainmodulesnew-browserno-ptt-paramno-tlsogadmcliogadmclient-statusogagent-jobsogagent-macosogcore1oggitoggit-notlsoglogoglog2override-moduleping1ping2ping3ping4py3-winpython3report-progresssched-tasktlstls-againunification2unification3versionswindows-fixes
Last change on this file since e777421 was 7521269, checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago

#940: Prepare OGAgent for Windows builder

  • Property mode set to 100755
File size: 1.8 KB
Line 
1#!/bin/sh
2
3# We need:
4# * Wine (64 bit)
5# * winetricks (in some distributions)
6
7export WINEARCH=win64 WINEPREFIX=$PWD/wine WINEDEBUG=fixme-all
8WINE=wine
9
10# Get needed software
11download() {
12    mkdir -p downloads
13    cd downloads
14    wget -nd https://www.python.org/ftp/python/3.7.7/python-3.7.7-amd64.exe -O python3.msi
15    wget -nd https://download.visualstudio.microsoft.com/download/pr/5e397ebe-38b2-4e18-a187-ac313d07332a/00945fbb0a29f63183b70370043e249218249f83dbc82cd3b46c5646503f9e27/vs_BuildTools.exe
16    wget -nd https://prdownloads.sourceforge.net/nsis/nsis-3.05-setup.exe?download -O nsis-install.exe
17    wget -nd http://nsis.sourceforge.net/mediawiki/images/d/d7/NSIS_Simple_Firewall_Plugin_1.20.zip
18    cd ..
19}
20
21install_python() {
22    cd downloads
23    echo "Installing python"
24    $WINE python3.msi /quiet TargetDir=C:\\Python37 PrependPath=1
25    echo "Installing Build Tools for Visual Studio"
26    $WINE vs_BuildTools.exe
27    echo "Installing NSIS (needs X?)"
28    $WINE nsis-install.exe /S
29    cd ..
30}
31
32setup_pip() {
33    echo "Setting up pip and setuptools"
34    $WINE pip install --upgrade pip
35    $WINE pip install --upgrade setuptools
36}
37
38install_packages() {
39    echo "Installing PyQt5"
40    $WINE pip install PyQt5
41    echo "Installing required packages"
42    $WINE pip install pycrypto requests six
43    # Using easy_install instead of pip to install pycrypto
44    $WINE pip install pycrypto
45    echo "Installing PyInstaller"
46    $WINE pip install PyInstaller
47    echo "Copying simple firewall plugin for nsis installer"
48    unzip -o downloads/NSIS_Simple_Firewall_Plugin_1.20.zip SimpleFC.dll -d $WINEPREFIX/drive_c/Program\ Files/NSIS/Plugins/x86-ansi/
49    unzip -o downloads/NSIS_Simple_Firewall_Plugin_1.20.zip SimpleFC.dll -d $WINEPREFIX/drive_c/Program\ Files/NSIS/Plugins/x86-unicode/
50}
51
52download
53install_python
54setup_pip
55install_packages
56
Note: See TracBrowser for help on using the repository browser.