VHSgunzo commited on
Commit
835440d
·
1 Parent(s): 003a3b6

v0.78.2.2

Browse files
Files changed (6) hide show
  1. CHANGELOG.md +10 -0
  2. lutris-wine +1 -1
  3. lux-wine +182 -191
  4. lwrap/PKGBUILD +2 -2
  5. lwrap/lwrap.install +24 -6
  6. main.zip +2 -2
CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  # v0.78.2.1
2
 
3
  * Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
 
1
+ # v0.78.2.2
2
+
3
+ * Add ability to create config for `msi`, `reg`, `bat` and `lnk`
4
+ * Update DB script for `The Honkers Railway` `v1.6.0`
5
+ * Update DB script for `Zona`
6
+ * Replace all GUI on `Zenity` with `YAD`
7
+ * Downgrade `Zenity` to `v3.44.2` in `lwrun`
8
+ * Temporary replace `mesa` with `mesa-tkg-git` in `lwrun` (mesa v23.3.2 is broken)
9
+ * Minor fixes
10
+
11
  # v0.78.2.1
12
 
13
  * Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
lutris-wine CHANGED
@@ -1 +1 @@
1
- LW_VERSION="0.78.2.1"
 
1
+ LW_VERSION="0.78.2.2"
lux-wine CHANGED
@@ -1,6 +1,6 @@
1
  #!/usr/bin/env bash
2
 
3
- export LW_VERSION="0.78.2.1"
4
  export LW_DEVELOPERS="VHSgunzo"
5
 
6
  export RED='\033[1;91m'
@@ -231,84 +231,78 @@ print_var() {
231
  }
232
 
233
  print_error() {
 
 
 
 
 
234
  if [[ "$1" == "yad" && -n "$2" && -n "$3" ]] || [[ "$1" == "notify" && -n "$2" && -n "$3" ]]
235
- then
236
- echo -e "${RED}[ ERROR ][$(date +"%Y.%m.%d %T")]: $3 $RESETCOLOR"
237
  elif [[ "$1" == "yad" && -n "$2" && ! -n "$3" ]] || [[ "$1" == "notify" && -n "$2" && ! -n "$3" ]]
238
- then
239
- echo -e "${RED}[ ERROR ][$(date +"%Y.%m.%d %T")]: $2 $RESETCOLOR"
240
- else
241
- echo -e "${RED}[ ERROR ][$(date +"%Y.%m.%d %T")]: $1 $RESETCOLOR"
242
  fi
243
  if [[ "$1" == "yad" && -n "$2" && -n "$3" && "$NO_YAD" != 1 ]]
244
- then
245
- yad --window-icon="$LW_DEF_ICO" --image="dialog-error" --button="OK:0" --title="$2" --text="$3" \
246
- --center --on-top --fixed --timeout="30" --timeout-indicator="top" --selectable-labels Lux Wine
247
  elif [[ "$1" == "yad" && -n "$2" && ! -n "$3" && "$NO_YAD" != 1 ]]
248
- then
249
- yad --window-icon="$LW_DEF_ICO" --image="dialog-error" --button="OK:0" --title="Lux Wine Error" \
250
- --text="$2" --center --on-top --fixed --timeout="30" --timeout-indicator="top" --selectable-labels Lux Wine
251
  elif [[ "$1" == "notify" && -n "$2" && -n "$3" && "$NO_NOTIFY" != 1 && "$NOT_TERM" == 1 ]]
252
- then
253
- notify-send -i "$LW_DEF_ICO" -a 'Lux Wine Error' "$2" "$3" &
254
  elif [[ "$1" == "notify" && -n "$2" && ! -n "$3" && "$NO_NOTIFY" != 1 && "$NOT_TERM" == 1 ]]
255
- then
256
- notify-send -i "$LW_DEF_ICO" -a 'Lux Wine Error' "$2" &
257
  fi
258
  }
259
 
260
  print_info() {
261
  if [ "$QUIET_MODE" != 1 ]
262
  then
 
 
 
 
 
263
  if [[ "$1" == "yad" && -n "$2" && -n "$3" ]] || [[ "$1" == "notify" && -n "$2" && -n "$3" ]]
264
- then
265
- echo -e "${GREEN}[ INFO ][$(date +"%Y.%m.%d %T")]: $3 $RESETCOLOR"
266
  elif [[ "$1" == "yad" && -n "$2" && ! -n "$3" ]] || [[ "$1" == "notify" && -n "$2" && ! -n "$3" ]]
267
- then
268
- echo -e "${GREEN}[ INFO ][$(date +"%Y.%m.%d %T")]: $2 $RESETCOLOR"
269
- else
270
- echo -e "${GREEN}[ INFO ][$(date +"%Y.%m.%d %T")]: $1 $RESETCOLOR"
271
  fi
272
  if [[ "$1" == "yad" && -n "$2" && -n "$3" && "$NO_YAD" != 1 ]]
273
- then
274
- yad --window-icon="$LW_DEF_ICO" --image="dialog-information" --button="OK:0" --title="$2" --text="$3" \
275
- --center --on-top --fixed --timeout="30" --timeout-indicator="top" --selectable-labels Lux Wine
276
  elif [[ "$1" == "yad" && -n "$2" && ! -n "$3" && "$NO_YAD" != 1 ]]
277
- then
278
- yad --window-icon="$LW_DEF_ICO" --image="dialog-information" --button="OK:0" --title="Lux Wine Info" \
279
- --text="$2" --center --on-top --fixed --timeout="30" --timeout-indicator="top" --selectable-labels Lux Wine
280
  elif [[ "$1" == "notify" && -n "$2" && -n "$3" && "$NO_NOTIFY" != 1 && "$NOT_TERM" == 1 ]]
281
- then
282
- notify-send -i "$LW_DEF_ICO" -a 'Lux Wine Info' "$2" "$3" &
283
  elif [[ "$1" == "notify" && -n "$2" && ! -n "$3" && "$NO_NOTIFY" != 1 && "$NOT_TERM" == 1 ]]
284
- then
285
- notify-send -i "$LW_DEF_ICO" -a 'Lux Wine Info' "$2" &
286
  fi
287
  fi
288
  }
289
 
290
  print_question() {
291
  [ "$NO_YAD" != 1 ]||return 0
 
 
 
 
 
292
  if [[ -n "$1" && -n "$2" ]]
293
- then
294
- yad --window-icon="$LW_DEF_ICO" --image="dialog-question" --button="NO:1" --button="YES:0" --title="$1" \
295
- --text="$2" --center --on-top --fixed --selectable-labels Lux Wine
296
  elif [[ -n "$1" && ! -n "$2" ]]
297
- then
298
- yad --window-icon="$LW_DEF_ICO" --image="dialog-question" --button="NO:1" --button="YES:0" \
299
- --title="Lux Wine Question" --text="$1" --center --on-top --fixed --selectable-labels Lux Wine
300
  fi
301
  }
302
 
303
  print_input() {
 
 
 
 
 
304
  if [[ -n "$1" && -n "$2" && -n "$3" ]]
305
- then
306
- yad --window-icon="$LW_DEF_ICO" --entry --button="EXIT:1" --button="OK:0" --title="$1" --text="$2" \
307
- --center --on-top --fixed --entry-text="$3"
308
  elif [[ -n "$1" && -n "$2" && ! -n "$3" ]]
309
- then
310
- yad --window-icon="$LW_DEF_ICO" --entry --button="EXIT:1" --button="OK:0" --title="Lux Wine Input" \
311
- --text="$1" --center --on-top --fixed --entry-text="$2"
312
  fi
313
  }
314
 
@@ -818,70 +812,60 @@ try_download() {
818
  }
819
 
820
  unpack_tar_xz() {
821
- set -o pipefail
822
  try_mkdir "$2"
823
  TAR_NAME="$(basename "$1")"
824
- tar -Jxf "$1" -C "$2"|settingbar_nostdout "Unpacking $TAR_NAME" "Unpacking $TAR_NAME is in progress. Please wait..."
825
- [ "${PIPESTATUS[0]}" != 0 ] && print_error "File $TAR_NAME unpacked with error!" && return 1 || return 0
 
826
  }
827
 
828
  unpack_tar_gz() {
829
- set -o pipefail
830
  try_mkdir "$2"
831
  TAR_NAME="$(basename "$1")"
832
- tar -xzvf "$1" -C "$2"|settingbar_nostdout "Unpacking $TAR_NAME" "Unpacking $TAR_NAME is in progress. Please wait..."
833
- [ "${PIPESTATUS[0]}" != 0 ] && print_error "File $TAR_NAME unpacked with error!" && return 1 || return 0
 
834
  }
835
 
836
  unpack_tar_zst() {
837
- set -o pipefail
838
  try_mkdir "$2"
839
  TAR_NAME="$(basename "$1")"
840
- tar --use-compress-program=unzstd -xvf "$1" -C "$2"|settingbar_nostdout "Unpacking $TAR_NAME" "Unpacking $TAR_NAME is in progress. Please wait..."
841
- [ "${PIPESTATUS[0]}" != 0 ] && print_error "File $TAR_NAME unpacked with error!" && return 1 || return 0
 
842
  }
843
 
844
  unpack_tar() {
845
  set -o pipefail
846
  try_mkdir "$2"
847
  TAR_NAME="$(basename "$1")"
848
- tar -xvf "$1" -C "$2"|settingbar_nostdout "$TAR_NAME" "Unpacking $TAR_NAME is in progress. Please wait..."
849
- [ "${PIPESTATUS[0]}" != 0 ] && print_error "File $TAR_NAME unpacked with error!" && return 1 || return 0
 
850
  }
851
 
852
  settingbar() {
853
- SETTBARKEY="$RANDOM"
854
- SETTOUTFILE="/tmp/lwsettout$SETTBARKEY"
855
- if [[ -n "$1" && -n "$2" ]]
856
- then
857
- tee "$SETTOUTFILE"|& zenity --window-icon="$LW_DEF_ICO_PTH" --progress --pulsate --auto-close \
858
- --width=650 --height=40 --no-cancel --title="$1" --text="$2" "$SETTBARKEY" Lux Wine &
859
- elif [[ -n "$1" && ! -n "$2" ]]
860
- then
861
- tee "$SETTOUTFILE"|& zenity --window-icon="$LW_DEF_ICO_PTH" --progress --pulsate --auto-close \
862
- --width=650 --height=40 --no-cancel --title="Settings" --text="$1" "$SETTBARKEY" Lux Wine &
863
- else
864
- tee "$SETTOUTFILE"|& zenity --window-icon="$LW_DEF_ICO_PTH" --progress --pulsate --auto-close \
865
- --width=650 --height=40 --no-cancel --title="Settings" --text="Updating parameters is in progress. Please wait..." "$SETTBARKEY" Lux Wine &
866
- fi
867
- sleep 0.1
868
- tail --pid="$!" -q -f "$SETTOUTFILE"
869
- try_rm "$SETTOUTFILE"
870
- }
871
-
872
- settingbar_nostdout() {
873
- if [[ -n "$1" && -n "$2" ]]
874
- then
875
- zenity --window-icon="$LW_DEF_ICO_PTH" --progress --pulsate --auto-close \
876
- --width=650 --height=40 --no-cancel --title="$1" --text="$2" Lux Wine
877
- elif [[ -n "$1" && ! -n "$2" ]]
878
- then
879
- zenity --window-icon="$LW_DEF_ICO_PTH" --progress --pulsate --auto-close \
880
- --width=650 --height=40 --no-cancel --title="Settings" --text="$1" Lux Wine
881
- else
882
- zenity --window-icon="$LW_DEF_ICO_PTH" --progress --pulsate --auto-close \
883
- --width=650 --height=40 --no-cancel --title="Settings" --text="Updating parameters is in progress. Please wait..." Lux Wine
884
- fi
885
  }
886
 
887
  shell_is_death() {
@@ -2646,12 +2630,12 @@ lite_init() {
2646
  export_all_functions
2647
  if ! [[ "${DEPRECATE_INIT[@]}" =~ "$1" ]] || [ ! -n "$1" ]
2648
  then
2649
- if [ ! -n "$SETT_INIT" ] && [[ -n "$(pgrep -fa 'zenity'|grep -w 'Runtime initialization'|awk '{print$1}')" \
2650
- || -n "$(pgrep -fa 'zenity'|grep -w 'Updating parameters'|awk '{print$1}')" ]]
2651
  then
2652
  print_info yad "Initialization is in progress! Please wait..."
2653
- while pgrep -fa 'zenity'|grep -w 'Runtime initialization' &>/dev/null ; do sleep 1 ; done
2654
- while pgrep -fa 'zenity'|grep -w 'Updating parameters' &>/dev/null ; do sleep 1 ; done
2655
  fi
2656
  [[ -n "$SETT_INIT" || "$1" == "-init" ]] && \
2657
  initbar && rm -rf "$LW_DIR/.lwcfgchksum"
@@ -3439,14 +3423,12 @@ lu_openpfx() { $LW_FLMGR "$WINEPREFIX/drive_c/" 2>/dev/null ; }
3439
  lu_exit() {
3440
  check_tray; check_wine_pids; check_exes; check_luwine_sh_pid
3441
  if [[ -n "$WINE_PIDS" || -n "$EXE_PIDS" || -n "$TRAY_PID" || -n "$LW_SH_PID" \
3442
- || -n "$(pgrep -fa 'yad'|grep 'Lux Wine'|awk '{print$1}')" \
3443
- || -n "$(pgrep -fa 'zenity'|grep 'Lux Wine'|awk '{print$1}')" ]]
3444
  then
3445
  touch /tmp/FORCE_EXIT
3446
  lu_killshell "$@"
3447
  lu_killexe
3448
  lu_killwine "$@"
3449
- kill $(pgrep -fa 'zenity'|grep 'Lux Wine'|awk '{print$1}') 2>/dev/null
3450
  kill $(pgrep -fa 'yad'|grep 'Lux Wine'|awk '{print$1}') 2>/dev/null
3451
  kill $(pgrep -fa 'Winetricks'|awk '{print$1}') 2>/dev/null
3452
  pkill winetricks 2>/dev/null
@@ -4125,15 +4107,18 @@ try_dl_install_wine() {
4125
 
4126
  get_wine_git_lst() {
4127
  [ -n "$WGUIDW" ]||local WGUIDW=$RANDOM
 
 
 
 
 
 
 
4128
  if [[ ! -n "$PGE_GIT_LIST" || ! -n "$WLU_GIT_LIST" || ! -n "$WK4_GIT_LIST" || ! -n "$WGE_GIT_LIST" ]]
4129
  then
4130
  catlist() { cat /tmp/${1}GITLIST$WGUIDW 2>/dev/null ; }
4131
  print_info notify "Сhecking new Wine versions on GitHub..."
4132
- (get_wlu_releases 1>"/tmp/WLUGITLIST$WGUIDW" &
4133
- get_pge_releases 1>"/tmp/PGEGITLIST$WGUIDW" &
4134
- get_wge_releases 1>"/tmp/WGEGITLIST$WGUIDW" &
4135
- get_wk4_releases 1>"/tmp/WK4GITLIST$WGUIDW" &
4136
- wait)|settingbar_nostdout "Сhecking GitHub" "Сhecking new Wine versions on GitHub..."
4137
  WLU_GIT_LIST="$(catlist 'WLU')"
4138
  PGE_GIT_LIST="$(catlist 'PGE')"
4139
  WGE_GIT_LIST="$(catlist 'WGE')"
@@ -4241,27 +4226,30 @@ lu_winemgr() {
4241
  }
4242
  if [ -n "$(echo "$WDEL_SET"|head -1)" ]
4243
  then
4244
- (IFS=$'\n' ; for WINE_DEL in $(echo "$WDEL_SET"|sedspaces)
4245
- do
4246
- if [[ -d "$LW_RUNTIME_DIR/dxvk/$WINE_DEL" \
4247
- || -d "$LW_RUNTIME_DIR/vkd3d/$WINE_DEL" \
4248
- || -d "$LW_RUNTIME_DIR/dxvk-nvapi/$WINE_DEL" ]]
4249
- then
4250
- if print_question "Remove DXVK, DXVK-NVAPI and VKD3D from ${WINE_DEL}?"
4251
- then
4252
- rm_pd3dll
4253
- sed -i "/DXVK_NVAPI_VERSION='$WINE_DEL'/d;/DXVK_VERSION='$WINE_DEL'/d;/VKD3D_VERSION='$WINE_DEL'/d" "$LW_CFG" 2>/dev/null
4254
- print_info notify "Removing DXVK, DXVK-NVAPI and VKD3D from $WINE_DEL completed!"
4255
- else
4256
- rm_pd3dll
4257
- WINE_VERSION="$WINE_DEL" WINEDIR="$LW_WINE_DIR/$WINE_DEL" get_proton_d3dlib 'cp'
4258
- unset P_DXVK P_NVAPI P_VKD3D
4259
- fi
4260
- fi
4261
- try_rm "$LW_WINE_DIR/$WINE_DEL"
4262
- print_info notify "Removing $WINE_DEL completed!"
4263
- [ "$WINE_VERSION" == "$WINE_DEL" ] && touch "/tmp/WINEINUSEDEL$WGUIDW"
4264
- done)|settingbar "Wine Manager" "Deletion is in progress. Please wait..."
 
 
 
4265
  if [ -f "/tmp/WINEINUSEDEL$WGUIDW" ]
4266
  then
4267
  if [[ -n "$(ls -1 -t "$LW_WINE_DIR" 2>/dev/null|grep -v '.*.tar.*'|head -1)" || -n "$SYS_WINE" ]]
@@ -5679,8 +5667,7 @@ lu_update() {
5679
  LWRUNTIMELST="dxvk vkd3d dxvk-nvapi wine_nvml d3d_extras dgvoodoo2 battleye_runtime eac_runtime winetricks"
5680
  check_winepfx
5681
  if [ "$2" == "all" ]
5682
- then
5683
- upd_all|settingbar "Runtime Updater" "Updating Lux Wine Runtime is in progress. Please wait..."
5684
  elif [[ ! -n "$2" || "$2" == "openupdtr" ]]
5685
  then
5686
  if [ ! -n "$(pgrep -fa yad|grep "Runtime Updater"|awk '{print$1}')" ]; then :
@@ -5693,64 +5680,70 @@ lu_update() {
5693
  --text-align=center --center --window-icon="$LW_DEF_ICO" \
5694
  --width=400 --height=500 --button="UPDATE ALL:2" --button="EXIT:1" --button="OK:0" 2>/dev/null)"
5695
  if [ "$?" == "2" ]
5696
- then
5697
- upd_all|settingbar "Runtime Updater" "Updating Lux Wine Runtime is in progress. Please wait..."
5698
  elif [ -n "$(echo "$LW_RUN_UPD"|head -1)" ]
5699
  then
5700
  LW_RUN_UPD="$(echo "$LW_RUN_UPD"|sed '/^TRUE$/d'|sed '/^$/d')"
5701
- (IFS=$'\n' ; for LWRUNUPD in $LW_RUN_UPD
5702
- do
5703
- case "$LWRUNUPD" in
5704
- battleye_runtime) upd_battleye &
5705
- sleep 0.2 ;;
5706
- eac_runtime) upd_eac &
5707
- sleep 0.2 ;;
5708
- d3d_extras) upd_d3d_extras &
5709
- sleep 0.2 ;;
5710
- dgvoodoo2) upd_dgvoodoo2 &
5711
- sleep 0.2 ;;
5712
- dxvk) upd_dxvk &
5713
- sleep 0.2 ;;
5714
- dxvk-nvapi) upd_dxvk_nvapi &
5715
  sleep 0.2 ;;
5716
- vkd3d) upd_vkd3d &
5717
- sleep 0.2 ;;
5718
- wine_nvml) upd_wine_nvml &
5719
- sleep 0.2 ;;
5720
- winetricks) upd_winetricks &
 
 
5721
  sleep 0.2 ;;
5722
- esac
5723
- done
5724
- wait)|settingbar "Runtime Updater" "Updating Lux Wine Runtime is in progress. Please wait..."
 
 
 
 
5725
  print_info notify "Runtime update completed!"
5726
  fi
5727
  else
5728
- (while [[ -n "$2" ]]
5729
- do
5730
- case "$2" in
5731
- bat|battleye|battleye_runtime) upd_battleye &
5732
- sleep 0.2 ;;
5733
- eac|eac_runtime) upd_eac &
5734
- sleep 0.2 ;;
5735
- d3d|d3d_extras|d3d-extras) upd_d3d_extras &
5736
- sleep 0.2 ;;
5737
- dg|dgvoodoo2) upd_dgvoodoo2 &
5738
- sleep 0.2 ;;
5739
- dx|dxvk) upd_dxvk &
5740
- sleep 0.2 ;;
5741
- dxnv|dxvk-nvapi|dxvk_nvapi) upd_dxvk_nvapi &
5742
  sleep 0.2 ;;
5743
- vkd|vkd3d) upd_vkd3d &
5744
- sleep 0.2 ;;
5745
- nvml|wine_nvml) upd_wine_nvml &
5746
  sleep 0.2 ;;
5747
- wtrx|winetricks) upd_winetricks &
5748
- sleep 0.2 ;;
5749
- *) print_error "Invalid argument: '$2'" ;;
5750
- esac
5751
- shift
5752
- done
5753
- wait)|settingbar "Runtime Updater" "Updating Lux Wine Runtime is in progress. Please wait..."
 
 
 
 
 
 
 
 
 
 
5754
  print_info notify "Runtime update completed!"
5755
  fi
5756
  }
@@ -5868,7 +5861,7 @@ export_all_functions() {
5868
  export SORTU="sort -u"
5869
  export -f print_var print_error print_info check_tray check_wine_pids check_luwine_pid check_vkd3dconfig try_rm check_themes import_cenv sedspaces \
5870
  check_luwine_sh_pid check_exes check_compositor try_mkdir check_symlink check_netcore try_download check_cpu_limit ld_lib_upd wait_kill_exe \
5871
- unpack_tar_xz unpack_tar_gz unpack_tar settingbar shell_is_death exe_is_death exes_is_death wine_is_death try_cp check_us_switcher check_proton_d3dlib \
5872
  compositor_sw check_winetricks check_musthave_dll check_other_fixes wdllover_upd reg_edit exe2png gamma_sw vkd3dcfg_upd check_downloader \
5873
  create_shortcut lu_debug clear_log dis_debug_msg dis_cmd_msg import_luwine_wcfg check_def_wine lu_prerun lu_run lu_prestart try_mv path_upd select_lwpfx \
5874
  lu_start lu_cmd lu_shell lu_regedit lu_control lu_winecfg lu_taskmgr lu_uninstaller winetricks lu_openpfx lu_exit lu_killshell check_dxr winepfx_init \
@@ -5880,7 +5873,7 @@ export_all_functions() {
5880
  runtime_manager upd_battleye is_exe_exist which_exe try_ln_wine_build_dll find_vk_icd btntls_run get_app_exe check_driprime greptardlurl get_wlu_releases \
5881
  upd_d3d_extras upd_dgvoodoo2 upd_dxvk upd_dxvk_nvapi upd_vkd3d upd_all is_loadbar lu_runapp lu_lsapp set_wine_version get_pge_releases get_wge_releases \
5882
  check_wined3d check_vkbasalt_eff check_luwine_wcfg_cenv check_videodrv check_startfile check_def_config get_wk4_releases \
5883
- settingbar_nostdout check_freespace initbar check_network_status print_question print_input loadbar_cover check_first_run check_eac check_loadbar_cover \
5884
  check_db_script stop_loadbar check_wmonover wmonover_upd check_exe_wcfg_cenv lu_appcfg try_fix_wrtx try_shutdown_wine check_steamapps is_winepfx \
5885
  check_display check_restore_resol resol_sw check_restore_gamma dis_displ_sw restore_resol check_virt_desktop check_vkbasalt_cfg exeargs_upd check_exe_args \
5886
  check_wine_nvml check_resizable_bar check_latencyflex get_proton_d3dlib makesquash_zstd makesquash_xz lu_pfxbackup lu_pfxrestore lu_backupmnt lu_backupunmnt \
@@ -5890,9 +5883,8 @@ export_all_functions() {
5890
  initbar() {
5891
  INIPRGRS="/tmp/iniprgrs$LWPID"
5892
  touch "$INIPRGRS"
5893
- while [ -f "$INIPRGRS" ]; do echo; sleep 0.1; done| \
5894
- zenity --window-icon="$LW_DEF_ICO_PTH" --progress --title="Runtime initialization" --width=650 --height=40 --no-cancel \
5895
- --text="Initialization is in progress. Please wait..." --pulsate --auto-close Lux Wine &>/dev/null &
5896
  }
5897
 
5898
  check_loadbar_cover() {
@@ -5920,10 +5912,11 @@ loadbar_cover() {
5920
  [ -n "$1" ] && \
5921
  GIF_FILE="$1" || \
5922
  GIF_FILE="$LOADBARGIF"
5923
- GIF_SIZE_X="$(file "$GIF_FILE" 2>/dev/null|awk '{print $7 + 20}')"
5924
- GIF_SIZE_Y="$(file "$GIF_FILE" 2>/dev/null|awk '{print $9 + 20}')"
 
5925
  yad --picture --filename="$GIF_FILE" $(is_exe_exist wmctrl||echo "--close-on-unfocus") \
5926
- --no-buttons --undecorated --on-top --center --skip-taskbar \
5927
  --width="$GIF_SIZE_X" --height="$GIF_SIZE_Y" Lux Wine &>/dev/null &
5928
  LOADBARPID="$!"
5929
  if is_loadbar && \
@@ -5983,7 +5976,6 @@ lu_appcfg() {
5983
 
5984
  makesquash_zstd() {
5985
  unset squashsource squashpath squashmane extension compres_lvl
5986
- set -o pipefail
5987
  if [ ! -n "$3" ]; then extension='sfs' ; else extension=$3 ; fi
5988
  if [ ! -n "$4" ]; then compres_lvl=1 ; else compres_lvl=$4 ; fi
5989
  if [[ -f "$1" || -d "$1" || -L "$1" ]]
@@ -6002,9 +5994,10 @@ makesquash_zstd() {
6002
  then
6003
  squashmane="$(basename "$squashsource").$(date +"%Y.%m.%d.%H%M%S").zst.$extension"
6004
  print_info "Making SquashFS ZSTD image : [ $squashmane ]\n[ FROM ]: [ $squashsource ] [ COMPRESS LVL ]: $compres_lvl \n[ TO ]: [ ${squashpath}$squashmane ]"
6005
- mksquashfs "$squashsource" "${squashpath}$squashmane" -noappend -b 1M -comp zstd -Xcompression-level $compres_lvl -no-xattrs|\
6006
- settingbar_nostdout "Making SquashFS ZSTD image : $squashmane" "From : $squashsource \nTo : ${squashpath}$squashmane \nCompression level : $compres_lvl"
6007
- [ "${PIPESTATUS[0]}" != 0 ] && print_error yad "Failed to squashing" "From : $squashsource \nTo : ${squashpath}$squashmane" \
 
6008
  && return 1 || print_info "Making SquashFS ZSTD image completed!" && return 0
6009
  else
6010
  print_error yad "ZSTD Squashing..." "mksquashfs not found in your system!"
@@ -6018,7 +6011,6 @@ makesquash_zstd() {
6018
 
6019
  makesquash_xz() {
6020
  unset squashsource squashpath squashmane extension
6021
- set -o pipefail
6022
  if [ ! -n "$3" ]; then extension='sfs' ; else extension=$3 ; fi
6023
  if [[ -f "$1" || -d "$1" || -L "$1" ]]
6024
  then
@@ -6036,9 +6028,9 @@ makesquash_xz() {
6036
  then
6037
  squashmane="$(basename "$squashsource").$(date +"%Y.%m.%d.%H%M%S").xz.$extension"
6038
  print_info "Making SquashFS XZ image : [ $squashmane ]\n[ FROM ]: [ $squashsource ]\n[ TO ]: [ ${squashpath}$squashmane ]"
6039
- mksquashfs "$squashsource" "${squashpath}$squashmane" -noappend -b 1M -comp xz -no-xattrs|\
6040
- settingbar_nostdout "Making SquashFS XZ image : $squashmane" "From : $squashsource \nTo : ${squashpath}$squashmane"
6041
- [ "${PIPESTATUS[0]}" != 0 ] && print_error yad "Failed to squashing" "From : $squashsource \nTo : ${squashpath}$squashmane" \
6042
  && return 1 || print_info "Making SquashFS XZ image completed!" && return 0
6043
  else
6044
  print_error yad "XZ Squashing..." "mksquashfs not found in your system!"
@@ -6052,7 +6044,6 @@ makesquash_xz() {
6052
 
6053
  unpack_squash() {
6054
  unset unsquashsource unsquashpath unsquashmane
6055
- set -o pipefail
6056
  if [[ -f "$1" || -L "$1" ]]
6057
  then
6058
  unsquashsource="$(readlink -f "$1")"
@@ -6071,9 +6062,9 @@ unpack_squash() {
6071
  [ -n "$3" ] && unsquashmane="$3"||\
6072
  unsquashmane="$(echo "$unsquashimage"|awk -F'.' '{print $1}')"
6073
  print_info "Unsquashing image : [ $unsquashimage ]\n[ FROM ]: [ $unsquashsource ]\n[ TO ]: [ ${unsquashpath}$unsquashmane ]"
6074
- unsquashfs -f -d "${unsquashpath}$unsquashmane" "$unsquashsource"|\
6075
- settingbar_nostdout "Unsquashing image : $unsquashimage" "From : $unsquashsource \nTo : ${unsquashpath}$unsquashmane"
6076
- [ "${PIPESTATUS[0]}" != 0 ] && print_error yad "Failed to unsquashing" "From :'$unsquashsource' \nTo : ${unsquashpath}$unsquashmane" \
6077
  && return 1 || print_info "Unsquashing image completed!" && return 0
6078
  else
6079
  print_error yad "Unsquashing..." "unsquashfs not found in your system!"
 
1
  #!/usr/bin/env bash
2
 
3
+ export LW_VERSION="0.78.2.2"
4
  export LW_DEVELOPERS="VHSgunzo"
5
 
6
  export RED='\033[1;91m'
 
231
  }
232
 
233
  print_error() {
234
+ local yad_args=(
235
+ --window-icon="$LW_DEF_ICO" --image="dialog-error" --button="OK:0"
236
+ --center --on-top --fixed --timeout="30" --timeout-indicator="top"
237
+ --selectable-labels
238
+ )
239
  if [[ "$1" == "yad" && -n "$2" && -n "$3" ]] || [[ "$1" == "notify" && -n "$2" && -n "$3" ]]
240
+ then echo -e "${RED}[ ERROR ][$(date +"%Y.%m.%d %T")]: $3 $RESETCOLOR"
 
241
  elif [[ "$1" == "yad" && -n "$2" && ! -n "$3" ]] || [[ "$1" == "notify" && -n "$2" && ! -n "$3" ]]
242
+ then echo -e "${RED}[ ERROR ][$(date +"%Y.%m.%d %T")]: $2 $RESETCOLOR"
243
+ else echo -e "${RED}[ ERROR ][$(date +"%Y.%m.%d %T")]: $1 $RESETCOLOR"
 
 
244
  fi
245
  if [[ "$1" == "yad" && -n "$2" && -n "$3" && "$NO_YAD" != 1 ]]
246
+ then yad "${yad_args[@]}" --title="$2" --text="$3" Lux Wine
 
 
247
  elif [[ "$1" == "yad" && -n "$2" && ! -n "$3" && "$NO_YAD" != 1 ]]
248
+ then yad "${yad_args[@]}" --title="Lux Wine Error" --text="$2" Lux Wine
 
 
249
  elif [[ "$1" == "notify" && -n "$2" && -n "$3" && "$NO_NOTIFY" != 1 && "$NOT_TERM" == 1 ]]
250
+ then notify-send -i "$LW_DEF_ICO" -a 'Lux Wine Error' "$2" "$3" &
 
251
  elif [[ "$1" == "notify" && -n "$2" && ! -n "$3" && "$NO_NOTIFY" != 1 && "$NOT_TERM" == 1 ]]
252
+ then notify-send -i "$LW_DEF_ICO" -a 'Lux Wine Error' "$2" &
 
253
  fi
254
  }
255
 
256
  print_info() {
257
  if [ "$QUIET_MODE" != 1 ]
258
  then
259
+ local yad_args=(
260
+ --window-icon="$LW_DEF_ICO" --image="dialog-information" --button="OK:0"
261
+ --center --on-top --fixed --timeout="30" --timeout-indicator="top"
262
+ --selectable-labels
263
+ )
264
  if [[ "$1" == "yad" && -n "$2" && -n "$3" ]] || [[ "$1" == "notify" && -n "$2" && -n "$3" ]]
265
+ then echo -e "${GREEN}[ INFO ][$(date +"%Y.%m.%d %T")]: $3 $RESETCOLOR"
 
266
  elif [[ "$1" == "yad" && -n "$2" && ! -n "$3" ]] || [[ "$1" == "notify" && -n "$2" && ! -n "$3" ]]
267
+ then echo -e "${GREEN}[ INFO ][$(date +"%Y.%m.%d %T")]: $2 $RESETCOLOR"
268
+ else echo -e "${GREEN}[ INFO ][$(date +"%Y.%m.%d %T")]: $1 $RESETCOLOR"
 
 
269
  fi
270
  if [[ "$1" == "yad" && -n "$2" && -n "$3" && "$NO_YAD" != 1 ]]
271
+ then yad "${yad_args[@]}" --title="$2" --text="$3" Lux Wine
 
 
272
  elif [[ "$1" == "yad" && -n "$2" && ! -n "$3" && "$NO_YAD" != 1 ]]
273
+ then yad "${yad_args[@]}" --title="Lux Wine Info" --text="$2" Lux Wine
 
 
274
  elif [[ "$1" == "notify" && -n "$2" && -n "$3" && "$NO_NOTIFY" != 1 && "$NOT_TERM" == 1 ]]
275
+ then notify-send -i "$LW_DEF_ICO" -a 'Lux Wine Info' "$2" "$3" &
 
276
  elif [[ "$1" == "notify" && -n "$2" && ! -n "$3" && "$NO_NOTIFY" != 1 && "$NOT_TERM" == 1 ]]
277
+ then notify-send -i "$LW_DEF_ICO" -a 'Lux Wine Info' "$2" &
 
278
  fi
279
  fi
280
  }
281
 
282
  print_question() {
283
  [ "$NO_YAD" != 1 ]||return 0
284
+ local yad_args=(
285
+ --window-icon="$LW_DEF_ICO" --image="dialog-question"
286
+ --button="NO:1" --button="YES:0"
287
+ --center --on-top --fixed --selectable-labels
288
+ )
289
  if [[ -n "$1" && -n "$2" ]]
290
+ then yad "${yad_args[@]}" --title="$1" --text="$2" Lux Wine
 
 
291
  elif [[ -n "$1" && ! -n "$2" ]]
292
+ then yad "${yad_args[@]}" --title="Lux Wine Question" --text="$1" Lux Wine
 
 
293
  fi
294
  }
295
 
296
  print_input() {
297
+ local yad_args=(
298
+ --window-icon="$LW_DEF_ICO" --entry
299
+ --button="EXIT:1" --button="OK:0"
300
+ --center --on-top --fixed
301
+ )
302
  if [[ -n "$1" && -n "$2" && -n "$3" ]]
303
+ then yad "${yad_args[@]}" --title="$1" --text="$2" --entry-text="$3"
 
 
304
  elif [[ -n "$1" && -n "$2" && ! -n "$3" ]]
305
+ then yad "${yad_args[@]}" --title="Lux Wine Input" --text="$1" --entry-text="$2"
 
 
306
  fi
307
  }
308
 
 
812
  }
813
 
814
  unpack_tar_xz() {
 
815
  try_mkdir "$2"
816
  TAR_NAME="$(basename "$1")"
817
+ settingbar --text="Unpacking $TAR_NAME is in progress. Please wait..." \
818
+ tar -Jxf "$1" -C "$2"
819
+ [ "$?" != 0 ] && print_error "File $TAR_NAME unpacked with error!" && return 1 || return 0
820
  }
821
 
822
  unpack_tar_gz() {
 
823
  try_mkdir "$2"
824
  TAR_NAME="$(basename "$1")"
825
+ settingbar --text="Unpacking $TAR_NAME is in progress. Please wait..." \
826
+ tar -xzvf "$1" -C "$2"
827
+ [ "$?" != 0 ] && print_error "File $TAR_NAME unpacked with error!" && return 1 || return 0
828
  }
829
 
830
  unpack_tar_zst() {
 
831
  try_mkdir "$2"
832
  TAR_NAME="$(basename "$1")"
833
+ settingbar --text="Unpacking $TAR_NAME is in progress. Please wait..." \
834
+ tar --use-compress-program=unzstd -xvf "$1" -C "$2"
835
+ [ "$?" != 0 ] && print_error "File $TAR_NAME unpacked with error!" && return 1 || return 0
836
  }
837
 
838
  unpack_tar() {
839
  set -o pipefail
840
  try_mkdir "$2"
841
  TAR_NAME="$(basename "$1")"
842
+ settingbar --text="Unpacking $TAR_NAME is in progress. Please wait..." \
843
+ tar -xvf "$1" -C "$2"
844
+ [ "$?" != 0 ] && print_error "File $TAR_NAME unpacked with error!" && return 1 || return 0
845
  }
846
 
847
  settingbar() {
848
+ local ret=1
849
+ local yad_args=(
850
+ --icon="$LW_DEF_ICO_PTH" --progress --pulsate
851
+ --width=650 --height=40 --undecorated --skip-taskbar
852
+ --no-buttons --text-align center --auto-close
853
+ --center --fixed --on-top
854
+ )
855
+ if [[ "$1" =~ '--text=' ]]
856
+ then yad_args+=("$1") ; shift
857
+ else yad_args+=(--text="Updating parameters is in progress. Please wait...")
858
+ fi
859
+ "$@" &
860
+ local exec_pid="$!"
861
+ (while kill -0 "$!" &>/dev/null
862
+ do echo -e "#\n" ; sleep 0.1 2>/dev/null
863
+ done)|yad "${yad_args[@]}" Lux Wine &>/dev/null &
864
+ local yad_pid="$!"
865
+ wait "$exec_pid" &>/dev/null
866
+ ret="$?"
867
+ kill "$yad_pid" &>/dev/null
868
+ return "$ret"
 
 
 
 
 
 
 
 
 
 
 
869
  }
870
 
871
  shell_is_death() {
 
2630
  export_all_functions
2631
  if ! [[ "${DEPRECATE_INIT[@]}" =~ "$1" ]] || [ ! -n "$1" ]
2632
  then
2633
+ if [ ! -n "$SETT_INIT" ] && [[ -n "$(pgrep -fa 'yad'|grep -w 'Runtime initialization'|awk '{print$1}')" \
2634
+ || -n "$(pgrep -fa 'yad'|grep -w 'Updating parameters'|awk '{print$1}')" ]]
2635
  then
2636
  print_info yad "Initialization is in progress! Please wait..."
2637
+ while pgrep -fa 'yad'|grep -w 'Runtime initialization' &>/dev/null ; do sleep 1 ; done
2638
+ while pgrep -fa 'yad'|grep -w 'Updating parameters' &>/dev/null ; do sleep 1 ; done
2639
  fi
2640
  [[ -n "$SETT_INIT" || "$1" == "-init" ]] && \
2641
  initbar && rm -rf "$LW_DIR/.lwcfgchksum"
 
3423
  lu_exit() {
3424
  check_tray; check_wine_pids; check_exes; check_luwine_sh_pid
3425
  if [[ -n "$WINE_PIDS" || -n "$EXE_PIDS" || -n "$TRAY_PID" || -n "$LW_SH_PID" \
3426
+ || -n "$(pgrep -fa 'yad'|grep 'Lux Wine'|awk '{print$1}')" ]]
 
3427
  then
3428
  touch /tmp/FORCE_EXIT
3429
  lu_killshell "$@"
3430
  lu_killexe
3431
  lu_killwine "$@"
 
3432
  kill $(pgrep -fa 'yad'|grep 'Lux Wine'|awk '{print$1}') 2>/dev/null
3433
  kill $(pgrep -fa 'Winetricks'|awk '{print$1}') 2>/dev/null
3434
  pkill winetricks 2>/dev/null
 
4107
 
4108
  get_wine_git_lst() {
4109
  [ -n "$WGUIDW" ]||local WGUIDW=$RANDOM
4110
+ get_wine_releases() (
4111
+ get_wlu_releases 1>"/tmp/WLUGITLIST$WGUIDW" &
4112
+ get_pge_releases 1>"/tmp/PGEGITLIST$WGUIDW" &
4113
+ get_wge_releases 1>"/tmp/WGEGITLIST$WGUIDW" &
4114
+ get_wk4_releases 1>"/tmp/WK4GITLIST$WGUIDW" &
4115
+ wait
4116
+ )
4117
  if [[ ! -n "$PGE_GIT_LIST" || ! -n "$WLU_GIT_LIST" || ! -n "$WK4_GIT_LIST" || ! -n "$WGE_GIT_LIST" ]]
4118
  then
4119
  catlist() { cat /tmp/${1}GITLIST$WGUIDW 2>/dev/null ; }
4120
  print_info notify "Сhecking new Wine versions on GitHub..."
4121
+ settingbar --text="Сhecking new Wine versions on GitHub..." get_wine_releases
 
 
 
 
4122
  WLU_GIT_LIST="$(catlist 'WLU')"
4123
  PGE_GIT_LIST="$(catlist 'PGE')"
4124
  WGE_GIT_LIST="$(catlist 'WGE')"
 
4226
  }
4227
  if [ -n "$(echo "$WDEL_SET"|head -1)" ]
4228
  then
4229
+ wine_rm() (
4230
+ IFS=$'\n' ; for WINE_DEL in $(echo "$WDEL_SET"|sedspaces)
4231
+ do
4232
+ if [[ -d "$LW_RUNTIME_DIR/dxvk/$WINE_DEL" \
4233
+ || -d "$LW_RUNTIME_DIR/vkd3d/$WINE_DEL" \
4234
+ || -d "$LW_RUNTIME_DIR/dxvk-nvapi/$WINE_DEL" ]]
4235
+ then
4236
+ if print_question "Remove DXVK, DXVK-NVAPI and VKD3D from ${WINE_DEL}?"
4237
+ then
4238
+ rm_pd3dll
4239
+ sed -i "/DXVK_NVAPI_VERSION='$WINE_DEL'/d;/DXVK_VERSION='$WINE_DEL'/d;/VKD3D_VERSION='$WINE_DEL'/d" "$LW_CFG" 2>/dev/null
4240
+ print_info notify "Removing DXVK, DXVK-NVAPI and VKD3D from $WINE_DEL completed!"
4241
+ else
4242
+ rm_pd3dll
4243
+ WINE_VERSION="$WINE_DEL" WINEDIR="$LW_WINE_DIR/$WINE_DEL" get_proton_d3dlib 'cp'
4244
+ unset P_DXVK P_NVAPI P_VKD3D
4245
+ fi
4246
+ fi
4247
+ try_rm "$LW_WINE_DIR/$WINE_DEL"
4248
+ print_info notify "Removing $WINE_DEL completed!"
4249
+ [ "$WINE_VERSION" == "$WINE_DEL" ] && touch "/tmp/WINEINUSEDEL$WGUIDW"
4250
+ done
4251
+ )
4252
+ settingbar --text="Deletion is in progress. Please wait..." wine_rm
4253
  if [ -f "/tmp/WINEINUSEDEL$WGUIDW" ]
4254
  then
4255
  if [[ -n "$(ls -1 -t "$LW_WINE_DIR" 2>/dev/null|grep -v '.*.tar.*'|head -1)" || -n "$SYS_WINE" ]]
 
5667
  LWRUNTIMELST="dxvk vkd3d dxvk-nvapi wine_nvml d3d_extras dgvoodoo2 battleye_runtime eac_runtime winetricks"
5668
  check_winepfx
5669
  if [ "$2" == "all" ]
5670
+ then settingbar --text="Updating Lux Wine Runtime is in progress. Please wait..." upd_all
 
5671
  elif [[ ! -n "$2" || "$2" == "openupdtr" ]]
5672
  then
5673
  if [ ! -n "$(pgrep -fa yad|grep "Runtime Updater"|awk '{print$1}')" ]; then :
 
5680
  --text-align=center --center --window-icon="$LW_DEF_ICO" \
5681
  --width=400 --height=500 --button="UPDATE ALL:2" --button="EXIT:1" --button="OK:0" 2>/dev/null)"
5682
  if [ "$?" == "2" ]
5683
+ then settingbar --text="Updating Lux Wine Runtime is in progress. Please wait..." upd_all
 
5684
  elif [ -n "$(echo "$LW_RUN_UPD"|head -1)" ]
5685
  then
5686
  LW_RUN_UPD="$(echo "$LW_RUN_UPD"|sed '/^TRUE$/d'|sed '/^$/d')"
5687
+ upd_loop() (
5688
+ IFS=$'\n' ; for LWRUNUPD in $LW_RUN_UPD
5689
+ do
5690
+ case "$LWRUNUPD" in
5691
+ battleye_runtime) upd_battleye &
5692
+ sleep 0.2 ;;
5693
+ eac_runtime) upd_eac &
5694
+ sleep 0.2 ;;
5695
+ d3d_extras) upd_d3d_extras &
5696
+ sleep 0.2 ;;
5697
+ dgvoodoo2) upd_dgvoodoo2 &
 
 
 
5698
  sleep 0.2 ;;
5699
+ dxvk) upd_dxvk &
5700
+ sleep 0.2 ;;
5701
+ dxvk-nvapi) upd_dxvk_nvapi &
5702
+ sleep 0.2 ;;
5703
+ vkd3d) upd_vkd3d &
5704
+ sleep 0.2 ;;
5705
+ wine_nvml) upd_wine_nvml &
5706
  sleep 0.2 ;;
5707
+ winetricks) upd_winetricks &
5708
+ sleep 0.2 ;;
5709
+ esac
5710
+ done
5711
+ wait
5712
+ )
5713
+ settingbar --text="Updating Lux Wine Runtime is in progress. Please wait..." upd_loop
5714
  print_info notify "Runtime update completed!"
5715
  fi
5716
  else
5717
+ shift
5718
+ upd_loop() (
5719
+ while [ -n "$1" ]
5720
+ do
5721
+ case "$1" in
5722
+ bat|battleye|battleye_runtime) upd_battleye &
5723
+ sleep 0.2 ;;
5724
+ eac|eac_runtime) upd_eac &
5725
+ sleep 0.2 ;;
5726
+ d3d|d3d_extras|d3d-extras) upd_d3d_extras &
 
 
 
 
5727
  sleep 0.2 ;;
5728
+ dg|dgvoodoo2) upd_dgvoodoo2 &
 
 
5729
  sleep 0.2 ;;
5730
+ dx|dxvk) upd_dxvk &
5731
+ sleep 0.2 ;;
5732
+ dxnv|dxvk-nvapi|dxvk_nvapi) upd_dxvk_nvapi &
5733
+ sleep 0.2 ;;
5734
+ vkd|vkd3d) upd_vkd3d &
5735
+ sleep 0.2 ;;
5736
+ nvml|wine_nvml) upd_wine_nvml &
5737
+ sleep 0.2 ;;
5738
+ wtrx|winetricks) upd_winetricks &
5739
+ sleep 0.2 ;;
5740
+ *) print_error "Invalid argument: '$1'" ;;
5741
+ esac
5742
+ shift
5743
+ done
5744
+ wait
5745
+ )
5746
+ settingbar --text="Updating Lux Wine Runtime is in progress. Please wait..." upd_loop "$@"
5747
  print_info notify "Runtime update completed!"
5748
  fi
5749
  }
 
5861
  export SORTU="sort -u"
5862
  export -f print_var print_error print_info check_tray check_wine_pids check_luwine_pid check_vkd3dconfig try_rm check_themes import_cenv sedspaces \
5863
  check_luwine_sh_pid check_exes check_compositor try_mkdir check_symlink check_netcore try_download check_cpu_limit ld_lib_upd wait_kill_exe \
5864
+ unpack_tar_xz unpack_tar_gz unpack_tar shell_is_death exe_is_death exes_is_death wine_is_death try_cp check_us_switcher check_proton_d3dlib \
5865
  compositor_sw check_winetricks check_musthave_dll check_other_fixes wdllover_upd reg_edit exe2png gamma_sw vkd3dcfg_upd check_downloader \
5866
  create_shortcut lu_debug clear_log dis_debug_msg dis_cmd_msg import_luwine_wcfg check_def_wine lu_prerun lu_run lu_prestart try_mv path_upd select_lwpfx \
5867
  lu_start lu_cmd lu_shell lu_regedit lu_control lu_winecfg lu_taskmgr lu_uninstaller winetricks lu_openpfx lu_exit lu_killshell check_dxr winepfx_init \
 
5873
  runtime_manager upd_battleye is_exe_exist which_exe try_ln_wine_build_dll find_vk_icd btntls_run get_app_exe check_driprime greptardlurl get_wlu_releases \
5874
  upd_d3d_extras upd_dgvoodoo2 upd_dxvk upd_dxvk_nvapi upd_vkd3d upd_all is_loadbar lu_runapp lu_lsapp set_wine_version get_pge_releases get_wge_releases \
5875
  check_wined3d check_vkbasalt_eff check_luwine_wcfg_cenv check_videodrv check_startfile check_def_config get_wk4_releases \
5876
+ settingbar check_freespace initbar check_network_status print_question print_input loadbar_cover check_first_run check_eac check_loadbar_cover \
5877
  check_db_script stop_loadbar check_wmonover wmonover_upd check_exe_wcfg_cenv lu_appcfg try_fix_wrtx try_shutdown_wine check_steamapps is_winepfx \
5878
  check_display check_restore_resol resol_sw check_restore_gamma dis_displ_sw restore_resol check_virt_desktop check_vkbasalt_cfg exeargs_upd check_exe_args \
5879
  check_wine_nvml check_resizable_bar check_latencyflex get_proton_d3dlib makesquash_zstd makesquash_xz lu_pfxbackup lu_pfxrestore lu_backupmnt lu_backupunmnt \
 
5883
  initbar() {
5884
  INIPRGRS="/tmp/iniprgrs$LWPID"
5885
  touch "$INIPRGRS"
5886
+ initbar_loop() { while [ -f "$INIPRGRS" ]; do sleep 0.1; done ; }
5887
+ settingbar --text="Runtime initialization is in progress. Please wait..." initbar_loop &
 
5888
  }
5889
 
5890
  check_loadbar_cover() {
 
5912
  [ -n "$1" ] && \
5913
  GIF_FILE="$1" || \
5914
  GIF_FILE="$LOADBARGIF"
5915
+ GIF_FILE_INFO="$(file "$GIF_FILE" 2>/dev/null)"
5916
+ GIF_SIZE_X="$(awk '{print $7 + 20}'<<<"$GIF_FILE_INFO")"
5917
+ GIF_SIZE_Y="$(awk '{print $9 + 20}'<<<"$GIF_FILE_INFO")"
5918
  yad --picture --filename="$GIF_FILE" $(is_exe_exist wmctrl||echo "--close-on-unfocus") \
5919
+ --no-buttons --undecorated --center --skip-taskbar \
5920
  --width="$GIF_SIZE_X" --height="$GIF_SIZE_Y" Lux Wine &>/dev/null &
5921
  LOADBARPID="$!"
5922
  if is_loadbar && \
 
5976
 
5977
  makesquash_zstd() {
5978
  unset squashsource squashpath squashmane extension compres_lvl
 
5979
  if [ ! -n "$3" ]; then extension='sfs' ; else extension=$3 ; fi
5980
  if [ ! -n "$4" ]; then compres_lvl=1 ; else compres_lvl=$4 ; fi
5981
  if [[ -f "$1" || -d "$1" || -L "$1" ]]
 
5994
  then
5995
  squashmane="$(basename "$squashsource").$(date +"%Y.%m.%d.%H%M%S").zst.$extension"
5996
  print_info "Making SquashFS ZSTD image : [ $squashmane ]\n[ FROM ]: [ $squashsource ] [ COMPRESS LVL ]: $compres_lvl \n[ TO ]: [ ${squashpath}$squashmane ]"
5997
+ settingbar \
5998
+ --text="Making SquashFS ZSTD image : $squashmane\nFrom : $squashsource \nTo : ${squashpath}$squashmane \nCompression level : $compres_lvl" \
5999
+ mksquashfs "$squashsource" "${squashpath}$squashmane" -noappend -b 1M -comp zstd -Xcompression-level $compres_lvl -no-xattrs
6000
+ [ "$?" != 0 ] && print_error yad "Failed to squashing" "From : $squashsource \nTo : ${squashpath}$squashmane" \
6001
  && return 1 || print_info "Making SquashFS ZSTD image completed!" && return 0
6002
  else
6003
  print_error yad "ZSTD Squashing..." "mksquashfs not found in your system!"
 
6011
 
6012
  makesquash_xz() {
6013
  unset squashsource squashpath squashmane extension
 
6014
  if [ ! -n "$3" ]; then extension='sfs' ; else extension=$3 ; fi
6015
  if [[ -f "$1" || -d "$1" || -L "$1" ]]
6016
  then
 
6028
  then
6029
  squashmane="$(basename "$squashsource").$(date +"%Y.%m.%d.%H%M%S").xz.$extension"
6030
  print_info "Making SquashFS XZ image : [ $squashmane ]\n[ FROM ]: [ $squashsource ]\n[ TO ]: [ ${squashpath}$squashmane ]"
6031
+ settingbar --text="Making SquashFS XZ image : $squashmane\nFrom : $squashsource \nTo : ${squashpath}$squashmane" \
6032
+ mksquashfs "$squashsource" "${squashpath}$squashmane" -noappend -b 1M -comp xz -no-xattrs
6033
+ [ "$?" != 0 ] && print_error yad "Failed to squashing" "From : $squashsource \nTo : ${squashpath}$squashmane" \
6034
  && return 1 || print_info "Making SquashFS XZ image completed!" && return 0
6035
  else
6036
  print_error yad "XZ Squashing..." "mksquashfs not found in your system!"
 
6044
 
6045
  unpack_squash() {
6046
  unset unsquashsource unsquashpath unsquashmane
 
6047
  if [[ -f "$1" || -L "$1" ]]
6048
  then
6049
  unsquashsource="$(readlink -f "$1")"
 
6062
  [ -n "$3" ] && unsquashmane="$3"||\
6063
  unsquashmane="$(echo "$unsquashimage"|awk -F'.' '{print $1}')"
6064
  print_info "Unsquashing image : [ $unsquashimage ]\n[ FROM ]: [ $unsquashsource ]\n[ TO ]: [ ${unsquashpath}$unsquashmane ]"
6065
+ settingbar --text="Unsquashing image : $unsquashimage\nFrom : $unsquashsource \nTo : ${unsquashpath}$unsquashmane" \
6066
+ unsquashfs -f -d "${unsquashpath}$unsquashmane" "$unsquashsource"
6067
+ [ "$?" != 0 ] && print_error yad "Failed to unsquashing" "From :'$unsquashsource' \nTo : ${unsquashpath}$unsquashmane" \
6068
  && return 1 || print_info "Unsquashing image completed!" && return 0
6069
  else
6070
  print_error yad "Unsquashing..." "unsquashfs not found in your system!"
lwrap/PKGBUILD CHANGED
@@ -2,7 +2,7 @@
2
 
3
  pkgname='lwrap'
4
  pkgver='0.78.2'
5
- pkgrel='1'
6
  pkgdesc='Lux Wine wrapper for RunImage container'
7
  arch=('x86_64')
8
  url='https://github.com/VHSgunzo/lux-wine'
@@ -10,7 +10,7 @@ license=('MIT')
10
  depends=(
11
  'aria2' 'qt5-tools' 'xterm' 'xorg-fonts-100dpi' 'xorg-fonts-75dpi' 'firefox' 'intel-media-driver'
12
  'xorg-fonts-cyrillic' 'xorg-fonts-type1' 'xorg-fonts-misc' 'cabextract' 'exo' 'xapp' 'pulseaudio'
13
- 'perl' 'unzip' 'xorg-xmessage' 'zenity' 'yad' 'xkb-switch' 'imagemagick' 'qt5ct' 'syslog-ng'
14
  'icoextract' 'lib32-vkbasalt' 'mangohud' 'lib32-mangohud' 'latencyflex-wine-git' 'steam' 'gamescope'
15
  'vkbasalt' 'gamemode' 'lib32-gamemode' 'giflib' 'lib32-giflib' 'libpng' 'appmenu-gtk-module'
16
  'lib32-libpng' 'libldap' 'lib32-libldap' 'gnutls' 'lib32-gnutls' 'bash' 'gawk' 'steam-native-runtime'
 
2
 
3
  pkgname='lwrap'
4
  pkgver='0.78.2'
5
+ pkgrel='2'
6
  pkgdesc='Lux Wine wrapper for RunImage container'
7
  arch=('x86_64')
8
  url='https://github.com/VHSgunzo/lux-wine'
 
10
  depends=(
11
  'aria2' 'qt5-tools' 'xterm' 'xorg-fonts-100dpi' 'xorg-fonts-75dpi' 'firefox' 'intel-media-driver'
12
  'xorg-fonts-cyrillic' 'xorg-fonts-type1' 'xorg-fonts-misc' 'cabextract' 'exo' 'xapp' 'pulseaudio'
13
+ 'perl' 'unzip' 'xorg-xmessage' 'yad' 'xkb-switch' 'imagemagick' 'qt5ct' 'syslog-ng'
14
  'icoextract' 'lib32-vkbasalt' 'mangohud' 'lib32-mangohud' 'latencyflex-wine-git' 'steam' 'gamescope'
15
  'vkbasalt' 'gamemode' 'lib32-gamemode' 'giflib' 'lib32-giflib' 'libpng' 'appmenu-gtk-module'
16
  'lib32-libpng' 'libldap' 'lib32-libldap' 'gnutls' 'lib32-gnutls' 'bash' 'gawk' 'steam-native-runtime'
lwrap/lwrap.install CHANGED
@@ -1,3 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ## arg 1: the new package version
2
  # pre_install() {
3
  # true
@@ -17,12 +31,16 @@
17
  ## arg 1: the new package version
18
  ## arg 2: the old package version
19
  post_upgrade() {
20
- if pac -Q python-xlib &>/dev/null
21
- then
22
- rm -f /var/lib/pacman/db.lck
23
- yes|pac -Rsn python-xlib
24
- touch /var/lib/pacman/db.lck
25
- fi
 
 
 
 
26
  }
27
 
28
  ## arg 1: the old package version
 
1
+ pkg_tool() {
2
+ unset pacdblck_exist
3
+ pacdblck='/var/lib/pacman/db.lck'
4
+ if [ -f "$pacdblck" ]
5
+ then
6
+ pacdblck_exist=1
7
+ rm -f "$pacdblck"
8
+ fi
9
+ LANG= sh -c "$@"
10
+ [ "$pacdblck_exist" == 1 ] && \
11
+ touch "$pacdblck"
12
+ }
13
+ export -f pkg_tool
14
+
15
  ## arg 1: the new package version
16
  # pre_install() {
17
  # true
 
31
  ## arg 1: the new package version
32
  ## arg 2: the old package version
33
  post_upgrade() {
34
+ pac -Q python-xlib &>/dev/null && \
35
+ pkg_tool 'yes|pac -Rsn python-xlib'
36
+
37
+ pac -Q zenity 2>/dev/null|grep -q '4.0.0' && \
38
+ pkg_tool 'yes|sudo downgrade zenity=3.44.2'
39
+
40
+ pac -Q mesa 2>/dev/null|grep -q '23.3.2' && \
41
+ pkg_tool 'yes|pac -Sy mesa-tkg-git && yes|pac -S lib32-mesa-tkg-git'
42
+
43
+ return 0
44
  }
45
 
46
  ## arg 1: the old package version
main.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c76f19ba8fed1fae8c22692cff6ed6d7b253e578c3d5b58edeb7b164c0c08f9e
3
- size 575681
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56e652aeae8e508002bbe16773c60e8f60754246b8574e2f0ce7ce3b8ff5057f
3
+ size 575946