-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a trick to reduce the snap size
This trick reduces the size from 110 to 87 MBytes.
- Loading branch information
1 parent
66ac603
commit 838a201
Showing
5 changed files
with
90 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
export GIO_MODULE_DIR=$SNAP/gnome-platform/usr/lib/$ARCH_TRIPLET/gio/modules | ||
export GSETTINGS_SCHEMA_DIR=$SNAP/usr/share/glib-2.0/schemas:$SNAP/gnome-platform/usr/share/glib-2.0/schemas${GSETTINGS_SCHEMA_DIR:+:$GSETTINGS_SCHEMA_DIR} | ||
export GST_PLUGIN_PATH=$SNAP/gnome-platform/usr/lib/$ARCH_TRIPLET/gstreamer-1.0${GST_PLUGIN_PATH:+:$GST_PLUGIN_PATH} | ||
export GST_PLUGIN_SYSTEM_PATH=$GST_PLUGIN_SYSTEM_PATH:$SNAP/gnome-platform/usr/lib/$ARCH_TRIPLET/gstreamer-1.0 | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -- "${SNAP}/gnome-platform/command-chain/desktop-launch" "$@" | ||
# shellcheck source=/dev/null | ||
source "${SNAP}/snap/command-chain/run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -- "${SNAP}/gnome-platform/command-chain/hooks-configure-fonts" "$@" | ||
# shellcheck source=/dev/null | ||
source "${SNAP}/snap/command-chain/run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "run <command>" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "${SNAP}" ]; then | ||
echo "Not running inside a snap context: SNAP not declared" | ||
exit | ||
fi | ||
|
||
|
||
if [ ! -f "$1" ]; then | ||
echo "Content snap command-chain for $1 not found: ensure slot is connected" | ||
exit | ||
fi | ||
|
||
# emulate "exec $@" using "source" | ||
# have to disable "unused variables" because checkshell doesn't know that $BASH_ARGV0 is $0 | ||
# shellcheck disable=SC2034 # Unused variables left for readability | ||
BASH_ARGV0=$1 | ||
shift | ||
# shellcheck source=/dev/null | ||
source "$0" |