mirror of
https://github.com/MuhammedKalkan/OpenLens.git
synced 2026-10-18 07:54:35 +02:00
Use electron-builder beforeBuild (#164)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
const archMap = {
|
||||
"amd64": "x86_64",
|
||||
"arm64": "aarch64",
|
||||
}
|
||||
|
||||
module.exports = async (buildContext) => {
|
||||
if (buildContext.platform.name !== "linux") return true
|
||||
|
||||
if (buildContext.arch in archMap) {
|
||||
process.env.CC = `${archMap[buildContext.arch]}-linux-gnu-gcc`
|
||||
process.env.CXX = `${archMap[buildContext.arch]}-linux-gnu-g++`
|
||||
} else {
|
||||
process.env.CC = "gcc"
|
||||
process.env.CXX = "g++"
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user