mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 14:00:47 +02:00
26 lines
657 B
Bash
26 lines
657 B
Bash
|
|
#!/bin/bash -e
|
||
|
|
set +x
|
||
|
|
|
||
|
|
PLUGIN="Wavetable"
|
||
|
|
|
||
|
|
ROOT=$(cd "$(dirname "$0")/.."; pwd)
|
||
|
|
cd "$ROOT"
|
||
|
|
echo "$ROOT"
|
||
|
|
|
||
|
|
# Upload mac version
|
||
|
|
if [ "$(uname)" == "Darwin" ]; then
|
||
|
|
cd "$ROOT/ci/bin"
|
||
|
|
curl -F "files=@${PLUGIN}_Mac.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Upload linux version
|
||
|
|
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||
|
|
cd "$ROOT/ci/bin"
|
||
|
|
curl -F "files=@${PLUGIN}_Linux.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Upload Win version
|
||
|
|
if [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
|
||
|
|
cd "$ROOT/ci/bin"
|
||
|
|
curl -F "files=@${PLUGIN}_Win.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
||
|
|
fi
|