| a/codesys-ide/codesys | b/codesys-ide/codesys | ||
|---|---|---|---|
... |
... |
||
| 10 | profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile | head -n 1 | sed 's,.profile,,')") |
10 | profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile | head -n 1 | sed 's,.profile,,')") |
| 11 | 11 | ||
| 12 | # start ide? |
12 | # start ide? |
| 13 | if [ "${1}" == "ide" ]; then |
13 | if [ "${1}" == "ide" ]; then |
| 14 | export WINEPREFIX=~/.wine.cds |
14 | export WINEPREFIX=~/.wine.cds |
| 15 | export WINEDEBUG=-all |
||
| 15 | wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/test.py" --noUI |
16 | wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/test.py" --noUI |
| 16 | wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" |
17 | wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" |
| 17 | else |
18 | else |
| 18 | 19 | ||
| 19 | # check if file exists, before we call CODESYS with it |
20 | # check if file exists, before we call CODESYS with it |