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
adca2dc8
Commit
adca2dc8
authored
Sep 27, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update CEMU and change_loc func
parent
1de4ead8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
13 deletions
+28
-13
changelog_ru
data_from_portwine/changelog_ru
+4
-1
functions_helper
data_from_portwine/scripts/functions_helper
+16
-6
PW_CEMU
data_from_portwine/scripts/pw_autoinstall/PW_CEMU
+8
-6
No files found.
data_from_portwine/changelog_ru
View file @
adca2dc8
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
-----------------------------------------
-----------------------------------------
История изменений:
История изменений:
удалена автоустановка эмулятора CITRA
* удалена автоустановка эмулятора "CITRA"
* обновлена автоустановка эмулятора "CEMU"
* возвращена установка игры "Secret World Legends (ENG)"
###Scripts version 2352### / Дата: 26.09.2024 / Размер скачиваемого обновления: 4 мегабайт
###Scripts version 2352### / Дата: 26.09.2024 / Размер скачиваемого обновления: 4 мегабайт
* добавлена автоустановка игры "Farlight 84" (спасибо Chal55rus)
* добавлена автоустановка игры "Farlight 84" (спасибо Chal55rus)
...
...
data_from_portwine/scripts/functions_helper
View file @
adca2dc8
...
@@ -60,6 +60,7 @@ fatal () {
...
@@ -60,6 +60,7 @@ fatal () {
change_locale
()
{
change_locale
()
{
if
[[
-f
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
]]
;
then
if
[[
-f
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
]]
;
then
LANGUAGE
=
$(
<
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
)
LANGUAGE
=
$(
<
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
)
# TODO: drop legacy check language after 01.01.2025
# TODO: drop legacy check language after 01.01.2025
if
[[
"
$LANGUAGE
"
==
"RUS"
]]
;
then
if
[[
"
$LANGUAGE
"
==
"RUS"
]]
;
then
LANGUAGE
=
"ru"
LANGUAGE
=
"ru"
...
@@ -68,8 +69,12 @@ change_locale () {
...
@@ -68,8 +69,12 @@ change_locale () {
LANGUAGE
=
"en"
LANGUAGE
=
"en"
echo
"en"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
echo
"en"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
fi
fi
else
fi
[[
!
-f
"
${
pw_yad
}
"
]]
&&
pw_yad
=
"yad"
[[
!
-f
"
${
pw_yad
}
"
]]
&&
pw_yad
=
"yad"
if
[[
-z
"
$LANGUAGE
"
]]
\
||
[[
"
${
PW_FORCE_CHANGE_LOC
}
"
==
"1"
]]
;
then
SET_LANG
=(
SET_LANG
=(
"
${
pw_yad
}
"
--list
"
${
pw_yad
}
"
--list
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
...
@@ -83,13 +88,17 @@ change_locale () {
...
@@ -83,13 +88,17 @@ change_locale () {
)
)
out
=
$(
"
${
SET_LANG
[@]
}
"
)
out
=
$(
"
${
SET_LANG
[@]
}
"
)
if
[[
-z
$out
]]
;
then
if
[[
-z
$out
]]
\
fatal
"Language is not set!"
&&
[[
-n
"
$LANGUAGE
"
]]
;
then
echo
"
${
LANGUAGE
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
elif
[[
-z
$out
]]
;
then
echo
"en"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
else
else
LANGUAGE
=
$(
echo
"
$out
"
|
cut
-d
'|'
-f2
)
LANGUAGE
=
$(
echo
"
$out
"
|
cut
-d
'|'
-f2
)
echo
"
${
LANGUAGE
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
echo
"
${
LANGUAGE
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
create_translations
create_translations
fi
fi
unset
PW_FORCE_CHANGE_LOC
restart_pp
restart_pp
fi
fi
export
LANGUAGE
export
LANGUAGE
...
@@ -108,6 +117,7 @@ change_locale () {
...
@@ -108,6 +117,7 @@ change_locale () {
*
)
*
)
export
FULL_LN
=
"english"
export
FULL_LN
=
"english"
export
LANGUAGE_GIF
=
"en"
export
LANGUAGE_GIF
=
"en"
export
LANGUAGE
=
"en"
;;
;;
esac
esac
...
@@ -1901,7 +1911,7 @@ pw_check_command () {
...
@@ -1901,7 +1911,7 @@ pw_check_command () {
local F_CMD="$1"
local F_CMD="$1"
[[ -z "$TIMEOUT_CMD" ]] && TIMEOUT_CMD="3"
[[ -z "$TIMEOUT_CMD" ]] && TIMEOUT_CMD="3"
if command -v "$S_CMD" &>/dev/null ; then
if command -v "$S_CMD" &>/dev/null ; then
if ! timeout "$TIMEOUT_CMD" $F_CMD &> "${PW_TMPFS_PATH}/$S_CMD.tmp" ; then
if ! timeout "$TIMEOUT_CMD" $F_CMD &> "${PW_TMPFS_PATH}/$S_CMD.tmp" ; then
print_error "$S_CMD - broken!"
print_error "$S_CMD - broken!"
...
@@ -5855,7 +5865,7 @@ gui_pw_update () {
...
@@ -5855,7 +5865,7 @@ gui_pw_update () {
export
-f
gui_pw_update
export
-f
gui_pw_update
change_loc
()
{
change_loc
()
{
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc
"
export
PW_FORCE_CHANGE_LOC
=
"1
"
print_info
"Restarting PP for change language..."
print_info
"Restarting PP for change language..."
restart_pp
restart_pp
}
}
...
...
data_from_portwine/scripts/pw_autoinstall/PW_CEMU
View file @
adca2dc8
#!/usr/bin/env bash
#!/usr/bin/env bash
# Author: linux-gaming.ru
# Author: linux-gaming.ru
########################################################################
########################################################################
export
PW_URL_CEMU
=(
$(
curl
-s
"https://cemu.info"
|
grep
"zip"
|
cut
-d
\"
-f
2
)
)
export
PW_URL_CEMU
=
$(
curl
-s
"https://api.github.com/repos/cemu-project/Cemu/releases"
|
grep
-iEo
'https.*download.*'
|
grep
"windows"
|
head
-n1
)
export
PW_AUTOINSTALL_EXE
=
"
${
PW_USER_TEMP
}
/
`
echo
${
PW_URL_CEMU
}
|
awk
-F
/
'{print $5}'
`
"
export
PW_CEMU_NAME
=
Cemu_
$(
echo
"
$PW_URL_CEMU
"
|
awk
-F
"-"
'{print $3}'
)
export
PW_AUTOINSTALL_EXE
=
"
${
PW_USER_TEMP
}
/
${
PW_CEMU_NAME
}
.zip"
start_portwine
start_portwine
if
try_download
"
${
PW_URL_CEMU
}
"
"
${
PW_AUTOINSTALL_EXE
}
"
no_mirror
if
try_download
"
${
PW_URL_CEMU
//\
"/
}"
"
${
PW_AUTOINSTALL_EXE
}
"
no_mirror
then
then
pw_start_progress_bar_install_game
"Cemu."
pw_start_progress_bar_install_game
"Cemu."
"
$pw_7z
"
x
-y
"
${
PW_AUTOINSTALL_EXE
}
"
-o
"
$
WINEPREFIX
/drive_c/Program Files (x86)
"
"
$pw_7z
"
x -y
"
${
PW_AUTOINSTALL_EXE
}
"
-o
"
$
{
WINEPREFIX
}
/drive_c/Program Files (x86)/
"
portwine_exe
=
"
$
WINEPREFIX
/drive_c/Program Files (x86)/
`
echo
${
PW_URL_CEMU
}
|
awk
-F
/
'{print $5}'
|
sed
's/.zip//'
`
/Cemu.exe"
portwine_exe=
"
$
{
WINEPREFIX
}
/drive_c/Program Files (x86)/
${
PW_CEMU_NAME
}
/Cemu.exe"
try_remove_file
"
${
PW_AUTOINSTALL_EXE
}
"
try_remove_file
"
${
PW_AUTOINSTALL_EXE
}
"
try_remove_file
"
${
portwine_exe
}
.ppdb"
try_remove_file
"
${
portwine_exe
}
.ppdb"
kill_portwine
kill_portwine
pw_stop_progress_bar
pw_stop_progress_bar
export
PORTWINE_CREATE_SHORTCUT_NAME
=
"
Cemu
"
export PORTWINE_CREATE_SHORTCUT_NAME=
"
${
PW_CEMU_NAME
}
"
portwine_create_shortcut
portwine_create_shortcut
fi
fi
stop_portwine
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