forked from CastroFidel/winehelper
Compare commits
1 Commits
extract_ic
...
ais
Author | SHA1 | Date | |
---|---|---|---|
a1097b9ecc |
BIN
image/ais.png
Normal file
BIN
image/ais.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
24
manualinstall/ais
Normal file
24
manualinstall/ais
Normal file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# info_ru:
|
||||
########################################################################
|
||||
export WH_WINE_USE="wine_x_tkg_10-0_i586"
|
||||
export WINEPREFIX="ais"
|
||||
export PROG_NAME="AIS LPU Client"
|
||||
export PROG_ICON="ais"
|
||||
export BASE_PFX="none"
|
||||
export WH_WINDOWS_VER="7"
|
||||
export WINEARCH="win32"
|
||||
export INSTALL_DLL="dotnet35sp1 7zip vcrun2005 vcrun2008 mfc42"
|
||||
export WH_USE_EXTRA_FONTS="1"
|
||||
|
||||
if [[ -f "$2" ]] ; then
|
||||
prepair_wine
|
||||
|
||||
wine_run_install "$2" /q
|
||||
|
||||
WIN_FILE_EXEC="$DRIVE_C/Program Files/Vitacore/AIS LPU Client/AKUZ.UserArm.exe"
|
||||
create_desktop "$PROG_NAME" "$WIN_FILE_EXEC" "$PROG_ICON"
|
||||
else
|
||||
fatal "Не найден файл установки для $PROG_NAME. Перезапустите по примеру:
|
||||
winehelper install $1 \"/путь/до/установочного_файла\""
|
||||
fi
|
35
winehelper
35
winehelper
@ -483,41 +483,6 @@ var_ld_library_path_update () {
|
||||
return 0
|
||||
}
|
||||
|
||||
extract_icon() {
|
||||
check_prefix_var
|
||||
local exe_file="$1"
|
||||
local ico_name="$(basename "$exe_file" .exe).ico"
|
||||
local png_name="$(basename "$exe_file" .exe).png"
|
||||
local tmp_ico_dir="$WH_TMP_DIR/icons"
|
||||
local user_icons="$WINEPREFIX/icons"
|
||||
|
||||
create_new_dir "$tmp_ico_dir"
|
||||
|
||||
if ! wrestool -x -t 14 "$exe_file" -o "$tmp_ico_dir/$ico_name" ; then
|
||||
print_warning "Не удалось извлечь иконку из $exe_file"
|
||||
try_remove_file "$tmp_ico_dir"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! icotool -x -i 1 "$tmp_ico_dir/$ico_name" -o "$tmp_ico_dir/$png_name" ; then
|
||||
print_warning "Не удалось извлечь иконку из $ico_name"
|
||||
try_remove_file "$tmp_ico_dir"
|
||||
return 1
|
||||
fi
|
||||
|
||||
create_new_dir "$user_icons"
|
||||
|
||||
if ! try_copy_file "$tmp_ico_dir/$png_name" "$user_icons" ; then
|
||||
print_warning "Не удалось копировать иконку в префикс"
|
||||
try_remove_file "$user_icons"
|
||||
return 1
|
||||
fi
|
||||
|
||||
try_remove_dir "$tmp_ico_dir"
|
||||
print_ok "Иконка сохранена: $user_icons/$png_name"
|
||||
return 0
|
||||
}
|
||||
|
||||
create_desktop () {
|
||||
local name_desktop exe_file desktop_filename icon_file desktop_path
|
||||
name_desktop="$1"
|
||||
|
Reference in New Issue
Block a user