Skip to content
Merged

Ci #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: macOS/Windows/Linux Test
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'docs/**'
pull_request:
branches: [ main ]
workflow_dispatch:
Expand Down
36 changes: 21 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,28 +164,34 @@ jobs:
- name: Append tag to artifacts
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}

for PLATFORM in win macos linux; do
if [ -d "plugin-${PLATFORM}" ]; then
RELEASE_PATH=$(find "plugin-${PLATFORM}" -type d -name "Release" | head -n 1)
REPO_NAME="${{ github.event.repository.name }}"

if [ -n "$RELEASE_PATH" ]; then
echo "Packing ${PLATFORM} from ${RELEASE_PATH}..."
(cd "$RELEASE_PATH" && zip -r "../plugin-${PLATFORM}-${TAG_NAME}.zip" .)
else
echo "Warning: Release folder not found for ${PLATFORM}"
fi
fi
done
MAC_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-macos -type d -name "Release" | head -n 1)
WIN_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-win -type d -name "Release" | head -n 1)
LINUX_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-linux -type d -name "Release" | head -n 1)

DEST_DIR="$GITHUB_WORKSPACE/artifacts"

cd "$WIN_RELEASE_DIR"
zip -r "${REPO_NAME}-win-${TAG_NAME}.zip" .
cp "${REPO_NAME}-win-${TAG_NAME}.zip" "$DEST_DIR/"

cd "$MAC_RELEASE_DIR"
zip -r "${REPO_NAME}-macos-${TAG_NAME}.zip" .
cp "${REPO_NAME}-macos-${TAG_NAME}.zip" "$DEST_DIR/"

cd "$LINUX_RELEASE_DIR"
zip -r "${REPO_NAME}-linux-${TAG_NAME}.zip" .
cp "${REPO_NAME}-linux-${TAG_NAME}.zip" "$DEST_DIR/"

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: ${{ github.ref_name }}
files: |
artifacts/plugin-win-*.zip
artifacts/plugin-macos-*.zip
artifacts/plugin-linux-*.zip
artifacts/*-win-*.zip
artifacts/*-macos-*.zip
artifacts/*-linux-*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 15 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,21 @@ What you actually need to copy is the plugin bundle itself, not the `Release` or
After extraction, the folder structure will look roughly like this:

```text
plugin-win-vX.Y.Z.zip
plugin-win/
PluginName_artefacts/Release/
VST3/
PluginName.vst3/

plugin-macos-vX.Y.Z.zip
plugin-macos/
PluginName_artefacts/Release/
AU/
PluginName.component/
VST3/
PluginName.vst3/

plugin-linux-vX.Y.Z.zip
plugin-linux/
PluginName_artefacts/Release/
LV2/
PluginName.lv2/
VST3/
PluginName.vst3/
pluginName-win-vX.Y.Z.zip
VST3/
PluginName.vst3/

pluginName-macos-vX.Y.Z.zip
AU/
PluginName.component/
VST3/
PluginName.vst3/

pluginName-linux-vX.Y.Z.zip
LV2/
PluginName.lv2/
VST3/
PluginName.vst3/
```

安装时请直接复制这些文件夹之一:
Expand Down
Loading