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
e60b6cd0
Commit
e60b6cd0
authored
Nov 08, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'update-start.sh1' of github.com:Htylol/PortWINE into Htylol-update-start.sh1
parents
8f929940
c26ce5b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
24 deletions
+20
-24
functions_helper
data_from_portwine/scripts/functions_helper
+9
-9
start.sh
data_from_portwine/scripts/start.sh
+11
-15
No files found.
data_from_portwine/scripts/functions_helper
View file @
e60b6cd0
...
@@ -904,7 +904,7 @@ search_desktop_file () {
...
@@ -904,7 +904,7 @@ search_desktop_file () {
if [[
$DESKTOP_WITH_TIME
== enabled ]] || [[
$SORT_WITH_TIME
== enabled ]] ; then
if [[
$DESKTOP_WITH_TIME
== enabled ]] || [[
$SORT_WITH_TIME
== enabled ]] ; then
while IFS=
" "
read -r -a line2 ; do
while IFS=
" "
read -r -a line2 ; do
if [[ -z
${
line2
[0]
}
]] \
if [[ -z
${
line2
[0]
}
]] \
|| [[ !
${
line2
[0],,
}
=~
(.bat
$|
.exe
$|
.msi
$|
.reg
$)
]] ; then
|| [[ !
${
line2
[0],,
}
=~
.(bat|exe|msi|reg)
$
]] ; then
BROKEN_LINE=1
BROKEN_LINE=1
break
break
fi
fi
...
@@ -939,7 +939,7 @@ search_desktop_file () {
...
@@ -939,7 +939,7 @@ search_desktop_file () {
# Ремонт, если есть пустые строки и непонятные строки без .exe, .bat, .msi, .reg
# Ремонт, если есть пустые строки и непонятные строки без .exe, .bat, .msi, .reg
if [[
$BROKEN_LINE
== 1 ]] ; then
if [[
$BROKEN_LINE
== 1 ]] ; then
while IFS=
" "
read -r -a line4 ; do
while IFS=
" "
read -r -a line4 ; do
if [[ -n
${
line4
[0]
}
]] && [[
${
line4
[0]
}
=~ (.[Bb][Aa][Tt]
$|
.[Ee][Xx][Ee]
$|
.[Mm][Ss][Ii]
$|
.[Rr][Ee][Gg]
$)
]]
if [[ -n
${
line4
[0]
}
]] && [[
${
line4
[0]
,,
}
=~ .(bat|exe|msi|reg)
$
]]
then echo
"
${
line4
[*]
}
"
then echo
"
${
line4
[*]
}
"
fi
fi
done <
"
$PORT_WINE_TMP_PATH
/statistics"
>
"
$PORT_WINE_TMP_PATH
/statistics_repair"
done <
"
$PORT_WINE_TMP_PATH
/statistics"
>
"
$PORT_WINE_TMP_PATH
/statistics_repair"
...
@@ -1114,8 +1114,8 @@ create_name_desktop () {
...
@@ -1114,8 +1114,8 @@ create_name_desktop () {
fi
fi
if ((
${#
PORTWINE_DB_DESKTOP
}
> 3 )) ; then
if ((
${#
PORTWINE_DB_DESKTOP
}
> 3 )) ; then
for ((i=0 ; i<
${#
PORTWINE_DB_DESKTOP
}
; i++)) ; do
for ((i=0 ; i<
${#
PORTWINE_DB_DESKTOP
}
; i++)) ; do
if [[
${
PORTWINE_DB_DESKTOP
:i:2
}
=~
([a-z][A-Z]|[a-z]
[0-9]) ]] \
if [[
${
PORTWINE_DB_DESKTOP
:i:2
}
=~
[a-z]([A-Z]|
[0-9]) ]] \
&& [[ !
${
PORTWINE_DB_DESKTOP
:i:3
}
=~
([a-z][A-Z]
" "
|[a-z][0-9]
" "
)
]] ; then
&& [[ !
${
PORTWINE_DB_DESKTOP
:i:3
}
=~
[a-z]([A-Z]|[0-9])
" "
]] ; then
PORTWINE_DB_PROXY+=
"
${
PORTWINE_DB_DESKTOP
:i:1
}
"
PORTWINE_DB_PROXY+=
"
${
PORTWINE_DB_DESKTOP
:i:1
}
"
elif [[
${
PORTWINE_DB_DESKTOP
:i:3
}
=~ [0-9][0-9][a-zA-Z] ]] ; then
elif [[
${
PORTWINE_DB_DESKTOP
:i:3
}
=~ [0-9][0-9][a-zA-Z] ]] ; then
PORTWINE_DB_PROXY+=
"
${
PORTWINE_DB_DESKTOP
:i:2
}
"
PORTWINE_DB_PROXY+=
"
${
PORTWINE_DB_DESKTOP
:i:2
}
"
...
@@ -1524,20 +1524,20 @@ init_wine_ver () {
...
@@ -1524,20 +1524,20 @@ init_wine_ver () {
export
WINELOADER
=
"
${
WINEDIR
}
/bin/wine"
export
WINELOADER
=
"
${
WINEDIR
}
/bin/wine"
export
WINESERVER
=
"
${
WINEDIR
}
/bin/wineserver"
export
WINESERVER
=
"
${
WINEDIR
}
/bin/wineserver"
if
[[
-d
"
${
WINEDIR
}
/files"
&&
!
-d
"
${
WINEDIR
}
/dist"
]]
;
then
if
[[
-d
"
${
WINEDIR
}
/files"
&&
!
-d
"
${
WINEDIR
}
/dist"
]]
;
then
for
clear_dist_files
in
$(
ls
"
${
WINEDIR
}
"
|
sed
-
e
"s/^files
$/
/g"
|
sed
-e
"s/^version
$/
/g"
)
;
do
for
clear_dist_files
in
$(
ls
"
${
WINEDIR
}
"
|
sed
-
r
"s/^(files|version)
$/
/g"
)
;
do
rm
-fr
"
${
WINEDIR
}
/
$clear_dist_files
"
rm
-fr
"
${
WINEDIR
}
/
$clear_dist_files
"
done
done
mv
-f
"
${
WINEDIR
}
/files"
/
*
"
${
WINEDIR
}
/"
mv
-f
"
${
WINEDIR
}
/files"
/
*
"
${
WINEDIR
}
/"
rm
-fr
"
${
WINEDIR
}
/files"
rm
-fr
"
${
WINEDIR
}
/files"
elif
[[
!
-d
"
${
WINEDIR
}
/files"
&&
-d
"
${
WINEDIR
}
/dist"
]]
;
then
elif
[[
!
-d
"
${
WINEDIR
}
/files"
&&
-d
"
${
WINEDIR
}
/dist"
]]
;
then
for
clear_dist_files
in
$(
ls
"
${
WINEDIR
}
"
|
sed
-
e
"s/^dist
$/
/g"
|
sed
-e
"s/^version
$/
/g"
)
;
do
for
clear_dist_files
in
$(
ls
"
${
WINEDIR
}
"
|
sed
-
r
"s/^(dist|version)
$/
/g"
)
;
do
rm
-fr
"
${
WINEDIR
}
/
$clear_dist_files
"
rm
-fr
"
${
WINEDIR
}
/
$clear_dist_files
"
done
done
mv
-f
"
${
WINEDIR
}
/dist"
/
*
"
${
WINEDIR
}
/"
mv
-f
"
${
WINEDIR
}
/dist"
/
*
"
${
WINEDIR
}
/"
rm
-fr
"
${
WINEDIR
}
/dist"
rm
-fr
"
${
WINEDIR
}
/dist"
elif
[[
-f
"
${
WINEDIR
}
/proton_dist.tar"
]]
;
then
elif
[[
-f
"
${
WINEDIR
}
/proton_dist.tar"
]]
;
then
unpack
"
${
WINEDIR
}
/proton_dist.tar"
"
${
WINEDIR
}
/"
unpack
"
${
WINEDIR
}
/proton_dist.tar"
"
${
WINEDIR
}
/"
for
clear_dist_files
in
$(
ls
"
${
WINEDIR
}
"
|
sed
-
e
"s/^bin
$/
/g"
|
sed
-e
"s/^lib
$/
/g"
|
sed
-e
"s/^lib64
$/
/g"
|
sed
-e
"s/^share
$/
/g"
|
sed
-e
"s/^version
$/
/g"
)
;
do
for
clear_dist_files
in
$(
ls
"
${
WINEDIR
}
"
|
sed
-
r
"s/^(bin|lib|lib64|share|version)
$/
/g"
)
;
do
rm
-fr
"
${
WINEDIR
}
/
$clear_dist_files
"
rm
-fr
"
${
WINEDIR
}
/
$clear_dist_files
"
done
done
fi
fi
...
@@ -2778,7 +2778,7 @@ pw_create_gui_png () {
...
@@ -2778,7 +2778,7 @@ pw_create_gui_png () {
fi
fi
fi
fi
PORTPROTON_NAME
=
"
$
(
echo
"
${
PORTPROTON_NAME
}
"
|
sed
"s/
\`
//g"
|
sed
"s/
\"
//g"
|
sed
"s/'//g"
|
sed
"s/
\!
//g"
)
"
PORTPROTON_NAME
=
"
$
{
PORTPROTON_NAME
//(\
`
|
\"
|
\'
|
\!
)
/
}
)
"
export PORTPROTON_NAME
export PORTPROTON_NAME
edit_db_from_gui PORTPROTON_NAME FILE_DESCRIPTION
edit_db_from_gui PORTPROTON_NAME FILE_DESCRIPTION
fi
fi
...
@@ -5939,7 +5939,7 @@ portwine_output_yad_shortcut () {
...
@@ -5939,7 +5939,7 @@ portwine_output_yad_shortcut () {
[[
"
$PW_GUI_START
"
==
"NOTEBOOK"
]]
&&
unset
PW_YAD_FORM_TAB
[[
"
$PW_GUI_START
"
==
"NOTEBOOK"
]]
&&
unset
PW_YAD_FORM_TAB
restart_pp
restart_pp
fi
fi
elif
[[
"
$PW_YAD_OUT
"
=
~
(
^1
$|
^2
$|
^252
$)
]]
;
then
elif
[[
"
$PW_YAD_OUT
"
=
~
^
(
1|2|252
)
$
]]
;
then
print_info
"Restarting PP..."
print_info
"Restarting PP..."
[[
-n
$KEY_MENU
]]
&&
unset
portwine_exe
[[
-n
$KEY_MENU
]]
&&
unset
portwine_exe
[[
"
$PW_GUI_START
"
==
"NOTEBOOK"
]]
&&
unset
PW_YAD_FORM_TAB
[[
"
$PW_GUI_START
"
==
"NOTEBOOK"
]]
&&
unset
PW_YAD_FORM_TAB
...
...
data_from_portwine/scripts/start.sh
View file @
e60b6cd0
...
@@ -52,25 +52,21 @@ if [[ "${1,,}" =~ .ppack$ ]] ; then
...
@@ -52,25 +52,21 @@ if [[ "${1,,}" =~ .ppack$ ]] ; then
export
PW_NO_RESTART_PPDB
=
"1"
export
PW_NO_RESTART_PPDB
=
"1"
export
PW_DISABLED_CREATE_DB
=
"1"
export
PW_DISABLED_CREATE_DB
=
"1"
portwine_exe
=
"
$1
"
portwine_exe
=
"
$1
"
elif
[[
-f
"
$1
"
]]
;
then
elif
[[
"
${
1
,,
}
"
=
~ .
(
exe|bat|msi|reg
)
$
]]
;
then
if
[[
-f
"
$1
"
]]
;
then
portwine_exe
=
"
$(
realpath
-s
"
$1
"
)
"
portwine_exe
=
"
$(
realpath
-s
"
$1
"
)
"
elif
[[
-f
"
$OLDPWD
/
$1
"
]]
\
elif
[[
-f
"
$OLDPWD
/
$1
"
]]
;
then
&&
[[
"
${
1
,,
}
"
=
~
(
.exe
$|
.bat
$|
.msi
$|
.reg
$)
]]
then
portwine_exe
=
"
$(
realpath
-s
"
$OLDPWD
/
$1
"
)
"
portwine_exe
=
"
$(
realpath
-s
"
$OLDPWD
/
$1
"
)
"
elif
[[
"
$1
"
=
~
(
^--debug
$|
^--launch
$|
^--edit-db
$)
]]
\
elif
[[
!
-f
"
$1
"
]]
;
then
&&
[[
-f
"
$2
"
]]
then
portwine_exe
=
"
$(
realpath
-s
"
$2
"
)
"
elif
[[
"
$1
"
=
~
(
^--debug
$|
^--launch
$|
^--edit-db
$)
]]
\
&&
[[
-f
"
$OLDPWD
/
$2
"
]]
\
&&
[[
"
${
2
,,
}
"
=
~
(
.exe
$|
.bat
$|
.msi
$|
.reg
$)
]]
then
portwine_exe
=
"
$(
realpath
-s
"
$OLDPWD
/
$2
"
)
"
elif
[[
"
${
1
,,
}
"
=
~
(
.exe
$|
.bat
$|
.msi
$|
.reg
$)
]]
then
portwine_exe
=
"
$1
"
portwine_exe
=
"
$1
"
MISSING_DESKTOP_FILE
=
"1"
MISSING_DESKTOP_FILE
=
"1"
fi
elif
[[
"
$1
"
=
~ ^--
(
debug|launch|edit-db
)
$
&&
"
${
2
,,
}
"
=
~ .
(
exe|bat|msi|reg
)
$
]]
;
then
if
[[
-f
"
$2
"
]]
;
then
portwine_exe
=
"
$(
realpath
-s
"
$2
"
)
"
elif
[[
-f
"
$OLDPWD
/
$2
"
]]
;
then
portwine_exe
=
"
$(
realpath
-s
"
$OLDPWD
/
$2
"
)
"
fi
fi
fi
export
portwine_exe
export
portwine_exe
...
...
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