diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4c3cea4..3feeaa1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,10 +15,14 @@ jobs: - uses: actions/checkout@v3 with: submodules: recursive - - name: "Run script" + - name: "Build" run: | ./ci/build.sh shell: bash + - name: "Upload" + run: | + ./ci/upload.sh + shell: bash env: APPLICATION: ${{ secrets.APPLICATION }} INSTALLER: ${{ secrets.INSTALLER }} diff --git a/ci/upload.sh b/ci/upload.sh new file mode 100755 index 0000000..986a3cd --- /dev/null +++ b/ci/upload.sh @@ -0,0 +1,26 @@ +#!/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 diff --git a/plugin/Source/PluginEditor.cpp b/plugin/Source/PluginEditor.cpp index c3cd817..ffae4b3 100644 --- a/plugin/Source/PluginEditor.cpp +++ b/plugin/Source/PluginEditor.cpp @@ -23,7 +23,7 @@ WavetableAudioProcessorEditor::WavetableAudioProcessorEditor (WavetableAudioProc addChildComponent (modOverview); - usage.setBounds (45, 12, 70, 16); + usage.setBounds (45, 12, 80, 16); modOverview.setBounds (usage.getRight() + 10, 12, 150, 16); scope.setBounds (704, 5, 187, 30); diff --git a/tag.sh b/tag.sh new file mode 100755 index 0000000..a1ff622 --- /dev/null +++ b/tag.sh @@ -0,0 +1,10 @@ +#!/bin/bash -e + +cd "$(dirname "$0")" +ROOT=$(pwd) + +cd $ROOT + +VER=`cat VERSION` +echo "Tagging [$VER]" +git tag "$VER" && git push origin "$VER"