Commit 25e54fe8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: improve application dir packing

parent 0c5e3491
...@@ -29,6 +29,7 @@ else ...@@ -29,6 +29,7 @@ else
subst "s|^\"/|\"$PRODUCTDIR/|" $SPEC subst "s|^\"/|\"$PRODUCTDIR/|" $SPEC
fi fi
pack_dir $PRODUCTDIR
move_file $PRODUCTDIR/Telegram $PRODUCTDIR/$PRODUCT move_file $PRODUCTDIR/Telegram $PRODUCTDIR/$PRODUCT
add_bin_link_command add_bin_link_command
......
...@@ -206,6 +206,8 @@ move_to_opt() ...@@ -206,6 +206,8 @@ move_to_opt()
subst "s|\(%config.*\) \"$rdir|\1 \"$PRODUCTDIR|" $SPEC subst "s|\(%config.*\) \"$rdir|\1 \"$PRODUCTDIR|" $SPEC
subst "s|^$rdir|$PRODUCTDIR|" $SPEC subst "s|^$rdir|$PRODUCTDIR|" $SPEC
subst "s|^\"$rdir|\"$PRODUCTDIR|" $SPEC subst "s|^\"$rdir|\"$PRODUCTDIR|" $SPEC
pack_dir "$PRODUCTDIR"
} }
# remove absolute path from desktop file # remove absolute path from desktop file
......
...@@ -12,6 +12,8 @@ PRODUCTDIR="/opt/Domination/Client" ...@@ -12,6 +12,8 @@ PRODUCTDIR="/opt/Domination/Client"
move_to_opt "/opt/Domination Client" move_to_opt "/opt/Domination Client"
subst "s|/opt/Domination Client/||" $BUILDROOT/usr/share/applications/domination-client.desktop subst "s|/opt/Domination Client/||" $BUILDROOT/usr/share/applications/domination-client.desktop
pack_dir $PRODUCTDIR
add_bin_link_command add_bin_link_command
install_deps install_deps
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# It will be run with two args: buildroot spec # It will be run with two args: buildroot spec
BUILDROOT="$1" BUILDROOT="$1"
SPEC="$2" SPEC="$2"
PRODUCTDIR=/opt/mssql
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
......
...@@ -16,6 +16,7 @@ subst "s|^Summary:.*|Summary: VK Teams|" $SPEC ...@@ -16,6 +16,7 @@ subst "s|^Summary:.*|Summary: VK Teams|" $SPEC
mkdir -p $BUILDROOT$PRODUCTDIR mkdir -p $BUILDROOT$PRODUCTDIR
mv $BUILDROOT/* $BUILDROOT$PRODUCTDIR mv $BUILDROOT/* $BUILDROOT$PRODUCTDIR
subst "s|\"/|\"$PRODUCTDIR/|" $SPEC subst "s|\"/|\"$PRODUCTDIR/|" $SPEC
pack_dir $PRODUCTDIR
add_bin_exec_command $PRODUCT add_bin_exec_command $PRODUCT
# Hack against https://bugzilla.altlinux.org/43779 # Hack against https://bugzilla.altlinux.org/43779
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment