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
c032c309
Commit
c032c309
authored
Jul 15, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'branch-version' of github.com:Htylol/PortWINE into Htylol-branch-version
parents
23f05ea4
d7c1ac8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
functions_helper
data_from_portwine/scripts/functions_helper
+6
-6
start.sh
data_from_portwine/scripts/start.sh
+10
-7
No files found.
data_from_portwine/scripts/functions_helper
View file @
c032c309
...
...
@@ -1360,12 +1360,12 @@ pw_init_db () {
# GUI UPDATE SCRIPTS
pw_port_update
()
{
case
"
$BRANCH
"
in
master|stable
)
BRANCH_VERSION
=
"SCRIPTS_STABLE_VERSION"
master|stable
)
BRANCH_VERSION
_UPDATE
=
"SCRIPTS_STABLE_VERSION"
BRANCH
=
"master"
;;
devel|beta
)
BRANCH_VERSION
=
"SCRIPTS_NEXT_VERSION"
devel|beta
)
BRANCH_VERSION
_UPDATE
=
"SCRIPTS_NEXT_VERSION"
BRANCH
=
"devel"
;;
esac
...
...
@@ -1393,7 +1393,7 @@ pw_port_update () {
[[
!
-f
"
${
PORT_WINE_TMP_PATH
}
/scripts_update_notifier"
]]
&&
echo
"1"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_update_notifier"
read
"scripts_update_not"
<
"
${
PORT_WINE_TMP_PATH
}
/scripts_update_notifier"
if
[[
"
${
scripts_update_not
}
"
==
"1"
]]
;
then
scripts_current_ver
=
$(
grep
"
$BRANCH_VERSION
"
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
|
awk
-F
"="
'{print $2}'
)
scripts_current_ver
=
$(
grep
"
$BRANCH_VERSION
_UPDATE
"
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
|
awk
-F
"="
'{print $2}'
)
print_info
"Scripts version in git =
${
scripts_current_ver
}
"
print_info
"Scripts version local =
${
scripts_install_ver
}
"
if
[[
!
-z
"
${
scripts_current_ver
}
"
]]
&&
[[
"
${
scripts_current_ver
}
"
-gt
"
${
scripts_install_ver
}
"
]]
;
then
...
...
@@ -1410,7 +1410,7 @@ pw_port_update () {
else
curl
-s
--list-only
"
${
URL_FOR_CHANGELOG
}
/
${
PW_CHANGELOG_FILE
}
"
|
tee
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
CHANGLOG_NEWS
=
$(
sed
"/Scripts version
${
scripts_install_ver
}
/,
$
d"
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
|
sed
'1,/---/ d'
)
xcsd
=
$(
"
${
pw_yad
}
"
--title
"
$(
gettext
"Update scripts:"
)
v.
${
scripts_current_ver
}
"
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
xcsd
=
$(
"
${
pw_yad
}
"
--title
"
$(
gettext
"Update scripts:"
)
v.
(
${
scripts_install_ver
}
-
${
BRANCH_VERSION
}
)
"
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--form
--separator
=
'%%%'
--width
=
1200
--height
=
600
\
--field
=
":TXT"
"
${
CHANGLOG_NEWS
}
"
\
--button
=
"
$(
gettext
"EXIT"
)
"
!
"
$PW_GUI_ICON_PATH
/
$BUTTON_SIZE
.png"
!
""
:252
\
...
...
data_from_portwine/scripts/start.sh
View file @
c032c309
...
...
@@ -176,9 +176,12 @@ if [[ -z "$BRANCH" ]] ; then
echo
'export BRANCH="master"'
>>
"
$USER_CONF
"
export
BRANCH
=
"master"
fi
if
[[
"
$BRANCH
"
==
"master"
]]
then
print_info
"Branch in used: STABLE
\n
"
else
print_warning
"Branch in used: DEVEL
\n
"
if
[[
"
$BRANCH
"
==
"master"
]]
;
then
print_info
"Branch in used: STABLE
\n
"
export
BRANCH_VERSION
=
"
$(
gettext
'stable'
)
"
else
print_warning
"Branch in used: DEVEL
\n
"
export
BRANCH_VERSION
=
"devel"
fi
# choose mirror
...
...
@@ -509,7 +512,7 @@ if [[ -f "${portwine_exe}" ]] ; then
"
${
pw_yad
}
"
--key
=
$KEY_START
--notebook
--active-tab
=
${
TAB_START
}
\
--gui-type
=
settings-notebook
\
--width
=
"
${
PW_START_SIZE_W
}
"
--tab-pos
=
"
${
PW_TAB_POSITON
}
"
--center
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}
)"
--expand
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}
-
${
BRANCH_VERSION
}
)"
--expand
\
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--tab
=
"
$(
gettext
"GENERAL"
)
"
!
"
$PW_GUI_ICON_PATH
/
$TAB_SIZE
.png"
!
""
\
--tab
=
"
$(
gettext
"SETTINGS"
)
"
!
"
$PW_GUI_ICON_PATH
/
$TAB_SIZE
.png"
!
""
\
...
...
@@ -549,7 +552,7 @@ if [[ -f "${portwine_exe}" ]] ; then
"
${
pw_yad
}
"
--key
=
$KEY_START
--paned
--center
\
--gui-type
=
settings-paned
\
--width
=
"
${
PW_START_SIZE_W
}
"
--tab-pos
=
"
${
PW_TAB_POSITON
}
"
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}
)"
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}
-
${
BRANCH_VERSION
}
)"
\
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--button
=
"
${
PW_SHORTCUT
}
"
\
--button
=
"
$(
gettext
"DEBUG"
)
"
!
"
$PW_GUI_ICON_PATH
/
$BUTTON_SIZE
.png"
!
"
$(
gettext
"Launch with the creation of a .log file at the root PortProton"
)
"
:102
\
...
...
@@ -704,7 +707,7 @@ else
--gui-type
=
settings-notebook
\
--width
=
"
${
PW_MAIN_SIZE_W
}
"
--height
=
"
${
PW_MAIN_SIZE_H
}
"
--no-buttons
\
--auto-close
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}
)"
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}
-
${
BRANCH_VERSION
}
)"
\
--tab-pos
=
bottom
\
--tab
=
"
$(
gettext
"AUTOINSTALLS"
)
"
!
"
$PW_GUI_ICON_PATH
/
$TAB_SIZE
.png"
!
""
\
--tab
=
"
$(
gettext
"EMULATORS"
)
"
!
"
$PW_GUI_ICON_PATH
/
$TAB_SIZE
.png"
!
""
\
...
...
@@ -717,7 +720,7 @@ else
--gui-type
=
settings-notebook
\
--width
=
"
${
PW_MAIN_SIZE_W
}
"
--height
=
"
${
PW_MAIN_SIZE_H
}
"
--no-buttons
\
--auto-close
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}
)"
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}
-
${
BRANCH_VERSION
}
)"
\
--tab-pos
=
bottom
\
--tab
=
"
$(
gettext
"INSTALLED"
)
"
!
"
$PW_GUI_ICON_PATH
/
$TAB_SIZE
.png"
!
""
\
--tab
=
"
$(
gettext
"AUTOINSTALLS"
)
"
!
"
$PW_GUI_ICON_PATH
/
$TAB_SIZE
.png"
!
""
\
...
...
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