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
999b4592
Commit
999b4592
authored
Dec 03, 2020
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added silent installation
parent
5c369f4e
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
13 deletions
+25
-13
portproton.sh
data_from_portwine/scripts/portproton.sh
+7
-3
runlib
data_from_portwine/scripts/runlib
+4
-0
setup
data_from_portwine/scripts/setup
+7
-1
PortBattleNET_vars
data_from_portwine/scripts/vars/PortBattleNET_vars
+0
-1
PortEpic_vars
data_from_portwine/scripts/vars/PortEpic_vars
+1
-1
PortGOG_vars
data_from_portwine/scripts/vars/PortGOG_vars
+1
-1
PortLoL_vars
data_from_portwine/scripts/vars/PortLoL_vars
+1
-1
PortMailRu_vars
data_from_portwine/scripts/vars/PortMailRu_vars
+1
-1
PortOrigin_vars
data_from_portwine/scripts/vars/PortOrigin_vars
+1
-1
PortProton_vars
data_from_portwine/scripts/vars/PortProton_vars
+1
-1
PortUplay_vars
data_from_portwine/scripts/vars/PortUplay_vars
+1
-1
PortWGC_vars
data_from_portwine/scripts/vars/PortWGC_vars
+0
-1
No files found.
data_from_portwine/scripts/portproton.sh
View file @
999b4592
#!/bin/bash
# Author: PortWINE-Linux.ru
.
"
$(
dirname
$(
readlink
-f
"
$0
"
))
/runlib"
START_PORTWINE
if
[
-f
"
$1
"
]
;
then
export
portwine_exe
=
"
$(
readlink
-f
"
$1
"
)
"
export
PATH_TO_GAME
=
"
$(
cd
"
$(
dirname
"
$1
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
START_PORTWINE
if
[
!
-z
${
optirun_on
}
]
;
then
"
${
PW_RUNTIME
}
"
$PW_TERM
${
optirun_on
}
"
${
port_on_run
}
"
"run"
"
$portwine_exe
"
else
"
${
PW_RUNTIME
}
"
$PW_TERM
"
${
port_on_run
}
"
"run"
"
$portwine_exe
"
fi
else
START_PORTWINE
sh
"
${
PORT_SCRIPTS_PATH
}
/winefile"
if
[
!
-z
${
optirun_on
}
]
then
"
${
PW_RUNTIME
}
"
$PW_TERM
${
optirun_on
}
"
${
port_on_run
}
"
"run"
"explorer"
else
"
${
PW_RUNTIME
}
"
$PW_TERM
"
${
port_on_run
}
"
"run"
"explorer"
fi
fi
STOP_PORTWINE
data_from_portwine/scripts/runlib
View file @
999b4592
...
...
@@ -11,6 +11,10 @@ clear && echo '
'
########################################################################
[
$(
id
-u
)
=
0
]
&&
echo
"Do not run this script as root!"
&&
zenity
--error
--text
"Do not run this script as root!"
&&
exit
1
if
[
"
${
s_install
}
"
!=
"1"
]
&&
[
!
-x
"
`
which
"zenity"
2>/dev/null
`
"
]
;
then
echo
"You will need to install: zenity, and restart the port."
xdg-open
"http://portwine-linux.ru/portwine-faq/"
>
/dev/null 2>&1 &
exit
0
fi
########################################################################
sszen
()
{
zenity
--progress
--title
=
"Settings..."
--text
=
"Updating start parameters"
--pulsate
--auto-close
--auto-kill
--width
=
450
...
...
data_from_portwine/scripts/setup
View file @
999b4592
...
...
@@ -118,4 +118,10 @@ if [ -f "${PORT_WINE_PATH}/restart.desktop" ]; then
fi
update-desktop-database
-q
"
${
HOME
}
/.local/share/applications"
xdg-open
"http://portwine-linux.ru/portwine-faq/"
>
/dev/null 2>&1 &
exit
0
if
[
"
${
s_install
}
"
=
"1"
]
;
then
echo
"Installation completed successfully."
else
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
xdg-open
"http://portwine-linux.ru/portwine-faq/"
>
/dev/null 2>&1 &
exit
0
fi
data_from_portwine/scripts/vars/PortBattleNET_vars
View file @
999b4592
...
...
@@ -51,5 +51,4 @@ echo " "
ADD_IN_POST_INSTALL
()
{
rm
-f
"
${
PORT_WINE_PATH
}
/data/pfx/drive_c/ProgramData/Battle.net/Agent/product.db"
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
}
data_from_portwine/scripts/vars/PortEpic_vars
View file @
999b4592
...
...
@@ -47,6 +47,6 @@ echo " "
########################################################################
ADD_IN_POST_INSTALL
()
{
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
echo
" "
}
data_from_portwine/scripts/vars/PortGOG_vars
View file @
999b4592
...
...
@@ -47,5 +47,5 @@ echo " "
########################################################################
ADD_IN_POST_INSTALL
()
{
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
echo
" "
}
data_from_portwine/scripts/vars/PortLoL_vars
View file @
999b4592
...
...
@@ -53,6 +53,6 @@ echo " "
########################################################################
ADD_IN_POST_INSTALL
()
{
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
echo
" "
}
data_from_portwine/scripts/vars/PortMailRu_vars
View file @
999b4592
...
...
@@ -38,5 +38,5 @@ echo " "
########################################################################
ADD_IN_POST_INSTALL
()
{
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
echo
" "
}
data_from_portwine/scripts/vars/PortOrigin_vars
View file @
999b4592
...
...
@@ -50,5 +50,5 @@ echo " "
########################################################################
ADD_IN_POST_INSTALL
()
{
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
echo
" "
}
data_from_portwine/scripts/vars/PortProton_vars
View file @
999b4592
...
...
@@ -63,5 +63,5 @@ done
########################################################################
ADD_IN_POST_INSTALL
()
{
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
echo
" "
}
data_from_portwine/scripts/vars/PortUplay_vars
View file @
999b4592
...
...
@@ -47,5 +47,5 @@ echo " "
########################################################################
ADD_IN_POST_INSTALL
()
{
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
echo
" "
}
data_from_portwine/scripts/vars/PortWGC_vars
View file @
999b4592
...
...
@@ -52,5 +52,4 @@ if [ "${update_loc}" = "ENG" ]; then
sed
-i
's/RU/EN/g'
"
${
PORT_WINE_PATH
}
/data/pfx/drive_c/Games/WGC/preferences.xml"
sed
-i
's/ru/en/g'
"
${
PORT_WINE_PATH
}
/data/pfx/drive_c/Games/WGC/preferences.xml"
fi
`
zenity
--info
--title
"
${
inst_set_top
}
"
--text
"
${
inst_succ
}
"
--no-wrap
`
>
/dev/null 2>&1
}
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