mozilla.thunderbird/builder-targets-cb.sh

35 lines
1.4 KiB
Bash

##############################################################################
# This optional file "builder-targets-cb.sh" will be called by builder.sh
#
# The targets will be called from thde opsi-builder using the following
# order: config, prepare, retrieve, create, package, publish, commit, cleanup
# You can overwrite the target functions in builder-targets-cb.sh
#
# You can define callback functions. The functions are called from
# opsi-builder within processing a target
# cb_package_makeproductfile
#
# You can use every variable defined in any configuration file or by
# the defined builder script itself. Also, calling the predefined
# targets builder_<targetname> is possible.
#
# Abstract:
# target order: config, prepare, retrieve, create, package, publish, commit, cleanup
# callbacks: <none>
#
##############################################################################
function cleanup() {
echo "Cleanup"
builder_cleanup
}
function create() {
echo "Create"
builder_create
mkdir -p $INST_DIR/CLIENT_DATA/X86/Plugins/{{e2fda1a4-762b-4020-b5ad-a41df1933103},exquilla@mesquilla.com}
7z x -o$INST_DIR/CLIENT_DATA/X86/Plugins/{e2fda1a4-762b-4020-b5ad-a41df1933103} $INST_DIR/CLIENT_DATA/X86/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi
7z x -o$INST_DIR/CLIENT_DATA/X86/Plugins/exquilla@mesquilla.com $INST_DIR/CLIENT_DATA/X86/exquilla-currentrelease-tb-windows.xpi
mv $INST_DIR/CLIENT_DATA/X86/*.xpi $INST_DIR/CLIENT_DATA/X86/Plugins
}