mattermost-desktop/scripts/beforepack.js
aaron 057377207a
Some checks failed
release / begin-notification (push) Has been cancelled
release / build-linux (push) Has been cancelled
release / build-msi-installer (push) Has been cancelled
release / build-mac-installer (push) Has been cancelled
release / upload-to-s3 (push) Has been cancelled
release / github-release (push) Has been cancelled
release / end-notification (push) Has been cancelled
first commit bois
2024-10-03 06:35:14 -07:00

15 lines
535 B
JavaScript

// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const fs = require('fs');
const path = require('path');
exports.default = async function beforePack(context) {
// The debian packager (fpm) complains when the directory to output the package to doesn't exist
// So we have to manually create it first
const dir = path.join(context.outDir, context.packager.appInfo.version);
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, {recursive: true});
}
};