Created
January 8, 2021 09:05
-
-
Save thatisuday/69eab463adab1249a6137c5ab4c8e4ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.default = _default; | |
function _config() { | |
const data = require("./config"); | |
_config = function () { | |
return data; | |
}; | |
return data; | |
} | |
async function _default(context) { | |
const electronWebpackConfig = await (0, _config().getElectronWebpackConfiguration)(context); | |
const distDir = electronWebpackConfig.commonDistDirectory; | |
return { | |
extraMetadata: { | |
main: "main.js" | |
}, | |
files: [{ | |
from: ".", | |
filter: ["package.json"] | |
}, { | |
from: `${distDir}/main` | |
}, { | |
from: `${distDir}/renderer` | |
}, { | |
from: `${distDir}/renderer-dll` | |
}], | |
extraResources: [{ | |
from: electronWebpackConfig.staticSourceDirectory, | |
to: electronWebpackConfig.staticSourceDirectory | |
}] | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment