Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE-old
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-old
Commits
2bd3ad04
Commit
2bd3ad04
authored
Jul 12, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'use-tmpfs' of github.com:Htylol/PortWINE into Htylol-use-tmpfs
parents
28da36d0
c049535a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
functions_helper
data_from_portwine/scripts/functions_helper
+0
-0
start.sh
data_from_portwine/scripts/start.sh
+9
-9
No files found.
data_from_portwine/scripts/functions_helper
View file @
2bd3ad04
This diff is collapsed.
Click to expand it.
data_from_portwine/scripts/start.sh
View file @
2bd3ad04
...
@@ -153,7 +153,7 @@ export USER_CONF="${PORT_WINE_PATH}/data/user.conf"
...
@@ -153,7 +153,7 @@ export USER_CONF="${PORT_WINE_PATH}/data/user.conf"
check_user_conf
check_user_conf
check_variables PW_LOG
"0"
check_variables PW_LOG
"0"
try_remove_file
"
${
P
ORT_WINE_TMP
_PATH
}
/update_pfx_log"
try_remove_file
"
${
P
W_TMPFS
_PATH
}
/update_pfx_log"
# shellcheck source=/dev/null
# shellcheck source=/dev/null
source
"
${
USER_CONF
}
"
source
"
${
USER_CONF
}
"
...
@@ -312,20 +312,20 @@ if [[ ! -z $(basename "${portwine_exe}" | grep .ppack) ]] ; then
...
@@ -312,20 +312,20 @@ if [[ ! -z $(basename "${portwine_exe}" | grep .ppack) ]] ; then
else
TMP_ALL_PATH
=
"LD_LIBRARY_PATH=
\"
${
PW_LD_LIBRARY_PATH
}
\"
"
else
TMP_ALL_PATH
=
"LD_LIBRARY_PATH=
\"
${
PW_LD_LIBRARY_PATH
}
\"
"
fi
fi
PW_PREFIX_NAME
=
$(
basename
"
$1
"
|
awk
-F
'.'
'{print $1}'
)
PW_PREFIX_NAME
=
$(
basename
"
$1
"
|
awk
-F
'.'
'{print $1}'
)
cat
<<
EOF
> "
${
P
ORT_WINE_TMP
_PATH
}
"/pp_pfx_unpack.sh
cat
<<
EOF
> "
${
P
W_TMPFS
_PATH
}
"/pp_pfx_unpack.sh
#!/usr/bin/env bash
#!/usr/bin/env bash
${
TMP_ALL_PATH
}
unsquashfs -f -d "
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
" "
$1
" \
${
TMP_ALL_PATH
}
unsquashfs -f -d "
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
" "
$1
" \
|| echo "ERROR" > "
${
P
ORT_WINE_TMP
_PATH
}
"/pp_pfx_unpack_error
|| echo "ERROR" > "
${
P
W_TMPFS
_PATH
}
"/pp_pfx_unpack_error
EOF
EOF
chmod
u+x
"
${
P
ORT_WINE_TMP
_PATH
}
"
/pp_pfx_unpack.sh
chmod
u+x
"
${
P
W_TMPFS
_PATH
}
"
/pp_pfx_unpack.sh
${
pw_runtime
}
${
PW_TERM
}
"
${
P
ORT_WINE_TMP
_PATH
}
"
/pp_pfx_unpack.sh
${
pw_runtime
}
${
PW_TERM
}
"
${
P
W_TMPFS
_PATH
}
"
/pp_pfx_unpack.sh
if
grep
"ERROR"
"
${
P
ORT_WINE_TMP
_PATH
}
"
/pp_pfx_unpack_error &>/dev/null
;
then
if
grep
"ERROR"
"
${
P
W_TMPFS
_PATH
}
"
/pp_pfx_unpack_error &>/dev/null
;
then
try_remove_file
"
${
P
ORT_WINE_TMP
_PATH
}
"
/pp_pfx_unpack_error
try_remove_file
"
${
P
W_TMPFS
_PATH
}
"
/pp_pfx_unpack_error
try_remove_file
"
${
P
ORT_WINE_TMP
_PATH
}
"
/pp_pfx_unpack.sh
try_remove_file
"
${
P
W_TMPFS
_PATH
}
"
/pp_pfx_unpack.sh
yad_error
"
$(
gettext
"Unpack has FAILED for prefix:"
)
<b>
\"
${
PW_PREFIX_NAME
}
\"
</b>."
yad_error
"
$(
gettext
"Unpack has FAILED for prefix:"
)
<b>
\"
${
PW_PREFIX_NAME
}
\"
</b>."
exit
1
exit
1
else
else
try_remove_file
"
${
P
ORT_WINE_TMP
_PATH
}
"
/pp_pfx_unpack.sh
try_remove_file
"
${
P
W_TMPFS
_PATH
}
"
/pp_pfx_unpack.sh
if
[[
-f
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/.create_shortcut"
]]
;
then
if
[[
-f
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/.create_shortcut"
]]
;
then
while
IFS
=
read
-r
line
while
IFS
=
read
-r
line
do
do
...
...
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