Reworked packaging script.
This commit is contained in:
parent
7317243c36
commit
338eea10ab
|
|
@ -10,26 +10,26 @@
|
||||||
cd "`dirname "${0}"`"
|
cd "`dirname "${0}"`"
|
||||||
|
|
||||||
root="${PWD}/.."
|
root="${PWD}/.."
|
||||||
build="$root/build/MIDI"
|
build="$root/build/dist/MIDI"
|
||||||
|
|
||||||
echo "root: $root"
|
echo "root: $root"
|
||||||
echo "build: $build"
|
echo "build: $build"
|
||||||
|
|
||||||
# Create a temporary destination folder
|
# Create a destination directory structure
|
||||||
mkdir -p "$build"
|
|
||||||
mkdir -p "$build/examples"
|
mkdir -p "$build/examples"
|
||||||
|
mkdir -p "$build/src"
|
||||||
|
|
||||||
# Copy sources
|
# Copy sources
|
||||||
cd "$root/src/"
|
cp -rf "$root/src" "$build"
|
||||||
cp * "$build/"
|
|
||||||
|
|
||||||
# Copy resources
|
# Copy resources
|
||||||
cd "$root/res/"
|
cp -f "$root/keywords.txt" "$build/"
|
||||||
cp keywords.txt "$build/"
|
cp -f "$root/library.properties" "$build/"
|
||||||
|
cp -f "$root/library.json" "$build/"
|
||||||
|
cp -f "$root/LICENSE" "$build/"
|
||||||
|
|
||||||
# Copy examples
|
# Copy examples
|
||||||
cd "$root/res/examples/"
|
cp -rf "$root/examples" "$build"
|
||||||
cp -r * "$build/examples"
|
|
||||||
|
|
||||||
# Generate package
|
# Generate package
|
||||||
cd "$build/.."
|
cd "$build/.."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue