Create plugin bundles in target/bundled
It's going to get a bit crowded otherwise once we add more formats.
This commit is contained in:
parent
d39ebb5b51
commit
72c3e00510
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -118,7 +118,7 @@ jobs:
|
||||||
- name: Move all packaged plugin into a directory
|
- name: Move all packaged plugin into a directory
|
||||||
run: |
|
run: |
|
||||||
mkdir "$ARCHIVE_NAME"
|
mkdir "$ARCHIVE_NAME"
|
||||||
mv target/*.vst3 "$ARCHIVE_NAME"
|
mv target/bundled/* "$ARCHIVE_NAME"
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.ARCHIVE_NAME }}
|
name: ${{ env.ARCHIVE_NAME }}
|
||||||
|
|
|
@ -10,6 +10,9 @@ mod symbols;
|
||||||
const USAGE_STRING: &str =
|
const USAGE_STRING: &str =
|
||||||
"Usage: cargo xtask bundle <package> [--release] [--target <triple>] [--bundle-vst3]";
|
"Usage: cargo xtask bundle <package> [--release] [--target <triple>] [--bundle-vst3]";
|
||||||
|
|
||||||
|
/// The base birectory for the bundler's output.
|
||||||
|
const BUNDLE_HOME: &str = "target/bundled";
|
||||||
|
|
||||||
/// Any additional configuration that might be useful for creating plugin bundles, stored as
|
/// Any additional configuration that might be useful for creating plugin bundles, stored as
|
||||||
/// `bundler.toml` alongside the workspace's main `Cargo.toml` file.
|
/// `bundler.toml` alongside the workspace's main `Cargo.toml` file.
|
||||||
type BundlerConfig = HashMap<String, PackageConfig>;
|
type BundlerConfig = HashMap<String, PackageConfig>;
|
||||||
|
@ -103,7 +106,7 @@ fn bundle(package: &str, mut args: Vec<String>) -> Result<()> {
|
||||||
|
|
||||||
eprintln!();
|
eprintln!();
|
||||||
if bundle_vst3 {
|
if bundle_vst3 {
|
||||||
let vst3_lib_path = Path::new("target").join(vst3_bundle_library_name(
|
let vst3_lib_path = Path::new(BUNDLE_HOME).join(vst3_bundle_library_name(
|
||||||
&bundle_name,
|
&bundle_name,
|
||||||
cross_compile_target.as_deref(),
|
cross_compile_target.as_deref(),
|
||||||
)?);
|
)?);
|
||||||
|
@ -252,7 +255,7 @@ fn maybe_create_macos_vst3_bundle(package: &str, cross_compile_target: Option<&s
|
||||||
// TODO: May want to add bundler.toml fields for the identifier, version and signature at some
|
// TODO: May want to add bundler.toml fields for the identifier, version and signature at some
|
||||||
// point.
|
// point.
|
||||||
fs::write(
|
fs::write(
|
||||||
format!("target/{}.vst3/Contents/PkgInfo", package),
|
format!("{}/{}.vst3/Contents/PkgInfo", BUNDLE_HOME, package),
|
||||||
"BNDL????",
|
"BNDL????",
|
||||||
)
|
)
|
||||||
.context("Could not create PkgInfo file")?;
|
.context("Could not create PkgInfo file")?;
|
||||||
|
|
Loading…
Reference in a new issue