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
Vladislav
PortWINE
Commits
79eef0af
Commit
79eef0af
authored
Sep 15, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace head -n 1 on <
parent
76eaa008
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
functions_helper
data_from_portwine/scripts/functions_helper
+10
-9
start.sh
data_from_portwine/scripts/start.sh
+2
-3
No files found.
data_from_portwine/scripts/functions_helper
View file @
79eef0af
...
...
@@ -1567,8 +1567,7 @@ pw_port_update () {
if
[[
!
-f
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
]]
;
then
echo
"2024"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
fi
scripts_install_ver
=
$(
head
-n
1
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
)
print_info
"Check update..."
scripts_install_ver
=
$(
<
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
)
URL_ETERFUND
=
"https://gitlab.eterfund.ru/Castro-Fidel/PortWINE/raw/
${
BRANCH
}
/data_from_portwine/scripts/var"
URL_GITHUB
=
"https://raw.githubusercontent.com/Castro-Fidel/PortWINE/
${
BRANCH
}
/data_from_portwine/scripts/var"
...
...
@@ -1623,13 +1622,13 @@ pw_port_update () {
if
[[
!
-f
"
${
PORT_WINE_TMP_PATH
}
/update_skip_mirror"
]]
;
then
pw_check_update
else
CHECK_UPDATE_MIRROR
=
$(
head
-n
1
"
${
PORT_WINE_TMP_PATH
}
/update_skip_mirror"
)
CHECK_UPDATE_MIRROR
=
$(
<
"
${
PORT_WINE_TMP_PATH
}
/update_skip_mirror"
)
UPDATE_SKIP_DAYS
=
"
$(
echo
"
${
CHECK_UPDATE_MIRROR
}
"
|
awk
-F
" "
'{print $1}'
)
"
UPDATE_DATE_MIRROR
=
"
$(
echo
"
${
CHECK_UPDATE_MIRROR
}
"
|
awk
-F
" "
'{print $2}'
)
"
UPDATE_SKIP_DATE
=
"
$(
echo
"
${
CHECK_UPDATE_MIRROR
}
"
|
awk
-F
" "
'{print $4}'
)
"
UPDATE_DAYS
=
$(
date
+%-j
)
UPDATE_MINUTES
=
$(($(
date
+%-H
)
*
60
+
$(
date
+%-M
)))
if
((
$((
UPDATE_DATE_MIRROR
+
24
0
))
<
=
UPDATE_MINUTES
))
\
if
((
$((
UPDATE_DATE_MIRROR
+
36
0
))
<
=
UPDATE_MINUTES
))
\
||
[[
"
$UPDATE_SKIP_DAYS
"
!=
"
$UPDATE_DAYS
"
]]
\
||
[[
"
$PW_FORCE_UPDATE
"
==
"1"
]]
then
...
...
@@ -1637,8 +1636,10 @@ pw_port_update () {
fi
fi
if
((
$((
UPDATE_SKIP_DATE
+
$((
(
RANDOM%
31
)+
30
))
))
<
=
UPDATE_MINUTES
))
\
if
((
$((
UPDATE_SKIP_DATE
+
$((
(
RANDOM%
11
)+
25
))
))
<
=
UPDATE_MINUTES
))
\
||
[[
-n
"
$PW_UPDATE_ALL_LIST
"
]]
;
then
print_info
"Check update..."
echo
""
if
[[
-z
"
$UPDATE_URL_MIRROR
"
]]
;
then
UPDATE_URL_MIRROR
=
"
$(
echo
"
${
CHECK_UPDATE_MIRROR
}
"
|
awk
-F
" "
'{print $3}'
)
"
sed
-i
's/[0-9]*$/'
"
$UPDATE_MINUTES
"
'/'
"
${
PORT_WINE_TMP_PATH
}
/update_skip_mirror"
...
...
@@ -3988,7 +3989,7 @@ A brief instruction:
export
bool_from_yad
=
$((
${
bool_from_yad
}
+
1
))
done
PW_ADD_SETTINGS
=
$(
head
-n
1
"
${
PW_TMPFS_PATH
}
/tmp_output_yad_fps_limit"
)
PW_ADD_SETTINGS
=
$(
<
"
${
PW_TMPFS_PATH
}
/tmp_output_yad_fps_limit"
)
PW_WINDOWS_VER
=
"
$(
echo
${
PW_ADD_SETTINGS
}
|
awk
-F
"%"
'{print $1}'
)
"
PW_DLL_INSTALL
=
"
$(
echo
${
PW_ADD_SETTINGS
}
|
awk
-F
"%"
'{print $2}'
)
"
...
...
@@ -4535,7 +4536,7 @@ fi
export
bool_from_yad
=
$((
${
bool_from_yad
}
+
1
))
done
PW_ADD_SETTINGS_DGV2
=
$(
head
-n
1
"
${
PW_TMPFS_PATH
}
/tmp_yad_dgv2_set_cb"
)
PW_ADD_SETTINGS_DGV2
=
$(
<
"
${
PW_TMPFS_PATH
}
/tmp_yad_dgv2_set_cb"
)
PW_DGV2_RESOLUTION
=
"
$(
echo
${
PW_ADD_SETTINGS_DGV2
}
|
awk
-F
"%"
'{print $1}'
)
"
PW_DGV2_FPS_LIMIT
=
"
$(
echo
${
PW_ADD_SETTINGS_DGV2
}
|
awk
-F
"%"
'{print $2}'
)
"
...
...
@@ -4725,7 +4726,7 @@ relaxed - Same as fifo but allows tearing when below the monitors refresh rate."
export
bool_from_yad
=
$((
${
bool_from_yad
}
+
1
))
done
PW_ADD_SETTINGS_GS
=
$(
head
-n
1
"
${
PW_TMPFS_PATH
}
/tmp_yad_gs_set_cb"
)
PW_ADD_SETTINGS_GS
=
$(
<
"
${
PW_TMPFS_PATH
}
/tmp_yad_gs_set_cb"
)
PW_GS_SHOW_RESOLUTION
=
"
$(
echo
${
PW_ADD_SETTINGS_GS
}
|
awk
-F
"%"
'{print $1}'
)
"
PW_GS_INTERNAL_RESOLUTION
=
"
$(
echo
${
PW_ADD_SETTINGS_GS
}
|
awk
-F
"%"
'{print $2}'
|
tr
','
'.'
)
"
...
...
@@ -4827,7 +4828,7 @@ gui_userconf () {
gui_open_user_conf
;;
166
)
PW_ADD_SETTINGS_UC
=
$(
head
-n
1
"
${
PW_TMPFS_PATH
}
/tmp_yad_userconf_set_cb"
)
PW_ADD_SETTINGS_UC
=
$(
<
"
${
PW_TMPFS_PATH
}
/tmp_yad_userconf_set_cb"
)
PW_GPU_USE
=
"
$(
echo
${
PW_ADD_SETTINGS_UC
}
|
awk
-F
"%"
'{print $1}'
)
"
PW_SOUND_DRIVER_USE
=
"
$(
echo
${
PW_ADD_SETTINGS_UC
}
|
awk
-F
"%"
'{print $2}'
)
"
GUI_THEME
=
"
$(
echo
${
PW_ADD_SETTINGS_UC
}
|
awk
-F
"%"
'{print $3}'
)
"
...
...
data_from_portwine/scripts/start.sh
View file @
79eef0af
...
...
@@ -162,7 +162,7 @@ export urlg="https://linux-gaming.ru/portproton/"
export
url_cloud
=
"https://cloud.linux-gaming.ru/portproton"
export
PW_WINELIB
=
"
${
PORT_WINE_TMP_PATH
}
/libs
${
PW_LIBS_VER
}
"
try_remove_dir
"
${
PW_WINELIB
}
/var"
install_ver
=
"
$(
head
-n
1
"
${
PORT_WINE_TMP_PATH
}
/PortProton_ver"
)
"
install_ver
=
"
$(
<
"
${
PORT_WINE_TMP_PATH
}
/PortProton_ver"
)
"
export
install_ver
export
WINETRICKS_DOWNLOADER
=
"curl"
export
USER_CONF
=
"
${
PORT_WINE_PATH
}
/data/user.conf"
...
...
@@ -299,7 +299,6 @@ if [[ "${SKIP_CHECK_UPDATES}" != 1 ]] ; then
PW_SCREEN_RESOLUTION
=
"
$(
<
"
${
PW_TMPFS_PATH
}
/xrandr.tmp"
sed
-rn
's/^.*primary.* ([0-9]+x[0-9]+).*$/\1/p'
)
"
PW_SCREEN_PRIMARY
=
"
$(
grep
-e
'primary'
"
${
PW_TMPFS_PATH
}
/xrandr.tmp"
|
awk
'{print $1}'
)
"
export
PW_SCREEN_PRIMARY PW_SCREEN_RESOLUTION
echo
""
print_var PW_SCREEN_RESOLUTION PW_SCREEN_PRIMARY
else
print_error
"xrandr - broken!"
...
...
@@ -349,7 +348,7 @@ if [[ "${SKIP_CHECK_UPDATES}" != 1 ]] ; then
PW_FILESYSTEM
=
$(
stat
-f
-c
%T
"
${
PORT_WINE_PATH
}
"
)
export
PW_FILESYSTEM
else
scripts_install_ver
=
$(
head
-n
1
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
)
scripts_install_ver
=
$(
<
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
)
export
scripts_install_ver
fi
...
...
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