Skip to content

Commit

Permalink
v0.78.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Apr 26, 2024
1 parent 51355dd commit 6df73e6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.78.4.7

* Fix auto create shortcut for `Yandex Music`

# v0.78.4.6

* Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
Expand Down
16 changes: 14 additions & 2 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.6"
export LW_VERSION="0.78.4.7"
export LW_DEVELOPERS="VHSgunzo"

export RED='\033[1;91m'
Expand Down Expand Up @@ -3876,7 +3876,7 @@ drive_tolower() { cut -d: -f1|awk '{print tolower($0)}' ; }

shrt_from_lnk() {
try_mv_lnk() { [ "$CSHRT_WITH_RM" == 1 ] && mv -f "$lnk_file" "$LW_DEF_TMP" ; }
lnk_data_get() { echo "$lnk_data"|grep "$1"|cut -d: -f2-|sed 's|^ ||g' ; }
lnk_data_get() { grep -a "$1"<<<"$lnk_data"|cut -d: -f2-|sed 's|^ ||g' ; }
fix_winstd_path() { sed 's|%ProgramFiles(x86)%|C:\\Program Files (x86)|gi;s|%ProgramFiles%|C:\\Program Files|gi' ; }
fix_path() {
fix_winstd_path|sed "s|^.|$WINEPREFIX/dosdevices/$lnk_exe_drive|g"|sed 's|\\$||g;s|\\\\|/|g;s|\\|/|g;s| $||g'
Expand Down Expand Up @@ -3914,6 +3914,17 @@ shrt_from_lnk() {
SHRT_NAME="$(sed 's|\.lnk$||i'<<<"$lnk_name")"
lnk_exe_drive="$(lnk_data_get 'Local Base Path'|drive_tolower)"
lnk_exe="$(ipath "$(lnk_data_get 'Local Base Path'|fix_path)"|head -1)"
BROKELNK=('Яндекс Музыка.lnk')
BROKELNKEXE=('Яндекс Музыка.exe')
if [[ "${BROKELNK[@],,}" =~ "${orig_lnk_name,,}" ]]
then
for (( i=0; i<${#BROKELNK[@]}; i++ ))
do
[[ "${BROKELNK[$i],,}" == "${orig_lnk_name,,}" ]] && \
lnk_exe="$(ipath "$(dirname "$(lnk_data_get 'Local Base Path'|\
fix_path)")/${BROKELNKEXE[$i]}"|head -1)"
done
fi
lnk_exe_ico="$(lnk_data_get 'Icon File Name')"
lnk_exe_ico_drive="$(echo "$lnk_exe_ico"|fix_winstd_path|drive_tolower)"
lnk_exe_ico="$(ipath "$(lnk_exe_drive=$lnk_exe_ico_drive ; echo "$lnk_exe_ico"|fix_path)"|head -1)"
Expand All @@ -3935,6 +3946,7 @@ shrt_from_lnk() {
if [[ -n "$(echo "$lnk_exe_name"|grep -Eio '\.exe$|\.bat$')" && \
! "${IGNEXES[@],,}" =~ "${lnk_exe_name,,}" && \
! "${IGNLNK[@],,}" =~ "${orig_lnk_name,,}" && \
"${lnk_exe_name,,}" != 'uninstall '*.exe && \
"$lnk_args" != "--uninstall" ]]
then
LU_EXE="$lnk_exe"
Expand Down
2 changes: 1 addition & 1 deletion lwrap/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname='lwrap'
pkgver='0.78.4'
pkgrel='6'
pkgrel='7'
pkgdesc='Lux Wine wrapper for RunImage container'
arch=('x86_64')
url='https://github.com/VHSgunzo/lux-wine'
Expand Down

0 comments on commit 6df73e6

Please sign in to comment.