mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(forge): ignore certain artifacts
This commit is contained in:
parent
6f26f4d798
commit
4108f7f353
@ -142,7 +142,13 @@ module.exports = {
|
||||
fs.mkdirp(outputDir);
|
||||
for (const makeResult of makeResults) {
|
||||
for (const artifactPath of makeResult.artifacts) {
|
||||
const outputPath = path.join(outputDir, path.basename(artifactPath));
|
||||
// Ignore certain artifacts.
|
||||
const fileName = path.basename(artifactPath);
|
||||
if (fileName === "RELEASES" || path.extname(fileName) === ".nupkg") {
|
||||
continue;
|
||||
}
|
||||
|
||||
const outputPath = path.join(outputDir, fileName);
|
||||
console.log(`[Artifact] ${artifactPath} -> ${outputPath}`);
|
||||
fs.copyFile(artifactPath, outputPath);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user