build: remove legacy package script
Moodle Plugin CI / Test (Moodle 5.2.2, PHP 8.4, mysql) (push) Successful in 3m20s
Moodle Plugin CI / Test (Moodle 4.5.13, PHP 8.1.34, postgresql) (push) Successful in 3m16s
Moodle Plugin CI / Test (Moodle 5.0.9, PHP 8.2.33, postgresql) (push) Successful in 3m4s
Moodle Plugin CI / Test (Moodle 5.1.6, PHP 8.2.33, postgresql) (push) Successful in 3m9s
Moodle Plugin CI / Test (Moodle 5.2.2, PHP 8.4, postgresql) (push) Successful in 3m34s
Moodle Plugin CI / Test (Moodle 5.2.2, PHP 8.4, mysql) (push) Successful in 3m20s
Moodle Plugin CI / Test (Moodle 4.5.13, PHP 8.1.34, postgresql) (push) Successful in 3m16s
Moodle Plugin CI / Test (Moodle 5.0.9, PHP 8.2.33, postgresql) (push) Successful in 3m4s
Moodle Plugin CI / Test (Moodle 5.1.6, PHP 8.2.33, postgresql) (push) Successful in 3m9s
Moodle Plugin CI / Test (Moodle 5.2.2, PHP 8.4, postgresql) (push) Successful in 3m34s
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Author: Valentin Popov
|
|
||||||
# Email: info@valentineus.link
|
|
||||||
# Date: 2018-06-19
|
|
||||||
# Usage: /bin/sh ./build.sh
|
|
||||||
# Description: Build the final package for installation in Moodle.
|
|
||||||
|
|
||||||
# Updating the Environment
|
|
||||||
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
||||||
export PATH="$PATH:/usr/local/scripts"
|
|
||||||
|
|
||||||
# Current project
|
|
||||||
PROJECT="local_webhooks"
|
|
||||||
|
|
||||||
# Defining directories
|
|
||||||
DIRECTORY="$(pwd)"
|
|
||||||
NAMEDIR="$(basename $DIRECTORY)"
|
|
||||||
TMPDIR="$(mktemp --directory)"
|
|
||||||
|
|
||||||
# Creating a Temporary Directory
|
|
||||||
cp --recursive --verbose "../$NAMEDIR" "$TMPDIR/$PROJECT"
|
|
||||||
mkdir --parents --verbose "$DIRECTORY/build"
|
|
||||||
cd "$TMPDIR"
|
|
||||||
|
|
||||||
# Creating an archive
|
|
||||||
zip -9 -r "$DIRECTORY/build/$PROJECT.zip" "$PROJECT" \
|
|
||||||
-x "$PROJECT/.git*" \
|
|
||||||
-x "$PROJECT/.travis.yml" \
|
|
||||||
-x "$PROJECT/build*"
|
|
||||||
|
|
||||||
# End of work
|
|
||||||
exit 0
|
|
||||||
Reference in New Issue
Block a user