Merge branch 'minergenon-scadoffice'
68
autoinstall/scadoffice
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# info_ru: SCAD Office — это программный комплекс для расчёта строительных конструкций, с дополнением Apache OpenOffice. Apache OpenOffice - пакет офисного программного обеспечения для обработки текстов, электронных таблиц, презентаций, графики, баз данных и многого другого.
|
||||||
|
########################################################################
|
||||||
|
export WH_WINE_USE="wine_x_tkg_10-0_amd64"
|
||||||
|
export WINEPREFIX="scadoffice"
|
||||||
|
export BASE_PFX="none"
|
||||||
|
export WH_WINDOWS_VER="10"
|
||||||
|
export WINEARCH="win64"
|
||||||
|
export INSTALL_DLL="dotnet48 gdiplus vcrun6sp6 vcrun2005 vcrun2019 d3dx11_42 d3dx11_43 d3dx9 d3dcompiler_42 d3dcompiler_43 d3dcompiler_46 d3dcompiler_47 richtx32 riched30 riched20 msxml6"
|
||||||
|
|
||||||
|
ADDONS_PACK="${WH_TMP_DIR}/scadoffice_addons_v01.tar.xz"
|
||||||
|
ADDONS_PATH="${WH_TMP_DIR}/scadoffice_addons"
|
||||||
|
OFFICE_EXE="${ADDONS_PATH}/OpenOffice.exe"
|
||||||
|
OFFICE_PACK="${ADDONS_PATH}/OpenOffice"
|
||||||
|
AUTOINSTALL_SETUP="${ADDONS_PATH}/OpenOffice/setup.exe"
|
||||||
|
ADDONS_PATH_REG="${ADDONS_PATH}/REG"
|
||||||
|
ADDONS_PATH_MDAC="${ADDONS_PATH}/mdac64"
|
||||||
|
ADDONS_PATH_OPENSSH="${ADDONS_PATH}/OpenSSH"
|
||||||
|
AUTOINSTALL_EXE="${WH_TMP_DIR}/SCADOffice_11.exe"
|
||||||
|
DRIVE_C_SCADOFFICE="$DRIVE_C/SCAD Soft/SCADOffice/64"
|
||||||
|
|
||||||
|
prepair_wine
|
||||||
|
if try_download "https://scadhelp.ru/files/10/download" "${AUTOINSTALL_EXE}" ; then
|
||||||
|
create_new_dir "$DRIVE_C/SDATA"
|
||||||
|
create_new_dir "$DRIVE_C/SWORK"
|
||||||
|
wine_run_install "${AUTOINSTALL_EXE}" /auto /hide
|
||||||
|
|
||||||
|
# Определение всех программ, значков и исполняемых файлов
|
||||||
|
declare -a PROG_NAME=("Арбат" "Вест" "Глобальные настройки" "Декор" "Дискретная арматура" "Запрос" "Камин" "КоКон" "Комета" "Конструктор сечений" "Консул" "Конфигуратор лицензий" "Кристалл" "Кросс" "Куст" "Магнум" "Монолит" "Откос" "Пастернак" "Преобразование ед. измерений" "Cортамент металлопроката" "Расчет по формуле" "Редактор акселерограмм" "Редактор динамичности" "Редактор материалов" "Тонус" "Эквивалентное сечение" "SCAD++")
|
||||||
|
|
||||||
|
declare -a PROG_ICON=("arbat" "west" "globalsettings" "decor" "rebar" "underground" "comein" "cocon" "comet" "section" "consul" "configprotection" "kristall" "cross" "kust" "magnum" "monolit" "slope" "pasternak" "ucalc" "viewprof" "scalc" "acceledit" "betaedit" "materialsedit" "tonus" "sezam" "scadx")
|
||||||
|
|
||||||
|
declare -a WIN_FILE_EXEC=("${DRIVE_C_SCADOFFICE}/Arbat.exe" "${DRIVE_C_SCADOFFICE}/West.exe" "${DRIVE_C_SCADOFFICE}/GlobalSettings.exe" "${DRIVE_C_SCADOFFICE}/Decor.exe" "${DRIVE_C_SCADOFFICE}/ReBar.exe" "${DRIVE_C_SCADOFFICE}/UnderGround.exe" "${DRIVE_C_SCADOFFICE}/ComeIn.exe" "${DRIVE_C_SCADOFFICE}/CoCon.exe" "${DRIVE_C_SCADOFFICE}/Comet2.exe" "${DRIVE_C_SCADOFFICE}/Section.exe" "${DRIVE_C_SCADOFFICE}/Consul.exe" "${DRIVE_C_SCADOFFICE}/ConfigProtection.exe" "${DRIVE_C_SCADOFFICE}/Kristall.exe" "${DRIVE_C_SCADOFFICE}/Cross.exe" "${DRIVE_C_SCADOFFICE}/Kust2.exe" "${DRIVE_C_SCADOFFICE}/Magnum.exe" "${DRIVE_C_SCADOFFICE}/Monolit.exe" "${DRIVE_C_SCADOFFICE}/Slope.exe" "${DRIVE_C_SCADOFFICE}/Pasternak.exe" "${DRIVE_C_SCADOFFICE}/UCalc.exe" "${DRIVE_C_SCADOFFICE}/ViewProf.exe" "${DRIVE_C_SCADOFFICE}/SCalc.exe" "${DRIVE_C_SCADOFFICE}/AccelEdit.exe" "${DRIVE_C_SCADOFFICE}/BetaEdit.exe" "${DRIVE_C_SCADOFFICE}/MaterialsEdit.exe" "${DRIVE_C_SCADOFFICE}/Tonus.exe" "${DRIVE_C_SCADOFFICE}/Sezam.exe" "${DRIVE_C_SCADOFFICE}/SCADX.exe")
|
||||||
|
|
||||||
|
# Цикл для создания десктопных файлов
|
||||||
|
for i in "${!PROG_NAME[@]}"; do
|
||||||
|
create_desktop "${PROG_NAME[i]}" "${WIN_FILE_EXEC[i]}" "${PROG_ICON[i]}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
print_info "Установка дополнительных компонентов..."
|
||||||
|
|
||||||
|
if try_download "https://cloud.linux-gaming.ru/portproton/scadoffice_addons_v01.tar.xz" "${ADDONS_PACK}" ; then
|
||||||
|
create_new_dir "${ADDONS_PATH}"
|
||||||
|
unpack "${ADDONS_PACK}" "${ADDONS_PATH}"
|
||||||
|
7z x -y "${OFFICE_EXE}" -o"${OFFICE_PACK}"
|
||||||
|
wine_run_install "${AUTOINSTALL_SETUP}" /qn
|
||||||
|
|
||||||
|
wine_run regedit "${ADDONS_PATH_REG}"/*.reg
|
||||||
|
|
||||||
|
# Установка ODBC
|
||||||
|
rm -fR "$DRIVE_C/Program Files (x86)/Common Files/System"
|
||||||
|
cp -r "${ADDONS_PATH_MDAC}/System" "$DRIVE_C/Program Files (x86)/Common Files/System"
|
||||||
|
cp -r "${ADDONS_PATH_MDAC}"/*.* "$DRIVE_C/windows/system32/"
|
||||||
|
wine_run regedit "${ADDONS_PATH_MDAC}"/*.reg
|
||||||
|
|
||||||
|
# Установка SSH
|
||||||
|
cp -r "${ADDONS_PATH_OPENSSH}" "$DRIVE_C/windows/system32/"
|
||||||
|
|
||||||
|
export PROG_NAME1="OpenOffice"
|
||||||
|
export PROG_ICON1="openoffice"
|
||||||
|
|
||||||
|
WIN_FILE_EXEC1="$DRIVE_C/Program Files (x86)/OpenOffice 4/program/soffice.exe"
|
||||||
|
create_desktop "$PROG_NAME1" "$WIN_FILE_EXEC1" "$PROG_ICON1"
|
||||||
|
try_remove_dir "$ADDONS_PATH"
|
||||||
|
try_remove_file "$ADDONS_PACK"
|
||||||
|
try_remove_file "$AUTOINSTALL_EXE"
|
||||||
|
fi
|
BIN
image/acceledit.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
image/arbat.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
image/betaedit.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
image/cocon.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
image/comein.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
image/comet.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
image/configprotection.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
image/consul.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
image/cross.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
image/decor.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
image/globalsettings.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
image/kristall.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
image/kust.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
image/magnum.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
image/materialsedit.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
image/monolit.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
image/openoffice.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
image/pasternak.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
image/rebar.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
image/scadx.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
image/scalc.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
image/section.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
image/sezam.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
image/slope.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
image/tonus.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
image/ucalc.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
image/underground.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
image/viewprof.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
image/west.png
Normal file
After Width: | Height: | Size: 16 KiB |