Fix build artifacts move

As you can build multiple binary packages from one source package, those
don't need to have the same name. You can even build only one binary
package which has a completely different name.
The saves way is to match on the package version number.
This commit is contained in:
Jan Wagner 2021-03-11 14:33:37 +01:00
parent d9aa273ced
commit 087b55ca0a

View file

@ -172,7 +172,7 @@ async function main() {
"find", "find",
buildDirectory, buildDirectory,
"-maxdepth", "1", "-maxdepth", "1",
"-name", `${pkg}*${version}*.*`, "-name", `*${version}*.*`,
"-type", "f", "-type", "f",
"-print", "-print",
"-exec", "mv", "{}", artifactsDirectory, ";" "-exec", "mv", "{}", artifactsDirectory, ";"