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
7d4d4f2c
Commit
7d4d4f2c
authored
Jul 01, 2020
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
major changes
parent
293a3146
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
32 deletions
+42
-32
registry.x86_64.bin
data_from_portwine/gstreamer-1.0/registry.x86_64.bin
+0
-0
port_on
data_from_portwine/port_on
+1
-1
create_shortcut
data_from_portwine/scripts/create_shortcut
+2
-2
debug
data_from_portwine/scripts/debug
+1
-0
lang
data_from_portwine/scripts/lang
+4
-0
runlib
data_from_portwine/scripts/runlib
+7
-7
setup
data_from_portwine/scripts/setup
+18
-13
start
data_from_portwine/scripts/start
+4
-4
winetricks-q-force
data_from_portwine/scripts/winetricks-q-force
+5
-5
No files found.
data_from_portwine/gstreamer-1.0/registry.x86_64.bin
deleted
100755 → 0
View file @
293a3146
File deleted
data_from_portwine/port_on
View file @
7d4d4f2c
...
...
@@ -308,7 +308,7 @@ class Session:
self
.
env
[
"WINEDLLPATH"
]
=
g_proton
.
lib64_dir
+
"/wine:"
+
g_proton
.
lib_dir
+
"/wine"
self
.
env
[
"GST_PLUGIN_SYSTEM_PATH_1_0"
]
=
g_proton
.
lib64_dir
+
"gstreamer-1.0"
+
":"
+
g_proton
.
lib_dir
+
"gstreamer-1.0"
self
.
env
[
"WINE_GST_REGISTRY_DIR"
]
=
g_compatdata
.
path
(
"gstreamer-1.0/"
)
self
.
env
[
"WINE_GST_REGISTRY_DIR"
]
=
g_compatdata
.
path
(
"
/tmp/
gstreamer-1.0/"
)
if
"PATH"
in
os
.
environ
:
self
.
env
[
"PATH"
]
=
g_proton
.
bin_dir
+
":"
+
os
.
environ
[
"PATH"
]
...
...
data_from_portwine/scripts/create_shortcut
View file @
7d4d4f2c
...
...
@@ -22,12 +22,12 @@ cp -f "${PORTPROTON_IMG}" "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png"
name_desktop
=
"
${
PORTPROTON_NAME
}
"
echo
"[Desktop Entry]"
>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Name=
${
PORTPROTON_NAME
}
"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Exec="
env
PATH_TO_GAME
=
\"
"
$PORTPROTON_PATH
"
\"
sh
\"
${
PORT_
WINE_PATH
}
/data/scripts
/start
\"
\"
${
PORTPROTON_EXE
}
\"
${
PORTPROTON_CMD
}
""
\
echo
"Exec="
env
PATH_TO_GAME
=
\"
"
$PORTPROTON_PATH
"
\"
sh
\"
${
PORT_
SCRIPTS_PATH
}
/start
\"
\"
${
PORTPROTON_EXE
}
\"
${
PORTPROTON_CMD
}
""
\
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Type=Application"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Categories=Game"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"StartupNotify=true"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Path="
${
PORT_
WINE_PATH
}
/data/scripts
/
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Path="
${
PORT_
SCRIPTS_PATH
}
/
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Icon="
${
PORTPROTON_IMG
}
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
chmod
+x
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
########################################################################
...
...
data_from_portwine/scripts/debug
View file @
7d4d4f2c
...
...
@@ -64,6 +64,7 @@ echo "log WINE" >> "${PORT_WINE_PATH}/${portname}.log"
export
PW_LOG
=
1
export
DXVK_HUD
=
"full"
export
PW_WINEDBG_DISABLE
=
0
if
[
!
-z
${
optirun_on
}
]
then
...
...
data_from_portwine/scripts/lang
View file @
7d4d4f2c
...
...
@@ -75,6 +75,8 @@ then
export
sc_img
=
"Создаем ярлык. Выберите иконку ICO, или PNG формата..."
export
sc_cmd
=
"Введите дополнительные параметры запуска, или оставьте полепустым."
export
debug_path
=
"Выберите ярлык для создания .log файла..."
elif
[
"
${
update_loc
}
"
=
"ENG"
]
then
...
...
@@ -146,5 +148,7 @@ then
export
sc_img
=
"Select the .ICO or .PNG file..."
export
sc_cmd
=
"Add command line"
export
debug_path
=
"Select the .desktop file for create the log"
fi
data_from_portwine/scripts/runlib
View file @
7d4d4f2c
...
...
@@ -12,11 +12,11 @@ zenity --progress --title="Settings..." --text="Please wait!" --pulsate --auto-c
}
########################################################################
cd
"
$(
dirname
"
`
readlink
-f
"
$0
"
`
"
)
"
export
link
=
"
$(
pwd
)
"
cd
"
${
link
}
/../../"
export
PORT_SCRIPTS_PATH
=
"
$(
pwd
)
"
cd
"
${
PORT_SCRIPTS_PATH
}
/../../"
export
PORT_WINE_PATH
=
"
$(
pwd
)
"
cd
"
${
link
}
"
.
"
${
link
}
"
/vars
cd
"
${
PORT_SCRIPTS_PATH
}
"
.
"
${
PORT_SCRIPTS_PATH
}
"
/vars
########################################################################
export
config_path
=
"
${
PORT_WINE_PATH
}
/data/tmp"
if
[
!
-d
"
${
config_path
}
"
]
;
then
...
...
@@ -30,7 +30,7 @@ if [ ! -e "${config_path}/${portname}_loc" ]; then
echo
"
${
SET_LANG
}
"
>
"
${
config_path
}
/
${
portname
}
_loc"
fi
########################################################################
.
"
${
link
}
"
/lang
.
"
${
PORT_SCRIPTS_PATH
}
"
/lang
if
[
!
-e
"
${
config_path
}
/
${
portname
}
_ver"
]
;
then
echo
"10"
>
"
${
config_path
}
/
${
portname
}
_ver"
fi
...
...
@@ -52,7 +52,7 @@ export urlg="http://portwine-linux.ru/donate"
########################################################################
START_PORTWINE
()
{
sh
"
${
link
}
"
/port_update
sh
"
${
PORT_SCRIPTS_PATH
}
"
/port_update
if
[
-d
"
${
WINELIB
}
"
]
;
then
host_lib_paths
=
/sbin/ldconfig
-XNv
|
grep
"/"
|
cut
-d
:
-f1
1>
"
${
config_path
}
"
/default_lib_paths
...
...
@@ -213,5 +213,5 @@ if [ "$int_xneur" = "1" ]; then
fi
#killall -r -s9 winedevice
rm
-f
"
${
PORT_WINE_PATH
}
"
/0
rm
-f
"
${
link
}
"
/0
rm
-f
"
${
PORT_SCRIPTS_PATH
}
"
/0
}
data_from_portwine/scripts/setup
View file @
7d4d4f2c
...
...
@@ -10,15 +10,15 @@ then
mkdir
-p
"/home/
${
USER
}
/.local/share/applications"
fi
if
[
!
-z
${
gamename
}
]
;
then
if
[
!
-z
"
${
gamename
}
"
]
;
then
name_desktop
=
"
${
gamename
}
"
echo
"[Desktop Entry]"
>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Name=
${
name_desktop
}
"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Exec=sh "
${
PORT_
WINE_PATH
}
/data/scripts
/start
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Exec=sh "
${
PORT_
SCRIPTS_PATH
}
/start
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Type=Application"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Categories=Game"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"StartupNotify=true"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Path="
${
PORT_
WINE_PATH
}
/data/scripts
/
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Path="
${
PORT_
SCRIPTS_PATH
}
/
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Icon="
${
PORT_WINE_PATH
}
/data/img/w.png
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
chmod
u+x
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
cp
-f
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
/home/
${
USER
}
/.local/share/applications/
...
...
@@ -40,11 +40,11 @@ for name_desktop in "winecfg" "winefile" "winecmd" "winereg" "create_shortcut"
do
echo
""
[
Desktop Entry]
"
"
Name
=
${
name_desktop
}
"
"
Exec
=
sh
"
${
PORT_
WINE_PATH
}
/data/scripts
/
${
name_desktop
}
""
"
Exec
=
sh
"
${
PORT_
SCRIPTS_PATH
}
/
${
name_desktop
}
""
"
Type
=
Application
"
"
Categories
=
Game
"
"
StartupNotify
=
true
"
"
Path
=
"
${
PORT_
WINE_PATH
}
/data/scripts
/""
"
Path
=
"
${
PORT_
SCRIPTS_PATH
}
/""
"
Icon
=
"
${
PORT_WINE_PATH
}
/data/img/s.png"""
>
"
${
PORT_WINE_PATH
}
/Settings/
${
name_desktop
}
.desktop"
chmod
u+x
"
${
PORT_WINE_PATH
}
/Settings/
${
name_desktop
}
.desktop"
done
...
...
@@ -53,42 +53,47 @@ for name_desktop in "debug" "reset"
do
echo
""
[
Desktop Entry]
"
"
Name
=
${
name_desktop
}
"
"
Exec
=
sh
"
${
PORT_
WINE_PATH
}
/data/scripts
/
${
name_desktop
}
""
"
Exec
=
sh
"
${
PORT_
SCRIPTS_PATH
}
/
${
name_desktop
}
""
"
Type
=
Application
"
"
Categories
=
Game
"
"
StartupNotify
=
true
"
"
Path
=
"
${
PORT_
WINE_PATH
}
/data/scripts
/""
"
Path
=
"
${
PORT_
SCRIPTS_PATH
}
/""
"
Icon
=
"
${
PORT_WINE_PATH
}
/data/img/s.png"""
>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
chmod
u+x
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
done
echo
""
[
Desktop Entry]
"
"
Name
=
winetricks
"
"
Exec
=
sh
"
${
PORT_
WINE_PATH
}
/data/scripts
/remove""
"
Exec
=
sh
"
${
PORT_
SCRIPTS_PATH
}
/remove""
"
Type
=
Application
"
"
Categories
=
Game
"
"
StartupNotify
=
true
"
"
Path
=
"
${
PORT_
WINE_PATH
}
/data/scripts
/""
"
Path
=
"
${
PORT_
SCRIPTS_PATH
}
/""
"
Icon
=
"
${
PORT_WINE_PATH
}
/data/img/rm.png"""
>
"
${
PORT_WINE_PATH
}
/Settings/remove.desktop"
chmod
u+x
"
${
PORT_WINE_PATH
}
/Settings/remove.desktop"
echo
""
[
Desktop Entry]
"
"
Name
=
winetricks
"
"
Exec
=
sh
"
${
PORT_
WINE_PATH
}
/data/scripts
/winetricks-q-force""
"
Exec
=
sh
"
${
PORT_
SCRIPTS_PATH
}
/winetricks-q-force""
"
Type
=
Application
"
"
Categories
=
Game
"
"
StartupNotify
=
true
"
"
Path
=
"
${
PORT_
WINE_PATH
}
/data/scripts
/""
"
Path
=
"
${
PORT_
SCRIPTS_PATH
}
/""
"
Icon
=
"
${
PORT_WINE_PATH
}
/data/img/s.png"""
>
"
${
PORT_WINE_PATH
}
/Settings/winetricks.desktop"
chmod
u+x
"
${
PORT_WINE_PATH
}
/Settings/winetricks.desktop"
chmod
u+x
"
${
PORT_
WINE_PATH
}
/data/scripts
/"
*
chmod
u+x
"
${
PORT_
SCRIPTS_PATH
}
/"
*
if
[
!
-d
"
${
PORT_WINE_PATH
}
/drive_c"
]
;
then
ln
-s
"
${
PORT_WINE_PATH
}
/data/pfx/drive_c/"
"
${
PORT_WINE_PATH
}
/drive_c"
fi
if
[
!
-d
"
${
PORT_WINE_PATH
}
/data/pfx/drive_c/users/
${
USER
}
"
]
;
then
ln
-s
"
${
PORT_WINE_PATH
}
/data/pfx/drive_c/users/steamuser"
"
${
PORT_WINE_PATH
}
/data/pfx/drive_c/users/
${
USER
}
"
fi
sed
-i
"s/xuser/
${
USER
}
/g"
"
${
PORT_WINE_PATH
}
/data/pfx/"
*
.reg
sed
-i
"s/vagrant/
${
USER
}
/g"
"
${
PORT_WINE_PATH
}
/data/pfx/"
*
.reg
if
[
!
-z
"
${
PATH_TO_GAME
}
"
]
;
then
rm
-f
"
${
PATH_TO_GAME
}
"
/
*
.dxvk-cache
...
...
@@ -100,4 +105,4 @@ fi
ADD_IN_POST_INSTALL
xdg-open
"http://portwine-linux.ru/portwine-faq/"
>
/dev/null 2>&1
&
exit
0
xdg-open
"http://portwine-linux.ru/portwine-faq/"
>
/dev/null 2>&1 &
exit
0
data_from_portwine/scripts/start
View file @
7d4d4f2c
...
...
@@ -5,15 +5,15 @@
START_PORTWINE
if
[
!
-z
"
$1
"
]
;
then
if
[
!
-z
${
optirun_on
}
]
;
then
${
optirun_on
}
"
${
port_on_run
}
"
"run"
"
$1
"
&>/dev/null
${
optirun_on
}
"
${
port_on_run
}
"
"run"
"
$1
"
else
"
${
port_on_run
}
"
"run"
"
$1
"
&>/dev/null
"
${
port_on_run
}
"
"run"
"
$1
"
fi
else
if
[
!
-z
${
optirun_on
}
]
;
then
${
optirun_on
}
"
${
port_on_run
}
"
"run"
"
${
gamestart
}
"
${
launch_parameters
}
&>/dev/null
${
optirun_on
}
"
${
port_on_run
}
"
"run"
"
${
gamestart
}
"
${
launch_parameters
}
else
"
${
port_on_run
}
"
"run"
"
${
gamestart
}
"
${
launch_parameters
}
&>/dev/null
"
${
port_on_run
}
"
"run"
"
${
gamestart
}
"
${
launch_parameters
}
fi
fi
STOP_PORTWINE
data_from_portwine/scripts/winetricks-q-force
View file @
7d4d4f2c
...
...
@@ -6,11 +6,11 @@ wine_pids=$(ls -l /proc/*/exe 2>/dev/null | grep -E 'wine(64)?-preloader|wineser
if
!
[
-z
"
${
wine_pids
}
"
]
;
then
kill
-9
${
wine_pids
}
fi
rm
-f
${
link
}
/winetricks
"/usr/bin/xterm"
-e
wget
-T
3
--output-document
=
"
${
link
}
/winetricks"
https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod
+x
"
${
link
}
/winetricks"
sed
-i
'18a . $(dirname $(readlink -f "$0"))/runlib\nSTART_PORTWINE\nexport WINELOADER="${WINEDIR}/bin/wine" '
"
${
link
}
/winetricks"
rm
-f
${
PORT_SCRIPTS_PATH
}
/winetricks
"/usr/bin/xterm"
-e
wget
-T
3
--output-document
=
"
${
PORT_SCRIPTS_PATH
}
/winetricks"
https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod
+x
"
${
PORT_SCRIPTS_PATH
}
/winetricks"
sed
-i
'18a . $(dirname $(readlink -f "$0"))/runlib\nSTART_PORTWINE\nexport WINELOADER="${WINEDIR}/bin/wine" '
"
${
PORT_SCRIPTS_PATH
}
/winetricks"
sleep
1
export
PW_LOG
=
1
"/usr/bin/xterm"
-e
"sh
${
link
}
/winetricks -q --force"
"/usr/bin/xterm"
-e
"sh
${
PORT_SCRIPTS_PATH
}
/winetricks -q --force"
STOP_PORTWINE
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