Skip to content

Commit

Permalink
v0.78.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Jul 1, 2024
1 parent fc32ddc commit 0c14c46
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 14 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v0.78.5.1

* Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
* Update [GE-Proton](https://github.com/VHSgunzo/ge-proton-lw/releases/tag/v9.9) `v9.9`
* Add grep CHK_UPDATE from LW global config to lwrap
* Add DB script for `Prototype`
* Minor fixes

# v0.78.4.9

* Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
Expand Down
1 change: 1 addition & 0 deletions db/TimeShift.lwdb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#DB# TimeShift # DB_EXES=('TimeShift.exe')
#DB# Prototype # DB_EXES=('prototypef.exe')

CPU_LIMIT='8'
1 change: 1 addition & 0 deletions db/prototypef.lwdb
20 changes: 10 additions & 10 deletions lux-wine
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

export LW_VERSION="0.78.4.9"
export LW_VERSION="0.78.5.1"
export LW_DEVELOPERS="VHSgunzo"

export RED='\033[1;91m'
Expand Down Expand Up @@ -106,7 +106,7 @@ for icon in "$LW_ICONS_DIR"/*.png
do
mkdir -p "$HOME_ICONS/hicolor/$hi_icon_size/apps"
mkdir -p "$LW_ICONS_DIR/hicolor/$hi_icon_size/apps"
convert "$icon" -resize "$hi_icon_size" \
magick "$icon" -resize "$hi_icon_size" \
"$LW_ICONS_DIR/hicolor/$hi_icon_size/apps/$icon_name" && \
ln -sfr "$LW_ICONS_DIR/hicolor/$hi_icon_size/apps/$icon_name" \
"$HOME_ICONS/hicolor/$hi_icon_size/apps/$icon_name"
Expand Down Expand Up @@ -778,7 +778,7 @@ try_download() {
try_mkdir "$DLPTH"
if [ "$LW_DOWNLOADER" == "aria2c" ]
then
aria2c -x 13 -s 13 --allow-overwrite --summary-interval=1 -o "$DLFLNAME" -d "$DLPTH" "$1"|stdbuf -o0 grep 'ETA'| \
aria2c -x 13 -s 13 --no-conf --allow-overwrite --summary-interval=1 -o "$DLFLNAME" -d "$DLPTH" "$1"|stdbuf -o0 grep 'ETA'| \
sed -u 's/(.*)/ &/;s/(//;s/)//;s/\[//;s/\]//;s/%//'|stdbuf -o0 awk '{print$3"\n#Downloading at "$2,$5,$6}'| \
yad --progress --percentage=0 --text="Download:\t$DLFLNAME\n$1" --auto-close --no-escape --selectable-labels \
--auto-kill --center --on-top --fixed --no-buttons --undecorated --skip-taskbar Lux Wine
Expand Down Expand Up @@ -1485,7 +1485,7 @@ exe2png() {
done)
fi
}
if is_exe_exist icoextract && is_exe_exist convert
if is_exe_exist icoextract && is_exe_exist magick
then
HICOLOR_SHR_DIR="$SHRT_PATH/hicolor_icons"
if [[ -f "$SHRT_PATH/${SHRT_NAME}.png" && \
Expand All @@ -1510,7 +1510,7 @@ exe2png() {
then exe_ico="$(ls -S -1 "${SHRT_NAME}"*_*_123.ico)"
else exe_ico="$(ls -S -1 "${SHRT_NAME}"*.ico 2>/dev/null|head -1)"
fi
convert "$exe_ico" "$(echo "$exe_ico"|sed 's|.ico$|.png|gi')"
magick "$exe_ico" "$(echo "$exe_ico"|sed 's|.ico$|.png|gi')"
if [ ! -f "${SHRT_NAME}.png" ]
then
if [ "${SHRT_NAME}" == "osu!" ]
Expand All @@ -1524,7 +1524,7 @@ exe2png() {
for hi_icon_size in ${HICOLOR_SIZES[@]}
do
try_mkdir "$hi_icon_size/apps"
convert "../${SHRT_NAME}.png" -resize "$hi_icon_size" \
magick "../${SHRT_NAME}.png" -resize "$hi_icon_size" \
"$hi_icon_size/apps/${SHRT_NAME}.png"
done)
add_exe_icon
Expand Down Expand Up @@ -1958,6 +1958,7 @@ import_luwine_wcfg() {
source "$LW_CFG"
set +a
set_wine_version
[ "$NO_UPD_CHKSUM" == 1 ]||\
updcfgchksum
}

Expand Down Expand Up @@ -2423,7 +2424,6 @@ check_exe_wcfg_cenv() {
then
print_info notify "Found EXE config!"
print_info "Path: '$EXE_CFG'"
sed -i "s|$OLD_LW_DIR|$LW_DIR|g" "$EXE_CFG" 2>/dev/null
if [ -f "$LW_DEF_CFG" ]
then
export LW_CFG="$EXE_CFG"
Expand Down Expand Up @@ -3579,7 +3579,7 @@ lu_exit() {

check_config_only() {
QUIET_MODE=1 check_exe_wcfg_cenv "$@"
check_luwine_wcfg_cenv
NO_UPD_CHKSUM=1 check_luwine_wcfg_cenv
check_def_config
}

Expand Down Expand Up @@ -5442,7 +5442,6 @@ check_winepfx() {
DEF_WDESK_DIR=("Desktop" "Documents" "Music" "Videos" "Pictures" "Downloads" "Templates")
(IFS=$'\n' ; for WINEDESK_DIR in "${DEF_WDESK_DIR[@]}"
do
XDGUSERDIRPTH="$HOME/$WINEDESK_DIR"
WDESKDIRPTH="$WPFX_STEAMUSER_DIR/$WINEDESK_DIR"
if [ "$WINE_SANDBOX" == 1 ]
then
Expand All @@ -5457,6 +5456,7 @@ check_winepfx() {
fi
else
DESKLNK="$(readlink -f "$WDESKDIRPTH")"
XDGUSERDIRPTH="$HOME/$WINEDESK_DIR"
if [ "$DESKLNK" != "$XDGUSERDIRPTH" ]
then
if [[ ! -L "$WDESKDIRPTH" && -d "$WDESKDIRPTH" ]]
Expand All @@ -5466,7 +5466,7 @@ check_winepfx() {
then
try_rm "$WDESKDIRPTH"
fi
[ ! -d "$WDESKDIRPTH" ] && \
[[ -d "$XDGUSERDIRPTH" && ! -d "$WDESKDIRPTH" ]] && \
try_ln "$XDGUSERDIRPTH" "$WDESKDIRPTH"
fi
fi
Expand Down
4 changes: 2 additions & 2 deletions lwrap/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Maintainer: VHSgunzo <vhsgunzo.github.io>

pkgname='lwrap'
pkgver='0.78.4'
pkgrel='9'
pkgver='0.78.5'
pkgrel='1'
pkgdesc='Lux Wine wrapper for RunImage container'
arch=('x86_64')
url='https://github.com/VHSgunzo/lux-wine'
Expand Down
7 changes: 5 additions & 2 deletions lwrap/lwrap
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env bash
# Lux Wine wrapper for RunImage container

CHK_UPDATE='3'

shopt -s extglob

RED='\033[1;91m'
Expand Down Expand Up @@ -74,6 +72,11 @@ if [[ -n "$RUNSRC" && -d "$RUNROOTFS" ]] && \
fi
unset NO_EXT_LWRAP

CFG_CHK_UPDATE="$(grep '^CHK_UPDATE=.*$' "$LW_CFG" 2>/dev/null)"
[ -n "$CFG_CHK_UPDATE" ] && \
eval "$CFG_CHK_UPDATE"||\
CHK_UPDATE='3'

[ ! -n "$(tty|grep -v 'not a'|grep -Eo 'tty|pts')" ] && \
NOT_TERM=1||NOT_TERM=0

Expand Down

0 comments on commit 0c14c46

Please sign in to comment.