Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
84d4213d
Commit
84d4213d
authored
Jun 09, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udated GUI: get other wine
parent
9035bc2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
72 deletions
+99
-72
functions_helper
data_from_portwine/scripts/functions_helper
+99
-72
No files found.
data_from_portwine/scripts/functions_helper
View file @
84d4213d
...
@@ -3087,60 +3087,72 @@ gui_gamescope () {
...
@@ -3087,60 +3087,72 @@ gui_gamescope () {
# GUI GET OTHER WINE
# GUI GET OTHER WINE
gui_proton_downloader
()
{
gui_proton_downloader
()
{
unset
VERSION_WINE_GIT VERSION_INSTALLED_WINE URL_VERSION_PROTON_GIT GIVE_WINE_URL
unset
VERSION_WINE_GIT VERSION_INSTALLED_WINE URL_VERSION_PROTON_GIT GIVE_WINE_URL
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_set_wine"
if
[[
"
$PW_WINE_USE
"
==
PROTON_LG
]]
if
[[
"
$PW_WINE_USE
"
==
PROTON_LG
]]
then
PW_WINE_USE
=
"
${
PW_PROTON_LG_VER
}
"
then
PW_WINE_USE
=
"
${
PW_PROTON_LG_VER
}
"
elif
[[
"
$PW_WINE_USE
"
==
WINE_
*
_LG
]]
||
[[
"
$PW_WINE_USE
"
==
WINE_LG
]]
elif
[[
"
$PW_WINE_USE
"
==
WINE_
*
_LG
]]
||
[[
"
$PW_WINE_USE
"
==
WINE_LG
]]
then
PW_WINE_USE
=
"
${
PW_WINE_LG_VER
}
"
then
PW_WINE_USE
=
"
${
PW_WINE_LG_VER
}
"
fi
fi
export
PW_WINE_USE
export
PW_WINE_USE
if
[[
"
$1
"
==
"silent"
]]
\
if
[[
"
$1
"
==
"silent"
]]
\
&&
[[
-d
"
${
PORT_WINE_PATH
}
/data/dist/
${
PW_WINE_USE
}
"
]]
;
then
&&
[[
-d
"
${
PORT_WINE_PATH
}
/data/dist/
${
PW_WINE_USE
}
"
]]
;
then
return
0
return
0
fi
fi
pw_start_progress_bar_block
"
$(
eval_gettext
"Check new version WINE..."
)
"
pw_start_progress_bar_block
"
$(
eval_gettext
"Check new version WINE..."
)
"
# PROTON_GE
# PROTON_GE
export
PROTON_GE_GIT
=(
$(
curl
-s
"https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases"
|
grep
"browser_download_url.*
\.
tar
\.
gz"
|
cut
-d
\"
-f
4
)
)
export
PROTON_GE_GIT
=(
$(
curl
-s
"https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases"
|
grep
"browser_download_url.*
\.
tar
\.
gz"
|
cut
-d
\"
-f
4
)
)
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
if
[[
!
-z
"
${
PROTON_GE_GIT
}
"
]]
;
then
if
[[
!
-z
"
${
PROTON_GE_GIT
}
"
]]
;
then
for
PGEGIT
in
${
PROTON_GE_GIT
[@]
}
;
do
for
PGEGIT
in
${
PROTON_GE_GIT
[@]
}
;
do
echo
${
PGEGIT
}
|
awk
-F
/
'{print $NF}'
|
sed
's/.tar.gz//'
>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
echo
${
PGEGIT
}
|
awk
-F
/
'{print $NF}'
|
sed
's/.tar.gz//'
>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
done
done
sed
-i
'/Proton-6.5-GE-2/,$d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
sed
-i
'/Proton-6.5-GE-2/,$d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
sed
-i
'/github-action/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
sed
-i
'/github-action/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
sed
-i
'/^$/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
fi
fi
# WINE_KRON4EK
# WINE_KRON4EK
export
WINE_KRON4EK
=(
$(
curl
-s
"https://api.github.com/repos/Kron4ek/Wine-Builds/releases"
|
grep
"browser_download_url.*
\.
tar
\.
xz"
|
cut
-d
\"
-f
4
)
)
export
WINE_KRON4EK
=(
$(
curl
-s
"https://api.github.com/repos/Kron4ek/Wine-Builds/releases"
|
grep
"browser_download_url.*
\.
tar
\.
xz"
|
cut
-d
\"
-f
4
)
)
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
if
[[
!
-z
"
${
WINE_KRON4EK
}
"
]]
;
then
if
[[
!
-z
"
${
WINE_KRON4EK
}
"
]]
;
then
for
PGEGIT
in
${
WINE_KRON4EK
[@]
}
;
do
for
PGEGIT
in
${
WINE_KRON4EK
[@]
}
;
do
echo
${
PGEGIT
}
|
awk
-F
/
'{print $NF}'
|
sed
's/.tar.xz//'
>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
echo
${
PGEGIT
}
|
awk
-F
/
'{print $NF}'
|
sed
's/.tar.xz//'
>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
done
done
sed
-i
'/6.3/,$d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
sed
-i
'/6.3/,$d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
sed
-i
'/-x86/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
sed
-i
'/-x86/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
sed
-i
'/^$/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
fi
fi
# WINE_GE_CUSTOM
# WINE_GE_CUSTOM
export
WINE_GE_CUSTOM
=(
$(
curl
-s
"https://api.github.com/repos/GloriousEggroll/wine-ge-custom/releases"
|
grep
"browser_download_url.*
\.
tar
\.
xz"
|
cut
-d
\"
-f
4
)
)
export
WINE_GE_CUSTOM
=(
$(
curl
-s
"https://api.github.com/repos/GloriousEggroll/wine-ge-custom/releases"
|
grep
"browser_download_url.*
\.
tar
\.
xz"
|
cut
-d
\"
-f
4
)
)
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
if
[[
!
-z
"
${
WINE_GE_CUSTOM
}
"
]]
;
then
if
[[
!
-z
"
${
WINE_GE_CUSTOM
}
"
]]
;
then
for
PGEGIT
in
${
WINE_GE_CUSTOM
[@]
}
;
do
for
PGEGIT
in
${
WINE_GE_CUSTOM
[@]
}
;
do
echo
${
PGEGIT
}
|
awk
-F
/
'{print $NF}'
|
sed
's/.tar.xz//'
>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
echo
${
PGEGIT
}
|
awk
-F
/
'{print $NF}'
|
sed
's/.tar.xz//'
>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
done
done
sed
-i
'/6.23/,$d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
sed
-i
'/6.23/,$d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
sed
-i
'/^$/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
fi
fi
# PROTON_LG
# PROTON_LG
export
PROTON_PW_GIT
=(
$(
curl
-s
"https://api.github.com/repos/Castro-Fidel/wine_builds/releases"
|
grep
"browser_download_url.*
\.
tar
\.
xz"
|
cut
-d
\"
-f
4 |
sort
-r
)
)
export
PROTON_PW_GIT
=(
$(
curl
-s
"https://api.github.com/repos/Castro-Fidel/wine_builds/releases"
|
grep
"browser_download_url.*
\.
tar
\.
xz"
|
cut
-d
\"
-f
4 |
sort
-r
)
)
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
if
[[
!
-z
"
${
PROTON_PW_GIT
}
"
]]
;
then
if
[[
!
-z
"
${
PROTON_PW_GIT
}
"
]]
;
then
for
PPWGIT
in
${
PROTON_PW_GIT
[@]
}
;
do
for
PPWGIT
in
${
PROTON_PW_GIT
[@]
}
;
do
echo
${
PPWGIT
}
|
awk
-F
/
'{print $NF}'
|
sed
's/.tar.xz//'
>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
echo
${
PPWGIT
}
|
awk
-F
/
'{print $NF}'
|
sed
's/.tar.xz//'
>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
done
done
sed
-i
/
${
PW_WINE_LG_VER
}
/d
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
sed
-i
/
${
PW_WINE_LG_VER
}
/d
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
sed
-i
'/plugins/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
sed
-i
'/plugins/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
sed
-i
'/^$/d'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
fi
fi
pw_stop_progress_bar
pw_stop_progress_bar
if
[[
-z
"
${
PROTON_PW_GIT
}
"
]]
;
then
if
[[
-z
"
${
PROTON_PW_GIT
}
"
]]
;
then
yad_error
"
$(
eval_gettext
"Error: check wine."
)
"
yad_error
"
$(
eval_gettext
"Error: check wine."
)
"
export
SKIP_CHECK_UPDATES
=
1
export
SKIP_CHECK_UPDATES
=
1
...
@@ -3157,32 +3169,53 @@ gui_proton_downloader () {
...
@@ -3157,32 +3169,53 @@ gui_proton_downloader () {
done
done
popd
1>/dev/null
||
fatal
popd
1>/dev/null
||
fatal
[[
-z
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
)
"
]]
&&
echo
"nothing"
>
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
TMP_PROTON_PW_GIT
=
"
$(
sed
's/^/FALSE /'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
|
tr
'\n'
' '
)
"
[[
-z
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
)
"
]]
&&
echo
"nothing"
>
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
TMP_PROTON_GE_GIT
=
"
$(
sed
's/^/FALSE /'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
|
tr
'\n'
' '
)
"
[[
-z
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
)
"
]]
&&
echo
"nothing"
>
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
TMP_PROTON_KR_GIT
=
"
$(
sed
's/^/FALSE /'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
|
tr
'\n'
' '
)
"
[[
-z
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
)
"
]]
&&
echo
"nothing"
>
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
TMP_PROTON_CU_GIT
=
"
$(
sed
's/^/FALSE /'
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
|
tr
'\n'
' '
)
"
ls
-l
${
PORT_WINE_PATH
}
/data/dist |
awk
'{print $9}'
|
sed
"/
$PW_PROTON_LG_VER
/d"
|
sed
"/
$PW_WINE_LG_VER
/d"
|
sed
'/^$/d'
1>
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine
TMP_INSTALLED_WINE
=
"
$(
sed
's/^/FALSE /'
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine"
|
tr
'\n'
' '
)
"
# Installed wine
ls
-l
${
PORT_WINE_PATH
}
/data/dist |
awk
'{print $9}'
|
sed
'/^$/d'
1>
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine
if
[[
"
$1
"
!=
"silent"
]]
;
then
if
[[
"
$1
"
!=
"silent"
]]
;
then
# GUI
# GUI
export
KEY_WINE
=
$RANDOM
export
KEY_WINE
=
$RANDOM
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_set"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_kron4ek_set"
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
1
--list
--checklist
--separator
=
""
\
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_set"
--column
"
$(
eval_gettext
"Set"
)
"
\
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_ge_custom_set"
--column
"
$(
eval_gettext
"Select WINE for download:"
)
"
\
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine_set"
$TMP_PROTON_PW_GIT
\
1>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_set_wine"
\
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
1
--list
--separator
=
""
--listen
\
2>/dev/null &
--column
"
$(
eval_gettext
"Select WINE for download:"
)
"
<
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
1>
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_set"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
2
--list
--separator
=
""
--listen
\
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
2
--list
--checklist
--separator
=
""
\
--column
"
$(
eval_gettext
"Select WINE for download:"
)
"
<
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
1>
"
${
PORT_WINE_TMP_PATH
}
/tmp_kron4ek_set"
2>/dev/null &
--column
"
$(
eval_gettext
"Set"
)
"
\
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
3
--list
--separator
=
""
--listen
\
--column
"
$(
eval_gettext
"Select WINE for download:"
)
"
\
--column
"
$(
eval_gettext
"Select WINE for download:"
)
"
<
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
1>
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_set"
2>/dev/null &
$TMP_PROTON_KR_GIT
\
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
4
--list
--separator
=
""
--listen
\
1>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_set_wine"
\
--column
"
$(
eval_gettext
"Select WINE for download:"
)
"
<
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
1>
"
${
PORT_WINE_TMP_PATH
}
/tmp_ge_custom_set"
2>/dev/null &
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
5
--list
--separator
=
""
--listen
\
--column
"
$(
eval_gettext
"Select installed WINE for delete:"
)
"
<
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine"
1>
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine_set"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
3
--list
--checklist
--separator
=
""
\
--column
"
$(
eval_gettext
"Set"
)
"
\
--column
"
$(
eval_gettext
"Select WINE for download:"
)
"
\
$TMP_PROTON_GE_GIT
\
1>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_set_wine"
\
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
4
--list
--checklist
--separator
=
""
\
--column
"
$(
eval_gettext
"Set"
)
"
\
--column
"
$(
eval_gettext
"Select WINE for download:"
)
"
\
$TMP_PROTON_CU_GIT
\
1>>
"
${
PORT_WINE_TMP_PATH
}
/tmp_set_wine"
\
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
$KEY_WINE
--tabnum
=
5
--list
--checklist
--separator
=
""
\
--column
"
$(
eval_gettext
"Set"
)
"
\
--column
"
$(
eval_gettext
"Select installed WINE for delete:"
)
"
\
$TMP_INSTALLED_WINE
\
1>
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine_set"
\
2>/dev/null &
"
${
pw_yad
}
"
--key
=
$KEY_WINE
--notebook
--width
=
500
--height
=
600
--text-align
=
center
\
"
${
pw_yad
}
"
--key
=
$KEY_WINE
--notebook
--width
=
500
--height
=
600
--text-align
=
center
\
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
--title
"
$(
eval_gettext
"WINE MANAGER"
)
"
--separator
=
""
--expand
\
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
--title
"
$(
eval_gettext
"WINE MANAGER"
)
"
--separator
=
""
--expand
\
--tab-pos
=
top
\
--tab-pos
=
top
\
...
@@ -3200,70 +3233,40 @@ gui_proton_downloader () {
...
@@ -3200,70 +3233,40 @@ gui_proton_downloader () {
exit
0
exit
0
fi
fi
if
[[
!
-z
$(
awk
'{print $1}'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_set"
)
]]
;
then
if
[[
!
-z
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_set_wine"
)
]]
;
then
VERSION_WINE_GIT
=
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_set"
)
"
VERSION_WINE_GIT
=
"
$(
sed
's/TRUE//'
"
${
PORT_WINE_TMP_PATH
}
/tmp_set_wine"
)
"
elif
[[
!
-z
$(
awk
'{print $1}'
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_set"
)
]]
;
then
VERSION_WINE_GIT
=
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_set"
)
"
elif
[[
!
-z
$(
awk
'{print $1}'
"
${
PORT_WINE_TMP_PATH
}
/tmp_kron4ek_set"
)
]]
;
then
VERSION_WINE_GIT
=
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_kron4ek_set"
)
"
elif
[[
!
-z
$(
awk
'{print $1}'
"
${
PORT_WINE_TMP_PATH
}
/tmp_ge_custom_set"
)
]]
;
then
VERSION_WINE_GIT
=
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_ge_custom_set"
)
"
elif
[[
!
-z
$(
awk
'{print $1}'
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine_set"
)
]]
;
then
VERSION_INSTALLED_WINE
=
"
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine_set"
)
"
else
print_info
"Nothing to do."
export
SKIP_CHECK_UPDATES
=
1
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
fi
fi
if
[[
"
${
VERSION_WINE_GIT
}
"
==
"nothing"
]]
;
then
if
[[
!
-z
$(
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine_set"
)
]]
;
then
VERSION_INSTALLED_WINE
=
"
$(
sed
's/TRUE//'
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine_set"
)
"
fi
if
[[
-z
"
$VERSION_WINE_GIT
"
]]
\
&&
[[
-z
"
$VERSION_INSTALLED_WINE
"
]]
then
print_info
"Nothing to do."
print_info
"Nothing to do."
export
SKIP_CHECK_UPDATES
=
1
export
SKIP_CHECK_UPDATES
=
1
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
exit
0
fi
fi
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_pw_git"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_kron4ek_git"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_proton_ge_git"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_wine_ge_custom_git"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_installed_wine"
elif
[[
"
$1
"
==
"silent"
]]
&&
[[
!
-z
"
$2
"
]]
;
then
elif
[[
"
$1
"
==
"silent"
]]
&&
[[
!
-z
"
$2
"
]]
;
then
VERSION_WINE_GIT
=
"
$2
"
VERSION_WINE_GIT
=
"
$2
"
fi
fi
for
GIVE_WINE_URL
in
${
PROTON_GE_GIT
[@]
}
${
PROTON_PW_GIT
[@]
}
${
WINE_KRON4EK
[@]
}
${
WINE_GE_CUSTOM
[@]
}
;
do
pw_download_get_wine
()
{
if
[
!
-z
$(
echo
${
GIVE_WINE_URL
}
|
grep
-i
"
${
VERSION_WINE_GIT
}
"
)
]
;
then
export
URL_VERSION_PROTON_GIT
=
"
${
GIVE_WINE_URL
}
"
break
fi
done
if
[[
!
-z
"
${
VERSION_INSTALLED_WINE
}
"
]]
;
then
try_remove_dir
"
${
PORT_WINE_PATH
}
/data/dist/
${
VERSION_INSTALLED_WINE
}
"
unset
VERSION_INSTALLED_WINE
export
SKIP_CHECK_UPDATES
=
1
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
fi
print_info
"Download and install
${
VERSION_WINE_GIT
}
..."
print_info
"Download and install
${
VERSION_WINE_GIT
}
..."
PW_WINE_ARCHIVE
=
"
$(
echo
"
${
URL_VERSION_PROTON_GIT
}
"
|
awk
-F
'/'
'{print $NF}'
|
awk
-F
'.tar'
'{print $1}'
)
"
FILENAME
=
"
$(
basename
"
${
URL_VERSION_PROTON_GIT
}
"
)
"
FILENAME
=
"
$(
basename
"
${
URL_VERSION_PROTON_GIT
}
"
)
"
if
try_download
"
${
URL_VERSION_PROTON_GIT
}
"
"
${
PORT_WINE_PATH
}
/data/tmp/
$FILENAME
"
;
then
if
try_download
"
${
URL_VERSION_PROTON_GIT
}
"
"
${
PORT_WINE_PATH
}
/data/tmp/
$FILENAME
"
;
then
for
archive_type
in
"gz"
"xz"
;
do
if
unpack
"
${
PORT_WINE_PATH
}
/data/tmp/
${
FILENAME
}
"
"
${
PORT_WINE_PATH
}
/data/dist/"
;
then
if
[[
-f
"
${
PORT_WINE_PATH
}
/data/tmp/
${
PW_WINE_ARCHIVE
}
.tar.
${
archive_type
}
"
]]
;
then
try_remove_file
"
${
PORT_WINE_PATH
}
/data/tmp/
${
FILENAME
}
"
if
unpack
"
${
PORT_WINE_PATH
}
/data/tmp/
${
PW_WINE_ARCHIVE
}
.tar.
${
archive_type
}
"
"
${
PORT_WINE_PATH
}
/data/dist/"
;
then
try_remove_file
"
${
PORT_WINE_PATH
}
/data/tmp/
${
PW_WINE_ARCHIVE
}
.tar.
${
archive_type
}
"
if
[
!
-z
"
${
portwine_exe
}
"
]
;
then
if
[
!
-z
"
${
portwine_exe
}
"
]
;
then
PW_WINE_USE
=
"
$(
echo
"
${
VERSION_WINE_GIT
}
"
|
tr
[[
:lower:]]
[[
:upper:]]
)
"
PW_WINE_USE
=
"
$(
echo
"
${
VERSION_WINE_GIT
}
"
|
tr
[[
:lower:]]
[[
:upper:]]
)
"
edit_db_from_gui PW_WINE_USE
edit_db_from_gui PW_WINE_USE
fi
fi
else
else
try_remove_file
"
${
PORT_WINE_PATH
}
/data/tmp/
${
PW_WINE_ARCHIVE
}
.tar.
${
archive_type
}
"
try_remove_file
"
${
PORT_WINE_PATH
}
/data/tmp/
${
FILENAME
}
"
try_remove_dir
"
${
PORT_WINE_PATH
}
/data/dist/
${
PW_WINE_ARCHIV
E
}
"
try_remove_dir
"
${
PORT_WINE_PATH
}
/data/dist/
${
FILENAM
E
}
"
if
yad_error_download
if
yad_error_download
then
gui_proton_downloader
$@
then
gui_proton_downloader
$@
else
else
...
@@ -3271,8 +3274,6 @@ gui_proton_downloader () {
...
@@ -3271,8 +3274,6 @@ gui_proton_downloader () {
init_wine_ver
init_wine_ver
fi
fi
fi
fi
fi
done
else
else
if
yad_error_download
if
yad_error_download
then
gui_proton_downloader
$@
then
gui_proton_downloader
$@
...
@@ -3281,14 +3282,40 @@ gui_proton_downloader () {
...
@@ -3281,14 +3282,40 @@ gui_proton_downloader () {
init_wine_ver
init_wine_ver
fi
fi
fi
fi
}
if
[[
!
-z
"
${
VERSION_INSTALLED_WINE
}
"
]]
;
then
for
REMOVE_WINE
in
${
VERSION_INSTALLED_WINE
}
;
do
try_remove_dir
"
${
PORT_WINE_PATH
}
/data/dist/
${
REMOVE_WINE
}
"
done
if
[[
-z
"
$VERSION_WINE_GIT
"
]]
;
then
export
SKIP_CHECK_UPDATES
=
1
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
fi
fi
if
[[
"
$1
"
!=
"silent"
]]
;
then
if
[[
"
$1
"
!=
"silent"
]]
;
then
for
GIVE_ALL_WINE
in
$VERSION_WINE_GIT
;
do
for
GIVE_WINE_URL
in
${
PROTON_GE_GIT
[@]
}
${
PROTON_PW_GIT
[@]
}
${
WINE_KRON4EK
[@]
}
${
WINE_GE_CUSTOM
[@]
}
;
do
if
[
!
-z
$(
echo
${
GIVE_WINE_URL
}
|
grep
-i
"
${
GIVE_ALL_WINE
}
"
)
]
;
then
export
URL_VERSION_PROTON_GIT
=
"
${
GIVE_WINE_URL
}
"
fi
done
pw_download_get_wine
done
export
SKIP_CHECK_UPDATES
=
1
export
SKIP_CHECK_UPDATES
=
1
edit_db_from_gui
edit_db_from_gui
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
exit
0
else
else
init_wine_ver
init_wine_ver
for
GIVE_WINE_URL
in
${
PROTON_GE_GIT
[@]
}
${
PROTON_PW_GIT
[@]
}
${
WINE_KRON4EK
[@]
}
${
WINE_GE_CUSTOM
[@]
}
;
do
if
[
!
-z
$(
echo
${
GIVE_WINE_URL
}
|
grep
-i
"
${
PW_WINE_USE
}
"
)
]
;
then
export
URL_VERSION_PROTON_GIT
=
"
${
GIVE_WINE_URL
}
"
fi
done
pw_download_get_wine
fi
fi
}
}
export
-f
gui_proton_downloader
export
-f
gui_proton_downloader
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment