Diff of /codesys-ide/install2.sh [20f0d8] .. [f7b0bc]  Maximize  Restore

Switch to unified view

a/codesys-ide/install2.sh b/codesys-ide/install2.sh
...
...
21
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
21
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
22
# OR OTHER DEALINGS IN THE SOFTWARE.
22
# OR OTHER DEALINGS IN THE SOFTWARE.
23
#
23
#
24
################################################################################
24
################################################################################
25
25
26
WINE=wine-development
26
WINE=wine
27
WINESERVER=wineserver
27
CDS_LINK="https://store.codesys.com/ftp_download/3S/CODESYS/300000/3.5.16.0/CODESYS%203.5.16.0.exe"
28
CDS_LINK="https://store.codesys.com/ftp_download/3S/CODESYS/300000/3.5.16.0/CODESYS%203.5.16.0.exe"
28
TRICKS_LINK="https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks"
29
TRICKS_LINK="https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks"
29
ADDITIONAL_PACKAGES=https://forge.codesys.com/svn/tol,cforge,code/trunk/cforge.package
30
ADDITIONAL_PACKAGES=https://forge.codesys.com/svn/tol,cforge,code/trunk/cforge.package
30
export WINEPREFIX=~/.wine.cds
31
export WINEPREFIX=~/.wine.cds
31
export WINEARCH=win32
32
export WINEARCH=win32
...
...
51
{
52
{
52
    echo -n "Checking prerequisite '${WINE}'"
53
    echo -n "Checking prerequisite '${WINE}'"
53
    if which ${WINE}; then
54
    if which ${WINE}; then
54
    echo "=> OK"
55
    echo "=> OK"
55
    else
56
    else
56
    echo "ERROR: Please install wine32-development and wine64-development"
57
    echo "ERROR: Please install wine32 and wine64"
57
    exit 1
58
    exit 1
58
    fi
59
    fi
59
    echo -n "Checking prerequisite 'msiextract'"
60
    echo -n "Checking prerequisite 'msiextract'"
60
    if which msiextract; then
61
    if which msiextract; then
61
    echo "=> OK"
62
    echo "=> OK"
...
...
75
}
76
}
76
77
77
function winetricks
78
function winetricks
78
{
79
{
79
    ./winetricks nocrashdialog
80
    ./winetricks nocrashdialog
80
    wineserver-development -w
81
    ${WINESERVER} -w
81
    ./winetricks dotnet46
82
    ./winetricks dotnet46
82
    wineserver-development -w
83
    ${WINESERVER} -w
83
}
84
}
84
85
85
function winetricks_silent
86
function winetricks_silent
86
{
87
{
87
    ./winetricks nocrashdialog
88
    ./winetricks nocrashdialog
88
    wineserver-development -w
89
    ${WINESERVER} -w
89
    ./winetricks -q dotnet46
90
    ./winetricks -q dotnet46
90
    wineserver-development -w
91
    ${WINESERVER} -w
91
}
92
}
92
93
93
function install
94
function install
94
{
95
{
95
    WINEPREFIX=~/.wine.cds wine-development ./setup.exe /s /x /b"C:\tmp" /v"/qn"
96
    WINEPREFIX=~/.wine.cds wine ./setup.exe /s /x /b"C:\tmp" /v"/qn"
96
    (
97
    (
97
    wineserver-development -w
98
    ${WINESERVER} -w
98
    cd ~/.wine.cds/drive_c/tmp
99
    cd ~/.wine.cds/drive_c/tmp
99
    msiextract *.msi
100
    msiextract *.msi
100
    mv Program*/CODESYS* ../CODESYS
101
    mv Program*/CODESYS* ../CODESYS
101
    mv CommonAppData/CODESYS/* ../CODESYS/CODESYS/
102
    mv CommonAppData/CODESYS/* ../CODESYS/CODESYS/
102
    )
103
    )
103
}
104
}
104
105
105
function post_install
106
function post_install
106
{
107
{
107
    ${WINE} reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\S-1-5-21-0-0-0-1000"
108
    ${WINE} reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\S-1-5-21-0-0-0-1000"
108
    wineserver-development -w
109
    ${WINESERVER} -w
109
}
110
}
110
111
111
no_check="y"
112
no_check="y"
112
no_dl="y"
113
no_dl="y"
113
no_winetricks="y"
114
no_winetricks="y"