Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
4a4574fc
Commit
4a4574fc
authored
Mar 12, 2025
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Mar 12, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play discord: disable autoupdate and add epm config file (eterbug #18120)
parent
3f590762
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
discord.sh
repack.d/discord.sh
+27
-2
No files found.
repack.d/discord.sh
View file @
4a4574fc
...
...
@@ -17,8 +17,33 @@ fix_chrome_sandbox
add_electron_deps
rm
usr/bin/
$PRODUCT
add_bin_link_command
$PRODUCTCUR
$PRODUCTDIR
/
$PRODUCTCUR
add_bin_link_command
$PRODUCT
$PRODUCTCUR
mkdir
-p
$BUILDROOT
/usr/bin
cat
<<
EOF
>
$BUILDROOT
/usr/bin/
$PRODUCT
#!/bin/sh
CONFIG_DIR="\
$HOME
"/.config/discord
SETTINGS_FILE="\
$CONFIG_DIR
"/settings.json
DISCORD_CONFIG_FILE="\
$HOME
/.config/eepm/discord"
EXTRA_PARAMS=""
if [ ! -f "\
$DISCORD_CONFIG_FILE
" ]; then
DISCORD_CONFIG_FILE="/etc/eepm/config/discord"
fi
if [ -f "\
$DISCORD_CONFIG_FILE
" ]; then
EXTRA_PARAMS=
$(
cat
"
\$
DISCORD_CONFIG_FILE"
)
fi
if [ -f "\
$SETTINGS_FILE
" ] && grep -q '"SKIP_HOST_UPDATE": true' "\
$SETTINGS_FILE
"; then
exec
$PRODUCTDIR
/
$PRODUCTCUR
\
$EXTRA_PARAMS
"\
$@
"
else
mkdir -p "\
$CONFIG_DIR
"
echo '{ "SKIP_HOST_UPDATE": true}' > "\
$SETTINGS_FILE
"
exec
$PRODUCTDIR
/
$PRODUCTCUR
\
$EXTRA_PARAMS
"\
$@
"
fi
EOF
chmod
a+x
$BUILDROOT
/usr/bin/
$PRODUCT
pack_file /usr/bin/
$PRODUCT
rm
usr/share/applications/discord.desktop
install_file
$PRODUCTDIR
/discord.desktop /usr/share/applications/discord.desktop
...
...
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