(cherry picked from commit e623fd1536
)
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
This commit is contained in:
parent
47954e348e
commit
a1244be5ac
|
@ -40,6 +40,7 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"beforePack": "scripts/beforepack.js",
|
||||||
"afterPack": "scripts/afterpack.js",
|
"afterPack": "scripts/afterpack.js",
|
||||||
"afterAllArtifactBuild": "scripts/afterbuild.js",
|
"afterAllArtifactBuild": "scripts/afterbuild.js",
|
||||||
"deb": {
|
"deb": {
|
||||||
|
|
14
scripts/beforepack.js
Normal file
14
scripts/beforepack.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
||||||
|
// See LICENSE.txt for license information.
|
||||||
|
|
||||||
|
var fs = require('fs');
|
||||||
|
var 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
|
||||||
|
var dir = path.join(context.outDir, context.packager.appInfo.version)
|
||||||
|
if (!fs.existsSync(dir)){
|
||||||
|
fs.mkdirSync(dir);
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in a new issue